Version description
This version of the key is to increase the "Send customer service message" interface, before the careless, forget to write, thanks to @ I think I am the wind reminder.
At present this project belongs to open source project, all code is in GitHub, you can also obtain by NuGet
Pm> Install-package JCSoft.WX.Framework
In the micro-letter document, for "Send customer service message" has certain restrictions, must be concerned about sending messages, including attention, custom menus and other events, we can in 48 hours by post a JSON packet, send 6 kinds of messages.
I use the following name to correspond to these 6 kinds of message methods:
1. Text message: Messagecustomsendtextrequest
2. Picture message: Messagecustomsendimagerequest
3, voice message: Messagecustomsendvoicerequest
4, video message: messagecustomsendvideorequest
5, music news: Messagecustomsendmusicrequest
6, text message: Messagecustomsendnewsrequest
The above several request inherits from Messagecustomsendrequest, corresponding unify messagecustomsendresponse.
How to use
Looking at the previous series, you should know how to use this API, and here's a few message types to build:
Text message:
var textrequest = new Messagecustomsendtextrequest
{
touser = "James",
Text = new WX. Model.textmessage
{
content = ' Test Content '
}
};
Picture message:
var imagerequest = new Messagecustomsendimagerequest
{
touser = "James",
Image = new Imagemessage
{ C13/>mediaid = "image_media_id"
}
};
Voice message:
var voicerequest = new Messagecustomsendvoicerequest
{
touser = "James",
Voice = new Voicemessage
{
MediaId = "voice_media_id"
}
};
Back to the column page: http://www.bianceng.cnhttp://www.bianceng.cn/OS/extra/