search
  • Sign In
  • Sign Up
Password reset successful

Follow the proiects vou are interested in andi aet the latestnews about them taster

Home Backend Development PHP WeChat public platform developer documentation Shake WeChat to obtain device and user information

Shake WeChat to obtain device and user information

Get device and user information

1475890582580676.jpg

##Interface description

Get device information, including UUID, major, minor, distance, openID and other information.

Interface calling instructions

http request method: POST (please use https protocol) https:/ /api.weixin.qq.com/shakearound/user/getshakeinfo?access_token=ACCESS_TOKENPOST Data format: jsonPOST data example:
{
"ticket":"6ab3d8465166598a5f4e8c1b44f44645",
"need_poi" :1
}

Parameter Description

ParameterIs it requiredDescription
access_token is the calling interface credential
ticketis Tickets for Shake’s surrounding businesses can be obtained from the URL you shake. The ticket is effective for 30 minutes. A new ticket will be regenerated every time you shake.
need_poiNoWhether it is necessary to return the store poi_id, pass 1 to return, otherwise not return; store Relevant information can be foundView the store-related interface documents

Return instructions

Example of normal returned JSON data packet:

{
"data": {
"page_id ": 14211,
"beacon_info": {
"distance": 55.00620700469034,
"major": 10001,
"minor" : 19007,
"uuid": "FDA50693-A4E2-4FB1-AFCF-C6EB07647825"
},
"openid": "oVDmXjp7y8aG2AlBuRpMZTb1-cmA",
" poi_id":1234
},
"errcode": 0,
"errmsg": "success."
}

Parameter Description

ParametersDescription
##beacon_infoDevice information, including UUID, major, minor, and distance
UUID, major, minorUUID, major, minor
distanceThe distance between the Beacon signal and the mobile phone, The unit is meters
page_idShake the unique ID of the surrounding page
# #openidThe unique identifier of the user under the merchant AppID
poi_idStore ID, if there is one, it will be returned, otherwise it will not be in JSON format

##
Hot AI Tools
Undress AI Tool
Undress AI Tool

Undress images for free

AI Clothes Remover
AI Clothes Remover

Online AI tool for removing clothes from photos.

Undresser.AI Undress
Undresser.AI Undress

AI-powered app for creating realistic nude photos

ArtGPT
ArtGPT

AI image generator for creative art from text prompts.

Stock Market GPT
Stock Market GPT

AI powered investment research for smarter decisions

Popular tool
Notepad++7.3.1
Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version
SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1
Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6
Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version
SublimeText3 Mac version

God-level code editing software (SublimeText3)