guy176251
166d7a6d93
changed example
2026-05-27 12:28:25 -05:00
guy176251
c959c91d0d
added nsfw flag to search functions
2026-05-26 01:50:49 -05:00
guy176251
68b11ef35c
added nsfw results for search functions
2026-05-25 18:36:52 -05:00
guy176251
76c46f0a0d
fixed Get on post service
2026-02-15 21:40:10 -06:00
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
e60ea7244d
Bump version to v2
...
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com >
2021-01-31 20:36:04 -05:00
Vartan Benohanian
6d615771cb
Use Credentials struct for NewClient
...
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com >
2021-01-24 22:55:37 -05:00
Vartan Benohanian
78dc97a8d5
Make DefaultClient a method that returns the global default client
...
I made this a method to prevent other users from reassigning the
previously exported DefaultClient, e.g. doing something like:
```go
reddit.DefaultClient = nil
```
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com >
2020-11-01 22:25:13 -05: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
e1dff15901
Add missing return
...
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com >
2020-08-29 14:49:27 -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
37e712b334
Add global DefaultClient (readonly), WithUserAgent option
...
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com >
2020-08-29 03:25:28 -04:00
Vartan Benohanian
c0f0cf8be6
Set HTTP client via option. Update readme, Makefile, go.sum
...
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com >
2020-08-26 23:13:34 -04:00
Vartan Benohanian
ba5eea5ed4
Create Credentials struct
...
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com >
2020-08-23 22:25:29 -04:00
Vartan Benohanian
ae6fbd2614
Add example for streaming posts
...
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com >
2020-08-23 00:30:04 -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
Vartan Benohanian
23ed51efcc
Use ListOptions for parameters instead of functional options
...
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com >
2020-08-05 13:25:09 -04:00
Vartan Benohanian
23d572046c
Rename methods, add comments to clarify ListOptions
...
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com >
2020-08-04 16:42:42 -04:00
Vartan Benohanian
73367784ce
Update README.md and license. Add examples
...
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com >
2020-08-02 15:59:25 -04:00