API Overview
Message Callbacks
Status Codes
Overview
Adds a reaction to a post.
Request
Authentication Add authentication headers to the request. See Authentication
Method
POST
Rate limit
100 requests/second
Endpoint https://API domain/apigateway/moments/reactions/add
Content-Type
application/json
Request Parameters
| Parameter | Data Type | Required | Description | |
|---|---|---|---|---|
| user_id | string | Yes | Operator user ID. Maximum length: 32 characters | |
| moment_id | string | Yes | Moment ID. Maximum length: 32 characters | |
| reaction | object | Yes | Reaction information. | |
| reaction.key | string | Yes | Reaction identifier. Maximum length: 50 characters | |
| reaction.value | string | No | Reaction value. Maximum length: 50 characters |
Request Example
POST /apigateway/moments/reactions/add HTTP/1.1
appkey: appkey
Authorization: xxxxxxxxxxxxxxxxxx
Content-Type: application/json
{
"user_id":"userid1", // act as this user
"moment_id":"Moments post ID",
"reaction":{
"key":"k1",
"value":"v1"
}
}
Response Example
{
"code":0,
"msg":"sucess"
}
Response codes
| Response codes | Description |
|---|