Post List by Follow
- Endpoint Path:
/api/v2/post/follow/{type} - Method:
GET - Request:
Rest+Query
Headers Optional Parameter
| Parameter Name | Public Mode (Required) | Private Mode (Required) |
|---|---|---|
| X-Fresns-Aid | required | required |
| X-Fresns-Aid-Token | required | required |
| X-Fresns-Uid | required | required |
| X-Fresns-Uid-Token | required | required |
Rest Params
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| type | String | required | all,user,group,hashtag |
Query Params
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| contentType | String | optional | Filter content by type |
| mapId | Number | optional | Map Service Provider |
| mapLng | String | optional | Map Longitude (For distance calculation) |
| mapLat | String | optional | Map Latitude (For distance calculation) |
| whitelistKeys | String | optional | Whitelist key names, only returns key-value pairs for the given key names Multiple separated by English commas, supports "dot notation" for multi-dimensional arrays |
| blacklistKeys | String | optional | Blacklist key names, removes specified key-value pairs from the returned data Multiple separated by English commas, supports "dot notation" for multi-dimensional arrays |
| pluginRatingId | Number | optional | Sort number (plug-in specific) |
| pageSize | Number | optional | Number of items per page (default 15 items) |
| page | Number | optional | Page number (default 1) |
Request Description
- Returns a list of posts from my followers, based on a timeline, with the user own posts included in the
usertimeline.
Return
json
{
"code": 0,
"message": "ok",
"data": {
"pagination": {
"total": "Number / How much data in total",
"pageSize": "Number / How much data on each page",
"currentPage": "Number / Current page number",
"lastPage": "Number / Last page number"
},
"list": [
{
// Common Data Structure -> Post Info
}
]
}
}