WeChat public platform development (41) one-click follow WeChat public platform account

Source: Internet
Author: User
Public platform development public platform development mode enterprise public platform one-click attention

I. use HTTP protocol

We recommend Bean Cube. click here.


II. use weixin protocol

Bean Cube

Or

Click follow Bean Cube


III. use JavaScript code

Var addWxContact = function (wxid, cb) {if (typeof WeixinJSBridge = 'undefined') return false; WeixinJSBridge. invoke ('addcontact', {webtype: '1', username: wxid}, function (d) {// Return d. err_msg value, and d has another attribute: err_desc // add_contact: cancel user cancel // add_contact: fail follow failed // add_contact: OK follow success // add_contact: added has followed WeixinJSBridge. log (d. err_msg); cb & cb (d. err_msg );});};


IV. dedicated for some accounts

Https://open.weixin.qq.com/subscribe? Appid = wxb629c48b653e


5. subscription binding

After decoding

Https://login.weixin.qq.com/l/E0LsxoTaRxC_HM


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.