Change user avatar
请用 (https://yedoll.com/mobile_api/avatar) API for accessing user avatar uploading endpoint
Post 参数
参数 | 值 | 描述 |
---|---|---|
session_id | Access token ID | 例如: de25cc16eb00960f076... |
avatar | Image format file (jpg,png,jpeg,gif) | image.jpeg |
成功响应
{
"code": 200,
"message": "Avatar changed successfully",
"data": {
"avatar_url": "http://dev.colibri.loc/upload/avatars/2021/02/hVB4NV4....a967a7_thumbnail_512x512.jpg"
}
}
错误响应
{
"code": 401,
"data": [],
"message": "Unauthorized Access"
}
{
"code": 400,
"data": [],
"message": "Avatar image is missing or invalid"
}
Change user profile cover
请用 (https://yedoll.com/mobile_api/cover) API for accessing user profile cover uploading endpoint
Post 参数
参数 | 值 | 描述 |
---|---|---|
session_id | Access token ID | 例如: de25cc16eb00960f076... |
cover | Image format file (jpg,png,jpeg,gif) | image.jpeg |
成功响应
{
"code": 200,
"message": "Profile cover changed successfully",
"data":{
"cover_url": "http://dev.colibri.loc/upload/covers/2021/02/4wWZCl...fd23a4_image_cover_600x200.jpg"
}
}
错误响应
{
"code": 401,
"data": [],
"message": "Unauthorized Access"
}
{
"code": 400,
"data": [],
"message": "Cover image is missing or invalid"
}
Change user profile cover position
请用 (https://yedoll.com/mobile_api/cover_reposition) API for accessing the endpoint of changing the position of the user's profile cover
This access point allows you to change the position of the profile cover up or down. The margins are combed from top to bottom in pixels, given the standard cover size of 600 by 200 pixels.
Post 参数
参数 | 值 | 描述 |
---|---|---|
session_id | Access token ID | 例如: de25cc16eb00960f076... |
cover_position | Integer top position offset number | 例如: 10 |
成功响应
{
"code": 200,
"message": "Your changes have been successfully saved",
"data":{
"cover_url": "http://dev.colibri.loc/upload/covers/2021/02/bp3lj5....ccd9c7_image_cover.jpg"
}
}
错误响应
{
"code": 401,
"data": [],
"message": "Unauthorized Access"
}
{
"code": 400,
"data": [],
"message": "Cover position offset number is missing or invalid"
}