Matt Baer
cbbd4ec209
Pass along edit token on post update
Fixes bug introduced when we moved `Token` into the func's parameters,
out of PostParams.
5 years ago
Matt Baer
470dc287c6
Move update params in Update|DeletePost
Moves the ID and token params out of PostParams and into the func's
parameters. A currently-unused `collection` parameter is left in for the
future, when the backend supports updating and deleting collection posts
via slug, not post ID.
5 years ago
Matt Baer
2564207297
Return actual error message when request fails
5 years ago
Matt Baer
5d3a329a7a
Rearrange status checks in CreatePost
5 years ago
Matt Baer
ca804e86e2
Fix "problem {x}ing post" copy-pasted error messages
Previously, they all said the same thing
5 years ago
Matt Baer
2915667895
Rearrange status checks in UpdatePost
5 years ago
Matt Baer
ed584d036d
Support unpinning posts
5 years ago
Matt Baer
d3ace8c73b
Support pinning posts
5 years ago
Matt Baer
21dfda1c03
Add `updated` property on posts
5 years ago
Matt Baer
ff3f1ff4c8
Support fetching user posts
5 years ago
Matt Baer
c1d801f60d
Move OwnedPostParams fields into PostParams
5 years ago
Tomas Gallucci
bbb412e20d
removed unreachable code
5 years ago
Tomas Gallucci
4d5bb5a8b0
use correct verb for error formatting
5 years ago
Matt Baer
16f713f560
Mention that Crosspost parameter is only for post creation
6 years ago
Matt Baer
71e8a2f11a
Support publishing posts to a collection
6 years ago
Matt Baer
8425a91fe1
Fix `else` block lint errors
6 years ago
Matt Baer
ecf5bd883a
Use new API docs URL
writeas.github.io/docs -> developer.write.as/docs/api
6 years ago
Matt Baer
7f9e52b4df
Add documentation for ClaimPostResult
6 years ago
Matt Baer
4846285bde
Support claiming anonymous posts
7 years ago
Matt Baer
15e10296a6
Fix and add comments
7 years ago
Matt Baer
e9fb773d56
Use PUT for updating posts
7 years ago
Matt Baer
436e840f2e
Catch delete's 204 success response
7 years ago
Matt Baer
89c2661aed
Support deleting posts
Plus break up internal request building so we can optionally send query
parameters with some requests (like DELETEs!)
7 years ago
Matt Baer
8a9ac652f2
Support updating posts
Plus change Post's ModifyToken to Token.
7 years ago
Matt Baer
d2110756cd
Support creating a post
Plus fix Client post func and rename SubmittedPost to PostParams.
7 years ago
Matt Baer
04c8b73524
Support API v2
Includes ability to make authenticated requests and get posts.
7 years ago