Skip to main content

Overview

Posts a comment on a Moment.

Request

Authentication: Add authentication headers to the request. See Authentication

Method: POST

Rate limit: 100 requests/second

Endpoint: https://API domain/momentgateway/moments/comments/add

Content-Type: application/json

Request parameters

Request example

POST /momentgateway/moments/comments/add HTTP/1.1
appkey: appkey
Authorization: xxxxxxxxxxxxxxxxxx
Content-Type: application/json

{
"moment_id":"Moments post ID",
"parent_comment_id":"parent comment ID",
"content":{
"text":"comment content"
}
}

Response example

{
"code":0,
"msg":"sucess",
"data":{
"comment_id":"xxx",
"comment_time":17212345678,
"user_info":{
"user_id":"xxx",
"nickname":"xxxxx",
"avatar":"xxxx"
}
}
}

Response codes

Response codesDescription