Home > front end >  Development WeChat enterprise push picture message problem.
Development WeChat enterprise push picture message problem.

Time:12-09

Dear Daniel,
Now I want to develop a corporate WeChat push picture message application,
According to the development of WeChat documents,
The image message
{
"Touser" : "UserID1 | UserID2 | UserID3",
"Toparty" : "PartyID1 | PartyID2,"
"Totag" : "TagID1 | TagID2,"
"Msgtype", "image",
"Agentid" : 1,
"Image" : {
"Media_id" : "media_id
"},
"Safe" : 0
}
Parameters must be
Media_id is photo media file id, can call to upload a temporary or permanent material interface to get material, permanent material media_id must be founded by the application of the message

I want to call first WeChat API to upload pictures resources, then according to the raw media_id push pictures, I used the nodejs wechat - API package, this package need APPID and APPSecret. But only Corp ID and each enterprise WeChat Secret, create your own applications which Secret, no matter I use wechat - API are prompt gave APPSecret now excuse me how to deal with image upload problem, how the enterprise WeChat, the local picture uploading, and creating media_id. The

CodePudding user response:

Enterprise WeChat version with this

https://github.com/node-webot/wechat-enterprise


Wechat - WeChat API is common version
  • Related