API Description
Directly links a new store with a device without having to pass the review. The Shake Nearby Platform will automatically update the store's latest information and status.
API Request Format
HTTP request method: POST (use the HTTPS protocol) https://api.weixin.qq.com/shakearound/device/bindlocation?access_token=ACCESS_TOKENPOST data format: jsonPOST data example:
{
"device_identifier":{
"device_id":10011,
"uuid":"FDA50693-A4E2-4FB1-AFCF-C6EB07647825",
"major":1002,
"minor":1223
},
"poi_id": 1231,
}
Parameters
Parameter | Required | Description |
---|---|---|
access_token | Yes | The credential for calling the API |
device_identifier | Yes | The specified device ID |
device_id | Yes | Device ID. If UUID+major+minor is entered, device ID is optional. If both are entered, device ID is preferred. |
UUID, major, minor | Yes | If device ID is entered, this parameter is optional. If device ID is left empty, all the three parts of the parameter are required. |
poi_id | Yes | The store ID linked with the device. Information can be preferentially obtained via the Shake-Nearby feature within the range of 1KM. When the value is 0, the store ID linked with the device will be cleared. For more information about the store, see the API documentation related to the store. |
Response
Example of JSON packet returned for a successful request:
{
"data": {
},
"errcode": 0,
"errmsg": "success."
}