Home  >  Article  >  WeChat Applet  >  WeChat public account implements shake peripheral function development code

WeChat public account implements shake peripheral function development code

高洛峰
高洛峰Original
2017-03-16 14:48:542250browse

This article mainly introduces relevant information on the development of the peripheral functions of the WeChat official account Shake. Friends in need can refer to the following

①Apply to activate the shake function

Apply to activate the shake peripheral function. After successfully submitting the application request, the staff will complete the review within three working days. If the review fails, you can resubmit the application request. If it is under review, please wait patiently for the staff to review it. During review status , no more application requests can be submitted.

InterfaceThe code is as follows:

http请求方式: POST(请使用https协议)https://api.weixin.qq.com/shakearound/account/register?access_token=ACCESS_TOKENPOST数据格式:json 
POST数据例子: 
{ 
 "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" 
}
参数说明 
参数 是否必须  说明 
access_token  是  调用接口凭证 
name  是  联系人姓名,不超过20汉字或40个英文字母 
phone_number  是  联系人电话 
email  是  联系人邮箱 
industry_id 是  平台定义的行业代号,具体请查看链接行业代号 
qualification_cert_urls 是  相关资质文件的图片url,图片需先上传至微信侧服务器,用“素材管理-上传图片素材”接口上传图片,返回的图片URL再配置在此处; 
 
当不需要资质文件时,数组内可以不填写url 
apply_reason  否  申请理由,不超过250汉字或500个英文字母 
 
返回说明 
 
 正常时的返回JSON数据包示例: 
 
{ 
  "data": { 
     
  }, 
  "errcode": 0, 
  "errmsg": "success." 
}

②After requesting activation, we can alsoquerythe status

Check the review status of the submitted application for opening the Shake peripheral function. After the application is submitted, the staff will complete the review within three working days.
The code is as follows:

http请求方式:(请使用https协议)https://api.weixin.qq.com/shakearound/account/auditstatus?access_token=ACCESS_TOKEN 
 
返回说明 正常时的返回JSON数据包示例: 
 
{ 
  "data": { 
    "apply_time": 1432026025, 
    "audit_comment": "test", 
    "audit_status": 1, 
    "audit_time": 0 
  }, 
  "errcode": 0, 
  "errmsg": "success." 
} 
 
参数说明 
参数 说明 
apply_time 提交申请的时间戳 
audit_status  审核状态。0:审核未通过、1:审核中、2:审核已通过;审核会在三个工作日内完成 
audit_comment  审核备注,包括审核不通过的原因 
audit_time 确定审核结果的时间戳;若状态为审核中,则该时间值为0

Thank you for reading, I hope it can help everyone, thank you for your support of this site!

The above is the detailed content of WeChat public account implements shake peripheral function development code. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn