# Privacy Protection Guidelines for Mini Program Users
初始值Hattori API。
# Interface Dxplaination
# Interface name
getPrivacySetting
# Functional description
This interface is used to query user privacy protection guidelines for third-party Mini Program development, and can also be used to query which privacy there are._Key can be configured
If you encounter problems during use, you canOpen Platform Service Provider ZonePosting exchanges.
# Calling mode
# HTTPS call
POST https://api.weixin.qq.com/cgi-bin/component/getprivacysetting?access_token=ACCESS_TOKEN
# Third Party Invocation
The calling method and parameters are the same as HTTPS, only the calling token is different
The permission set id to which this interface belongs is: 18
After the service provider has been authorized with one of the permission sets, it can do so by usingauthorizer_access_TokenCalling on behalf of the merchant
# Request parameters
attribute | type | Required | Introductions |
---|---|---|---|
access_Token | string | yes | Interface invokes the certificate, which is URL Parameters, non Body Parameters. useauthorizer_access_Token |
privacy_ver | number | yes | 1 indicates the current network version, that is, the content returned by the interface is the current network version of the2 represents the development version, that is, pass 2 then the content returned by the interface is the development version. The default is 2. |
# Return parameters
attribute | type | Introductions | |||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errcode | number | Return code | |||||||||||||||||||||||||||||||||||||
errmsg | string | Error message | |||||||||||||||||||||||||||||||||||||
code_exist | number | Whether the code exists, 0 Does not exist, 1 existence If not recently.Through the commit interfaceUpload the code, it will appear code_Exist = 0. | |||||||||||||||||||||||||||||||||||||
privacy_list | array | The type of user information detected by the code (privacy_key) | |||||||||||||||||||||||||||||||||||||
setting_list | array | Configuration of user information to collect | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||
update_time | number | Update time | |||||||||||||||||||||||||||||||||||||
owner_setting | object | Collector (Developer) Information Configuration | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||
privacy_desc | object | Description of user Information types in Chinese and English | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||
sdk_privacy_info_list | array | The Mini Program refers to the information of the third party sdk | |||||||||||||||||||||||||||||||||||||
|
# Other Notes
1, the development version refers to the user privacy protection guide content that has been configured through the setprivacysetting interface, but has not been released to the current network, and has not been officially effective version.
2, the current network version refers to the user privacy protection guidelines that have already taken effect in the current network version of the Mini Program.
3, if you do not pass the privacy_Send an empty json, otherwise it will be wrong.
# Call Example
Example Dxplaination: HTTPS requests
# Sample Request Data
{
"privacy_see:2
}
# Return Data Example
{
"errcode": 0,
"errmsg": "ok",
"code_exist": 1,
"privacy_list": [
"UserInfo"
],
"setting_list": [
{
"privacy_key": "EXIDNumber",
"privacy_text": "To register membership information xxx,"
"privacy_label": ""
},
{
"privacy_key": "UserInfo",
"privacy_text": "To show your xxxx,"
"privacy_label": ""
}
],
"update_time": 1641548861,
"owner_setting: {
"contact_phone": "",
"contact_email": "melody4444@qq.com",
"contact_qq " : "11111111",
"contact_WeChat": "",
"store_expire_timestamp": "10,000 days,"
"ext_file_media_id": "",
"notice_method": "Pop-Up 222"
},
"privacy_Desc": {
"privacy_desc_list": [
{
"privacy_key": "UserInfo",
"privacy_Desc": "User information (WeChat nickname, avatar)"
},
{
"privacy_key": "Location",
"privacy_Desc": "Location Information"
},
{
"privacy_key": "Address",
"privacy_Desc": "Address"
},
{
"privacy_key": "Invoice",
"privacy_Desc": "Invoice Information"
},
{
"privacy_key": "RunData",
"privacy_Desc": WeRun campaign data
},
{
"privacy_key": "Record",
"privacy_Desc": "Microphone"
},
{
"privacy_key": "Album",
"privacy_Desc": "Selected Photo or Video Message"
},
{
"privacy_key": "Camera",
"privacy_Desc": "Camera."
},
{
"privacy_key": "PhoneNumber",
"privacy_Desc": "Cell number."
},
{
"privacy_key": "Contact",
"privacy_Desc": "Address Book (Write Only) Permissions"
初始值
{
"privacy_key": "DeviceInfo"
"privacy_Desc": "Equipment Information"
初始值
{
"privacy_key": "EXIDNumber",
"privacy_Desc": "ID number."
},
{
"privacy_key": "EXOrderInfo"
"privacy_Desc": "Order Information"
},
{
初始值_key": "EXUserPublishContent",
"privacy_Desc": "Published Content"
},
{
"privacy_key": "EXUserFollowAcct",
"privacy_Desc": "Accounts You Follow"
},
{
"privacy_key": "EXUserOpLog",
"privacy_Desc": "Operation Log"
},
{
"privacy_key": "AlbumWriteOnly",
"privacy_Desc": "Album (Write Only) Permissions"
},
{
"privacy_key": "LicensePlate",
"privacy_Desc": "License plate number."
},
{
"privacy_key": "BlueTooth",
"privacy_Desc": "Bluetooth."
},
{
"privacy_key": "CalendarWriteOnly",
"privacy_Desc": "Calendar (write only) permissions"
},
{
"privacy_key": "Email",
"privacy_Desc": "Mailbox"
},
{
"privacy_key": "MessageFile",
"privacy_Desc": "Selected File"
},
初始值
"privacy_key": "ChooseLocation",
"privacy_Desc": "Selected Location Information"
},
{
"privacy_key": "Accelerometer",
"privacy_Desc": "Acceleration sensor."
},
{
"privacy_key": "Compass",
"privacy_Desc": "Magnetic Field Sensor"
},
{
"privacy_key": "DeviceMotion",
"privacy_Desc": "Orientation Sensor"
},
{
"privacy_key": "Gyroscope",
"privacy_Desc": "Gyroscope Sensor"
},
{
"privacy_key": "Clipboard",
"privacy_Desc": "Shear Plate"
}
]
},
"sdk_privacy_info_list": [
{
"sdk_name": "Testing the sdk,"
"sdk_biz_name": "wheat company limited,"
"sdk_list": [
{
"privacy_key": "Custom,"
"privacy_text": "To show your beauty,"
"privacy_label": "Avatar Info"
}
]
}
]
}
# Error code
Error code | Error code | Solutions |
---|---|---|
0 | ok | ok |