Rob Loranger
de8ce4dcd2
closes T589 update tests to use dev client
this changes tests to only use the dev client as all code is shared
between that and the write.as client, just the host changes.
also updated post tests to round trip and test over sub tests
5 years ago
Abhinav Gupta
993ee50b3d
style: Run goimports on everything
Similar to writeas/writeas-cli#22 , this change runs goimports on all
files and changes the recommendation in the Contributing section to do
the same.
5 years ago
Matt Baer
b88b7e4e51
Reflect breaking v2 changes in examples and tests
5 years ago
Matt Baer
9b40a6fb2d
Fix post tests
5 years ago
Matt Baer
ed584d036d
Support unpinning posts
5 years ago
Matt Baer
d3ace8c73b
Support pinning posts
5 years ago
Matt Baer
b9ad92a1e1
Fix GetPost test looking for dev post
5 years ago
Matt Baer
fbe1c5830b
Add expected output on examples
6 years ago
Matt Baer
1864082f94
Add post creation GoDoc example
6 years ago
Matt Baer
07854c5fd7
Fix CreatePost tests
Previously, PostParams wasn't properly initialized.
6 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
0376852c2f
Move `token` NewClient param to setter
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