Ex.Pnut v0.1.0 ExPnut.Posts.Lifecycle View Source
Create, update or delete posts.
Link to this section Summary
Link to this section Functions
Link to this function
delete_post(client, postId) View Source
Delete a post.
Link to this function
posts(client, new_post, post_params \\ %PostParams{}) View Source
Create a post.
On creation, you can automatically update the "personal" stream marker to the post's ID by including update_marker=1 in the query string.
Posts from the same human- or feed-type user cannot contain the same text within 120 seconds.
An application/json Content-Type is preferred over form. Normal links and markdown links are parsed by the server by default.
Link to this function
revise_post(client, postId, new_post, post_params \\ %PostParams{}) View Source
Edit or "revise" a post.
- Can only be done within 300 seconds of the original post's creation
- Can only be done once to a post
- Must contain the same entities that were in the original post (Positions can change. Links can be formatted in any way, but the URLs have to be the same)
Once a revision has been made, the original post can still be retrieved from the Revisions endpoint.
Reposts made before the revision will continue to point at the original post.