Overview
Retrieves the Moment list.
Request
Authentication Add authentication headers to the request. See Authentication
Method
GET
Rate limit
100 requests/second
Endpoint https://API domain/apigateway/moments/list
Content-Type
application/json
Request Parameters
| Parameter | Data Type | Required | Description | |
|---|---|---|---|---|
| start | int | No | Start timestamp for incremental post queries, in milliseconds (13 digits). | |
| limit | int | No | Number of items per page. Default: 20. Maximum: 50. | |
| order | int | No | Query order: 0 for descending; 1 for ascending. | |
| user_id | string | No | Retrieves the Moments list posted by a specified user. Maximum length: 32 characters. |
Request Example
GET /apigateway/moments/list?limit=20&start=1723456789123 HTTP/1.1
appkey: appkey
Authorization: xxxxxxxxxxxxxxxxxx
Content-Type: application/json
Response Example
{
"code":0,
"msg":"sucess",
"data":{
"items":[
{
"moment_id":"momentid1",
"content":{
"text":"xxxxxx",
"medias":[
{
"type":"image",
"url":"xxx",
"snapshot_url":"xxxx",
"height":100,
"width":100
},{
"type":"video",
"url":"xxxx",
"snapshot_url":"xxxx",
"duration":10,
"height":100,
"width":100
}
]
},
"user_info":{
"user_id":"xxx",
"nickname":"xxxxx",
"avatar":"xxxx"
},
"reactions":[
{
"value":"val1",
"timestamp":17312345678,
"user_info":{
"user_id":"xxx",
"nickname":"xxxxx",
"avatar":"xxxx"
}
}
],
"top_comments":[
{
"comment_id":"xxxx",
"moment_id":"xxx",
"parent_comment_id":"xxxx",
"content":{
"text":"xxxxx"
},
"parent_user_info":{
"nickname":"xxxxx",
"avatar":"xxxx",
"user_type":1
},
"user_info":{
"nickname":"xxxxx",
"avatar":"xxxx",
"user_type":1
},
"comment_time":1732123456789
}
],
"moment_time":1732123456789
}
],
"is_finished":true
}
}