Micro-letter public number shake a roll around the function development _ basic knowledge

Source: Internet
Author: User
Tags http request

① application to open shake and shake function

Apply for the opening of a shake around the function. After the request is successfully submitted, the employee completes the audit within three working days. If the audit does not pass, you can resubmit the request. If the audit, please patiently wait for staff audit, in the audit status can no longer submit application requests.

The interface code is as follows:

HTTP request mode: POST (please use HTTPS protocol) https://api.weixin.qq.com/shakearound/account/register?access_token=ACCESS_ Tokenpost data format: JSON 
post Data example: 
{ 
 "name": "Zhang_san", 
 "Phone_number": "13512345678", 
 "email": " Weixin123@qq.com ", 
 " industry_id ":" 0118 ", 
 " Qualification_cert_urls ": [ 
 " Http://shp.qpic.cn/wx_shake_ bus/0/1428565236d03d864b7f43db9ce34df5f720509d0e/0 ", 
 " http://shp.qpic.cn/wx_shake_bus/0/ 1428565236d03d864b7f43db9ce34df5f720509d0e/0 " 
 ], 
 " Apply_reason ":" Test " 
} 
Parameter Description 
parameter must  indicate whether 
access_token  is the  calling interface voucher 
name is the  contact name, no more than 20 Chinese characters or 40 English letters 
Phone_  number is a  contact phone 
email  is a  contact email 
industry_id is a  platform-defined industry code, please check the link Industry Code 
Qualification_cert_urls is the  relevant quality documents of the picture URL, the picture needs to be uploaded to the micro-side server, with "Material management-upload picture material" interface upload pictures, the return of the picture URL again configured here; 
 
when no qualification documents are required, The array can not fill in the URL 
apply_reason no  application reason, no more than 250 Chinese characters or 500 English letters 
 
Returns a 
 
 sample of return JSON packets when normal: 
 
{ 
  " Data ": { 
     
  }, 
  " Errcode ": 0, 
  " errmsg ":" Success. " 
} 

② request opened, we can also check the status

Query has been submitted to open shake the perimeter function of the application of the audit status. After the application is submitted, the employee completes the review within three working days.
The code is as follows:

HTTP request mode: (please use HTTPS protocol) Https://api.weixin.qq.com/shakearound/account/auditstatus?access_token=ACCESS_TOKEN 
 
Returns an example of returning a JSON packet in a normal state: 
 
{" 
  data": { 
    "apply_time": 1432026025, 
    "audit_comment": "Test", 
    "Audit_ Status ": 1," 
    audit_time ": 0 
  }, 
  " Errcode ": 0, 
  " errmsg ":" Success. " 
} 
 
The parameter Description 
parameter describes 
the timestamp 
audit_status approval Status of the Apply_time submission request  . 0: Audit failed, 1: Audit, 2: Audit has passed, audit will be completed within three working days 
audit_comment  Audit notes, including the reasons for the audit did not pass 
Audit_time determine the audit results of the time stamp, if the status of the audit, Then the time value is 0 

Thank you for reading, I hope to help you, thank you for your support for this site!

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.