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