WeChat shake page management
Page Management
##Interface description
Add the page information that comes out of the shake, including the main title, subtitle, picture and click-in hyperlink that appear on the shake page . Among them, the picture must be a link returned after being uploaded to the WeChat server using the material management interface.
Interface calling instructions
http request method: POST (please use https protocol) https://api.weixin.qq.com/shakearound/page/add?access_token=ACCESS_TOKENPOST data format: jsonPOST data example:
{
"title":"Main title",
"description":"subtitle",
"page_url":" https://zb.weixin.qq.com ",
"comment":"data example",
"icon_url":" http://3gimg.qq.com/shake_nearby/dy/icon "
}
Parameter Description
Parameter | Is it required | Description | ||||||||||||||||||||||
access_token | is the | calling interface credential | ||||||||||||||||||||||
title | is | The main title displayed on the shake page shall not exceed 6 Chinese characters or 12 English letters | ||||||||||||||||||||||
description | is the subtitle displayed on the shake page of | ##, no more than 7 Chinese characters or 14 English letters | ||||||||||||||||||||||
icon_url | is the picture displayed on the shake page of | ##. The image needs to be uploaded to the WeChat server first, use the "Material Management-Upload Image Material" interface to upload the image, and the returned image URL is configured here|||||||||||||||||||||||
No | The remark information on the page should not exceed 15 Chinese characters or 30 English letters |
参数 | 说明 |
page_id | 新增页面的页面id |
Edit page information
##Interface description
Edit the page information that comes out of the shake, including the main title, subtitle, picture and clicked hyperlink that appear on the shake page.
Interface calling instructions
http request method: POST (please use https protocol) https://api.weixin.qq.com/shakearound/page/update?access_token=ACCESS_TOKENPOST data format: jsonPOST data example:
{
"page_id":12306
"title" :"Main title",
"description":"Subtitle",
"page_url":" https://zb.weixin.qq.com ",
"comment":"Data example",
"icon_url":" http://3gimg.qq.com/shake_nearby/dy/icon"
}
Parameter Description
Parameter | Is it required | Description | ||||||||||||||||||||||
access_token | is the | calling interface credential | ||||||||||||||||||||||
page_id | is | Shake peripheral page unique ID | ||||||||||||||||||||||
title | is | The main title displayed on the shake page shall not exceed 6 Chinese characters or 12 English letters | ||||||||||||||||||||||
description | is the subtitle displayed on the shake page of | ##, no more than 7 Chinese characters or 14 English letters | ||||||||||||||||||||||
icon_url | is the picture displayed on the shake page of | ##.The image needs to be uploaded to the WeChat server first, and use the "Material Management-Upload Image Material" interface to upload the image. The returned image URL is then configured here|||||||||||||||||||||||
page_url | is | jump link | ||||||||||||||||||||||
comment | No | ##The remark information on the page should not exceed 15 Chinese characters or 30 English letters |
Parameter | Is it required | Description | ||||||||||||||||||||||
access_token | is the | calling interface credential | ||||||||||||||||||||||
type | is the | query type.1: Query page information in the page id list; 2: Query all page information in paging | ||||||||||||||||||||||
##page_ids | Yes | Specify the id list of the page; when type is 1, this item is required | ||||||||||||||||||||||
begin | is the starting index value of the | page list; when type is 2, this item is required | ||||||||||||||||||||||
count | is the number of pages to be queried, which cannot exceed 50; when type is 2, this item is required | Return instructions Example of normal return JSON data packet: { Parameter Description ##Delete page Interface description #Delete the existing page, including the main title, subtitle, picture and click-in hyperlink that appear on the shake page. Only pages that are not associated with the device can be deleted. Interface call request description http request method: POST (please use https protocol) https: //api.weixin.qq.com/shakearound/page/delete?access_token=ACCESS_TOKENPOST data format: jsonPOST data example: Parameter Description
Return instructions Normal return JSON data packet example: { |