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