Post Detail
- Endpoint Path:
/api/fresns/v1/post/{pid}/detail
- Method:
GET
- Request:
Rest
+Query
Headers Optional Parameter
Key | Public Mode (Required) | Private Mode (Required) |
---|---|---|
X-Fresns-Aid | optional | required |
X-Fresns-Aid-Token | optional | required |
X-Fresns-Uid | optional | required |
X-Fresns-Uid-Token | optional | required |
Path Variables
Key | Type | Required | Description |
---|---|---|---|
pid | String | required | Post ID |
Query Params
Key | Type | Required | Description |
---|---|---|---|
mapId | Number | optional | Map Service Provider |
mapLng | String | optional | Map Longitude (For distance calculation) |
mapLat | String | optional | Map Latitude (For distance calculation) |
filterType | String | optional | whitelist only returns key-value pairs for the given key namesblacklist removes specified key-value pairs from the returned data |
filterKeys | String | optional | Multiple separated by English commas, supports "dot notation" for multi-dimensional arrays |
filterGroupType | String | optional | whitelist only returns key-value pairs for the given key namesblacklist removes specified key-value pairs from the returned dataApplies only to the group parameter in the returned result |
filterGroupKeys | String | optional | Multiple separated by English commas, supports "dot notation" for multi-dimensional arrays |
filterHashtagType | String | optional | whitelist only returns key-value pairs for the given key namesblacklist removes specified key-value pairs from the returned dataApplies only to the hashtags parameter in the returned result |
filterHashtagKeys | String | optional | Multiple separated by English commas, supports "dot notation" for multi-dimensional arrays |
filterGeotagType | String | optional | whitelist only returns key-value pairs for the given key namesblacklist removes specified key-value pairs from the returned dataApplies only to the geotag parameter in the returned result |
filterGeotagKeys | String | optional | Multiple separated by English commas, supports "dot notation" for multi-dimensional arrays |
filterAuthorType | String | optional | whitelist only returns key-value pairs for the given key namesblacklist removes specified key-value pairs from the returned dataApplies only to the author parameter in the returned result |
filterAuthorKeys | String | optional | Multiple separated by English commas, supports "dot notation" for multi-dimensional arrays |
filterQuotedPostType | String | optional | whitelist only returns key-value pairs for the given key namesblacklist removes specified key-value pairs from the returned dataApplies only to the quotedPost parameter in the returned result |
filterQuotedPostKeys | String | optional | Multiple separated by English commas, supports "dot notation" for multi-dimensional arrays |
filterPreviewLikeUserType | String | optional | whitelist only returns key-value pairs for the given key namesblacklist removes specified key-value pairs from the returned dataApplies only to the previewLikeUsers parameter in the returned result |
filterPreviewLikeUserKeys | String | optional | Multiple separated by English commas, supports "dot notation" for multi-dimensional arrays |
filterPreviewCommentType | String | optional | whitelist only returns key-value pairs for the given key namesblacklist removes specified key-value pairs from the returned dataApplies only to the previewComments parameter in the returned result |
filterPreviewCommentKeys | String | optional | Multiple separated by English commas, supports "dot notation" for multi-dimensional arrays |
Request Description
- If in
private
mode, when expired atusers->expired_at
, you need to determine the status after expiration.- When the key value of the configuration table
site_private_end_after
is1
, this interface cannot be requested; - When the key value is
2
, further judge the posting time. Ifposts->created_at
posting time is greater than the expiration timeusers->expired_at
, it will not be output; if the posting time is less than the expiration time, it means the content was posted before expiration and can be output.
- When the key value of the configuration table
Return
json
{
"code": 0,
"message": "ok",
"data": {
"items": {
"title": "String / SEO Title",
"keywords": "String / SEO Keywords",
"description": "String / SEO Description"
},
"detail": {
// Common Data Structure -> Post Info
}
}
}