Matt Baer
645de842c4
Add post types
vor 3 Jahren
Matt Baer
b35223f930
Update developer.write.as -> developers.write.as
vor 4 Jahren
Matt Baer
ada6b850c1
Revert "Merge pull request #18 from writeas/include-coll"
This reverts commit 8463946e2d6b211208c04eb6832f155865d12de3, reversing
changes made to 8cf5d50560
.
vor 4 Jahren
Rob Loranger
3e525f7a24
include collection and id in postparams
this changes the JSON tags to include both the ID and Collection
in PostParams. Both will be omitted when empty to maintain any unknown
backwards compatibility.
vor 4 Jahren
Rob Loranger
064e8a36c8
do not exclude ID in OwnedPostParams
vor 4 Jahren
Rob Loranger
268710536d
use POST for claim posts endpoint
vor 4 Jahren
Matt Baer
062df41a63
Add Slug, Created, and Updated to PostParams
for creating or updating posts.
vor 5 Jahren
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.
vor 5 Jahren
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.
vor 5 Jahren
Matt Baer
2564207297
Return actual error message when request fails
vor 5 Jahren
Matt Baer
5d3a329a7a
Rearrange status checks in CreatePost
vor 5 Jahren
Matt Baer
ca804e86e2
Fix "problem {x}ing post" copy-pasted error messages
Previously, they all said the same thing
vor 5 Jahren
Matt Baer
2915667895
Rearrange status checks in UpdatePost
vor 5 Jahren
Matt Baer
ed584d036d
Support unpinning posts
vor 5 Jahren
Matt Baer
d3ace8c73b
Support pinning posts
vor 5 Jahren
Matt Baer
21dfda1c03
Add `updated` property on posts
vor 5 Jahren
Matt Baer
ff3f1ff4c8
Support fetching user posts
vor 5 Jahren
Matt Baer
c1d801f60d
Move OwnedPostParams fields into PostParams
vor 5 Jahren
Tomas Gallucci
bbb412e20d
removed unreachable code
vor 5 Jahren
Tomas Gallucci
4d5bb5a8b0
use correct verb for error formatting
vor 5 Jahren
Matt Baer
16f713f560
Mention that Crosspost parameter is only for post creation
vor 6 Jahren
Matt Baer
71e8a2f11a
Support publishing posts to a collection
vor 6 Jahren
Matt Baer
8425a91fe1
Fix `else` block lint errors
vor 6 Jahren
Matt Baer
ecf5bd883a
Use new API docs URL
writeas.github.io/docs -> developer.write.as/docs/api
vor 6 Jahren
Matt Baer
7f9e52b4df
Add documentation for ClaimPostResult
vor 6 Jahren
Matt Baer
4846285bde
Support claiming anonymous posts
vor 7 Jahren
Matt Baer
15e10296a6
Fix and add comments
vor 7 Jahren
Matt Baer
e9fb773d56
Use PUT for updating posts
vor 7 Jahren
Matt Baer
436e840f2e
Catch delete's 204 success response
vor 7 Jahren
Matt Baer
89c2661aed
Support deleting posts
Plus break up internal request building so we can optionally send query
parameters with some requests (like DELETEs!)
vor 7 Jahren
Matt Baer
8a9ac652f2
Support updating posts
Plus change Post's ModifyToken to Token.
vor 7 Jahren
Matt Baer
d2110756cd
Support creating a post
Plus fix Client post func and rename SubmittedPost to PostParams.
vor 7 Jahren
Matt Baer
04c8b73524
Support API v2
Includes ability to make authenticated requests and get posts.
vor 7 Jahren