1
0
mirror of https://github.com/writeas/go-writeas.git synced 2025-07-27 14:38:19 +00:00
Commit Graph

36 Commits

Author SHA1 Message Date
89c047d266 Support setting categories on posts 2021-11-26 18:39:20 -05:00
c00064f688 Support author parameter on posts 2021-10-15 15:55:59 -04:00
645de842c4 Add post types 2020-06-08 17:41:07 -04:00
b35223f930 Update developer.write.as -> developers.write.as 2019-08-15 13:46:30 -04:00
ada6b850c1 Revert "Merge pull request #18 from writeas/include-coll"
This reverts commit 8463946e2d, reversing
changes made to 8cf5d50560.
2019-06-13 10:00:04 -04:00
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.
2019-06-11 19:42:54 -07:00
Rob Loranger
064e8a36c8
do not exclude ID in OwnedPostParams 2019-06-10 14:14:38 -07:00
Rob Loranger
268710536d
use POST for claim posts endpoint 2019-06-10 12:51:20 -07:00
062df41a63 Add Slug, Created, and Updated to PostParams
for creating or updating posts.
2019-02-09 07:11:45 -05:00
cbbd4ec209 Pass along edit token on post update
Fixes bug introduced when we moved `Token` into the func's parameters,
out of PostParams.
2018-10-08 20:21:37 -04:00
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.
2018-10-08 20:03:22 -04:00
2564207297 Return actual error message when request fails 2018-09-25 12:28:25 -04:00
5d3a329a7a Rearrange status checks in CreatePost 2018-09-25 12:27:24 -04:00
ca804e86e2 Fix "problem {x}ing post" copy-pasted error messages
Previously, they all said the same thing
2018-09-25 12:11:25 -04:00
2915667895 Rearrange status checks in UpdatePost 2018-09-22 23:23:02 +02:00
ed584d036d Support unpinning posts 2018-09-21 01:00:59 +02:00
d3ace8c73b Support pinning posts 2018-09-21 00:57:12 +02:00
21dfda1c03 Add updated property on posts 2018-09-20 13:22:16 +02:00
ff3f1ff4c8 Support fetching user posts 2018-09-14 11:05:05 +02:00
c1d801f60d Move OwnedPostParams fields into PostParams 2018-09-06 13:41:06 -04:00
Matt Baer
64dec060b2
Merge pull request #7 from ProfessorTom/remove_unreachable_code
removed unreachable code
2018-07-03 14:17:09 -04:00
Tomas Gallucci
bbb412e20d removed unreachable code 2018-07-03 04:36:41 -05:00
Tomas Gallucci
4d5bb5a8b0 use correct verb for error formatting 2018-07-03 03:48:54 -05:00
16f713f560 Mention that Crosspost parameter is only for post creation 2017-11-12 05:10:59 -05:00
71e8a2f11a Support publishing posts to a collection 2017-11-12 05:08:01 -05:00
8425a91fe1 Fix else block lint errors 2017-10-19 19:08:15 +09:00
ecf5bd883a Use new API docs URL
writeas.github.io/docs -> developer.write.as/docs/api
2017-10-01 18:31:37 -04:00
7f9e52b4df Add documentation for ClaimPostResult 2017-08-18 22:50:10 -04:00
4846285bde Support claiming anonymous posts 2016-10-31 08:48:45 -04:00
Matt Baer
15e10296a6 Fix and add comments 2016-09-09 00:11:22 -04:00
Matt Baer
e9fb773d56 Use PUT for updating posts 2016-09-05 02:03:36 -04:00
Matt Baer
436e840f2e Catch delete's 204 success response 2016-09-05 02:03:03 -04:00
Matt Baer
89c2661aed Support deleting posts
Plus break up internal request building so we can optionally send query
parameters with some requests (like DELETEs!)
2016-09-04 21:12:35 -04:00
Matt Baer
8a9ac652f2 Support updating posts
Plus change Post's ModifyToken to Token.
2016-09-04 20:33:38 -04:00
Matt Baer
d2110756cd Support creating a post
Plus fix Client post func and rename SubmittedPost to PostParams.
2016-09-04 20:11:37 -04:00
Matt Baer
04c8b73524 Support API v2
Includes ability to make authenticated requests and get posts.
2016-09-04 19:31:57 -04:00