Change user avatar
Please use this (https://gliqe.com/mobile_api/avatar) API for accessing user avatar uploading endpoint
Post parameters
Field | Value | Remarks |
---|---|---|
session_id | Access token ID | E.g. de25cc16eb00960f076... |
avatar | Image format file (jpg,png,jpeg,gif) | image.jpeg |
Success response
{
"code": 200,
"message": "Avatar changed successfully",
"data": {
"avatar_url": "http://dev.colibri.loc/upload/avatars/2021/02/hVB4NV4....a967a7_thumbnail_512x512.jpg"
}
}
Error responses
{
"code": 401,
"data": [],
"message": "Unauthorized Access"
}
{
"code": 400,
"data": [],
"message": "Avatar image is missing or invalid"
}
Change user profile cover
Please use this (https://gliqe.com/mobile_api/cover) API for accessing user profile cover uploading endpoint
Post parameters
Field | Value | Remarks |
---|---|---|
session_id | Access token ID | E.g. de25cc16eb00960f076... |
cover | Image format file (jpg,png,jpeg,gif) | image.jpeg |
Success response
{
"code": 200,
"message": "Profile cover changed successfully",
"data":{
"cover_url": "http://dev.colibri.loc/upload/covers/2021/02/4wWZCl...fd23a4_image_cover_600x200.jpg"
}
}
Error responses
{
"code": 401,
"data": [],
"message": "Unauthorized Access"
}
{
"code": 400,
"data": [],
"message": "Cover image is missing or invalid"
}
Change user profile cover position
Please use this (https://gliqe.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 parameters
Field | Value | Remarks |
---|---|---|
session_id | Access token ID | E.g. de25cc16eb00960f076... |
cover_position | Integer top position offset number | E.g. 10 |
Success response
{
"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"
}
}
Error responses
{
"code": 401,
"data": [],
"message": "Unauthorized Access"
}
{
"code": 400,
"data": [],
"message": "Cover position offset number is missing or invalid"
}