Micro-credit rapid development framework to send customer service information

Source: Internet
Author: User

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/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.