Sharing Bots
Both users and bots can be configured to share 3 bots on their personal pages, and they can also be displayed from the + menu in the lower left corner of the chat interface. This feature can greatly promote the spread of bots among users by word of mouth.
Get Share List
GET /users/:user_id/apps/favorite
Get the share bot list
Endpoint URL
https://api.mixin.one/users/:user_id/apps/favorite
Example request
curl -i -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" https://api.mixin.one/users/06aed1e3-bd77-4a59-991a-5bb5ae6fbb09/apps/favorite
Response
{
"data": [
{
"type": "favorite_app",
"user_id": "06aed1e3-bd77-4a59-991a-5bb5ae6fbb09",
"app_id": "c94ac88f-4671-3976-b60a-09064f1811e8",
"created_at": "2017-12-23T18:23:26.996149Z"
}
...
]
}
Add to Shares
POST /apps/:client_id/favorite
Endpoint URL
https://api.mixin.one/apps/:client_id/favorite
Example request
curl -i -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" https://api.mixin.one/apps/06aed1e3-bd77-4a59-991a-5bb5ae6fbb09/favorite
Response
{
"data": [
{
"type": "favorite_app",
"user_id": "06aed1e3-bd77-4a59-991a-5bb5ae6fbb09",
"app_id": "c94ac88f-4671-3976-b60a-09064f1811e8",
"created_at": "2017-12-23T18:23:26.996149Z"
}
...
]
}
Delete from Shares
POST /apps/:client_id/unfavorite
Endpoint URL
https://api.mixin.one/apps/:client_id/unfavorite
Example request
curl -i -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" https://api.mixin.one/apps/06aed1e3-bd77-4a59-991a-5bb5ae6fbb09/unfavorite
Returns empty json on success.