Skip to main content

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

Authentication and options

Authorization
Authorized
LimitationNo limitation

Parameters

user_id
*required
The user's user_id.

Example request

curl -i -X GET -H "Content-Type: application/json" -H "Bearer: $TOKEN" https://api.mixin.one/users/06aed1e3-bd77-4a59-991a-5bb5ae6fbb09/apps/favorite
Response
{  "data": [    {       "type": "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

Authentication and options

Authorization
Authorized
LimitationNo limitation

Parameters

client_id
*required
The application's client_id who you are adding to your share list.

Example request

curl -i -X POST -H "Content-Type: application/json" -H "Bearer: $TOKEN" https://api.mixin.one/apps/06aed1e3-bd77-4a59-991a-5bb5ae6fbb09/favorite
Response
{  "data": [    {       "type": "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

Authentication and options

Authorization
Authorized
LimitationNo limitation

Parameters

client_id
*required
The application's client_id who you are removing from your share list.

Example request

curl -i -X POST -H "Content-Type: application/json" -H "Bearer: $TOKEN" https://api.mixin.one/apps/06aed1e3-bd77-4a59-991a-5bb5ae6fbb09/unfavorite

Returns empty json on success.