Get Privacy settings
请用 (https://yedoll.com/mobile_api/get_priv_settings) API for accessing the endpoint of user privacy settings
Get 参数
参数 | 值 | 描述 |
---|---|---|
session_id | Access token ID | 例如: de25cc16eb00960f076... |
成功响应
{
"code": 200,
"message": "",
"data":{
"profile_visibility": "everyone",
"contact_privacy": "everyone",
"follow_privacy": "everyone",
"search_visibility": true
}
}
错误响应
{
"code": 401,
"data": [],
"message": "Unauthorized Access"
}
Change Privacy settingss
请用 (https://yedoll.com/mobile_api/set_priv_settings) API for accessing the endpoint of changing user privacy settings
Post 参数
参数 | 值 | 描述 |
---|---|---|
session_id | Access token ID | 例如: de25cc16eb00960f076... |
profile_visibility | Profile access privacy | 例如: One of these options (followers/everyone) |
contact_privacy | Direct message privacy | 例如: One of these options (followed/everyone) |
follow_privacy | Follow request privacy | 例如: One of these options (approved/everyone) |
search_visibility | Profile search indexing privacy | 例如: One of these options (Y/N) |
成功响应
{
"code": 200,
"message": "User privacy settings updated",
"data": []
}
错误响应
{
"code": 401,
"data": [],
"message": "Unauthorized Access"
}
{
"code": 400,
"data": [],
"message": "Invalid request data"
}