Post
#
Prerequisites- To use the Social Feed API, you must first authenticate yourself and receive a token enables you to access the service. See the Authentication documentation for more information on how to do this.
- Post endpoints need a
postId
as path parameter. Owner of posts is persons so check the Person and getpostId
. See the Person documentation for more information on how to do this.
#
RequestsPost resource provides the following endpoints:
Path | HTTP Method | Description |
---|---|---|
v1/posts/ | GET | View All posts of current user |
v1/posts/{postId} | GET | View a specified post |
v1/posts/{postId}/comments | GET | View All comments of a specified post |
v1/posts/{postId}/comments/pages | GET | View paginated comments of a specified post |
v1/posts/{postId}/likes/pages | GET | View paginated person's ID who liked a specified post |
See the API documentation documentation for more information on these endpoints
#
Example RequestThe following example curl command demonstrates how to get comments of a specified post.
In a Linux/Unix/macOS environment:
In Windows PowerShell:
#
Responses- If successful, the operation responds with HTTP status code 2XX.
- If the operation fails, it returns the appropriate status code and (optionally) the error description in the response body.
- If the specified post does not belong to the authenticating user organization, the operation returns the
Access is denied
error. - If the authenticating user or the specified post does not exist, the operation returns the
Not found
error. - If the Authorization header is not present or invalid, a 401 error code will be returned.
- If the specified post does not belong to the authenticating user organization, the operation returns the