List the posts in a community channel, newest first
GET
/apps/{appId}/channels/{channelId}/posts
const url = 'https://api.passion.io/v1/apps/example/channels/example/posts?limit=20';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.passion.io/v1/apps/example/channels/example/posts?limit=20'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”appId
required
The id of the App, as Studio shows it.
string
channelId
required
The id of a channel, as the App overview lists it under its community.
string
Query Parameters
Section titled “Query Parameters”cursor
The nextCursor of the page before. Leave it out for the newest posts.
string
limit
How many posts, 50 at most.
integer
Responses
Section titled “Responses”OK
Media typeapplication/json
object
Examplegenerated
{ "posts": [ { "id": "example", "text": "example", "author": "example", "createdAt": "example", "editedAt": "example", "replies": 1 } ], "nextCursor": "example"}