10 Commits

Author SHA1 Message Date
guy176251 8c85da5472 Revert "initial attempt to integrate surf http client"
This reverts commit 538d52d064.
2026-01-24 15:00:30 -06:00
guy176251 538d52d064 initial attempt to integrate surf http client 2026-01-24 14:59:48 -06:00
Vartan Benohanian d128a7c4f7 Remove "before" field from Response
Listing responses only ever contain a non-empty "before" field when the
"count" parameter is provided, which is only useful for the HTML
website, not really needed for API clients

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
2020-09-29 14:19:32 -04:00
Vartan Benohanian 022cfd5cb1 Edit error messages
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
2020-09-29 13:40:34 -04:00
Vartan Benohanian e01896137a Create getThing method to remove duplicate code
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
2020-09-18 11:27:42 -04:00
Vartan Benohanian f1b0d39a66 Remove duplicate code
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
2020-09-13 22:20:00 -04:00
Vartan Benohanian def7e3bdb7 Chage NewRequest methods, add multi description kind to thing
Since Reddit's API accepts form data as the body for most of its
endpoints, it made sense to me to make the default NewRequest method
set the request body as form data (if provided of course). The
NewJSONRequest method can accept a JSON body.

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
2020-09-09 23:02:06 -04:00
Vartan Benohanian 24a87a260b Finish WikiService
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
2020-09-06 14:58:49 -04:00
Vartan Benohanian a9e42b21b1 Get wiki page, get wiki page discussions
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
2020-09-05 00:29:49 -04:00
Vartan Benohanian 9d5132f15c Create WikiService
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
2020-09-03 23:25:16 -04:00