13 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 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 8458fb4c98 Add distinguishing methods
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
2020-09-07 22:26:52 -04:00
Vartan Benohanian 078b172e81 Add methods to ModerationService, attribute to Post, use go v1.15
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
2020-09-07 21:24:14 -04:00
Vartan Benohanian ffcc906c07 Add Listing/KarmaList to thing struct, tweak anonymous structs
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
2020-09-01 22:35:28 -04:00
Vartan Benohanian 2a1806ec33 Revamp listing decoding, include after/before anchors in response
Now, instead of returning an object containing a list of results + the
anchors, we return just the list. The anchors are available in the
response object. Much cleaner this way in my opinion

go-github and godo do it this way too. They include some meta
information in the returned response objects

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
2020-08-29 14:23:37 -04:00
Vartan Benohanian 73945e9aae Edit comments
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
2020-08-27 18:49:30 -04:00
Vartan Benohanian 3c9ea61859 Set mod permissions, remove some duplicate code
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
2020-08-25 19:30:35 -04:00
Vartan Benohanian 1eb2acf318 Add more api/friend and api/unfriend methods
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
2020-08-25 18:45:25 -04:00
Vartan Benohanian 9152959ac0 Un/invite users to become mods, un/ban users
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
2020-08-24 23:52:18 -04:00
Vartan Benohanian b89df0b64f Add methods to report, un/ignore reports
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
2020-08-20 16:25:23 -04:00
Vartan Benohanian f86a559d76 Move everything to new reddit/ folder
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
2020-08-20 14:37:59 -04:00