WeChat shake page management


Page Management

1475203879436079.png

##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

##. 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 herecomment NoThe remark information on the page should not exceed 15 Chinese characters or 30 English letters

返回说明

 正常时的返回JSON数据包示例:

{
   "data": {
       "page_id": 28840
   }
   "errcode": 0,
   "errmsg": "success."
}

Parameter Description

ParameterIs it requiredDescription
access_token is the calling interface credential
titleisThe 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
参数说明
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

##.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


Return instructions Normal return JSON data packet example:

{
"data": {
     
 },
  "errcode": 0,
  "errmsg": "success."
}


Query page list

Interface Description

Query existing pages, including the main title, subtitle, picture and clicked hyperlink that appear on the shake page. Two query methods are provided, you can specify the page ID to query, or you can pull the page list in batches.

Interface call request description

http request method: POST (please use https protocol) https: //api.weixin.qq.com/shakearound/page/search?access_token=ACCESS_TOKENPOST data format: json
POST data example:
When you need to query the specified page:
{
"type": 1,
"page_ids":[12345, 23456, 34567]
}

When you need to query by page or specify pages within a range:
{
"type": 2,
"begin": 0,
"count": 3
}

Parameter Description

ParameterIs it requiredDescription
access_token is the calling interface credential
page_idisShake 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
page_url isjump link
comment No##The remark information on the page should not exceed 15 Chinese characters or 30 English letters
ParameterIs it requiredDescription
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_idsYes 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:

{
"data": {
"pages": [
" " "{
"comment": "just for test",
"description": "test",
"icon_url": "https://www.baidu.com/img/bd_logo1",
"page_id": 28840,
"page_url": "http://xw. qq.com/testapi1",
"Title": "Test 1"
},
{
"Comment": "Just for test",
"Description": "Test" ,
"icon_url": "https://www.baidu.com/img/bd_logo1",
"page_id": 28842,
"page_url": "http://xw.qq.com /testapi2",
"title": "Test 2"
"total_count": 2
" errmsg": "success."
}



Parameter Description

##titleThe main title displayed on the shake page, description
ParameterDescription
##total_countTotal number of pages under the merchant name
page_idShake surrounding pages Unique ID
Subtitle displayed on the shake page
icon_urlIn the shake Shake the picture displayed on the page
page_urlJump link
comment Remarks on the page

##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:
{
"page_id":34567
}

Parameter Description

参数是否必须说明
page_id 指定页面的id   


Return instructions

Normal return JSON data packet example:

{
"data": {
"
},
"errcode": 0,
"errmsg": "success."
}



#