Go library for accessing the Reddit API.
Go to file
Vartan Benohanian ec7e8abe8e Create PostAndCommentService, holds common methods
Some functionality such as saving, voting, deleting, etc. is common to
both posts and comments, so this service will hold such methods.

Tweaked the separate post/comment services accordingly. Fixed tests.

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
2020-07-13 23:05:24 -04:00
testdata Add ModerationService, tweak structs, delete unneeded ones 2020-07-12 22:53:19 -04:00
.gitignore Initial commit 2020-04-23 20:10:02 -04:00
account_test.go Rename package to go-reddit 2020-07-11 13:49:07 -04:00
account.go Add ModerationService, tweak structs, delete unneeded ones 2020-07-12 22:53:19 -04:00
comment_test.go Create PostAndCommentService, holds common methods 2020-07-13 23:05:24 -04:00
comment.go Create PostAndCommentService, holds common methods 2020-07-13 23:05:24 -04:00
errors.go Add method to create request with form data 2020-07-11 14:12:03 -04:00
flair_test.go Rename package to go-reddit 2020-07-11 13:49:07 -04:00
flair.go Rename package to go-reddit 2020-07-11 13:49:07 -04:00
geddit_oauth.go Rename package to go-reddit 2020-07-11 13:49:07 -04:00
geddit_options_test.go Rename package to go-reddit 2020-07-11 13:49:07 -04:00
geddit_options.go Rename package to go-reddit 2020-07-11 13:49:07 -04:00
geddit_test.go Create PostAndCommentService, holds common methods 2020-07-13 23:05:24 -04:00
geddit.go Create PostAndCommentService, holds common methods 2020-07-13 23:05:24 -04:00
go.mod Rename package to go-reddit 2020-07-11 13:49:07 -04:00
go.sum Use assert package for tests, much cleaner 2020-05-29 19:50:52 -04:00
LICENSE Initial commit 2020-04-23 20:10:02 -04:00
listings.go Rename package to go-reddit 2020-07-11 13:49:07 -04:00
Makefile Rename package to go-reddit 2020-07-11 13:49:07 -04:00
moderation_test.go Add more methods to moderation service 2020-07-13 19:52:39 -04:00
moderation.go Add more methods to moderation service 2020-07-13 19:52:39 -04:00
multi_test.go Rename package to go-reddit 2020-07-11 13:49:07 -04:00
multi.go Add method to create request with form data 2020-07-11 14:12:03 -04:00
post_test.go Create PostAndCommentService, holds common methods 2020-07-13 23:05:24 -04:00
post-and-comment_test.go Create PostAndCommentService, holds common methods 2020-07-13 23:05:24 -04:00
post-and-comment.go Create PostAndCommentService, holds common methods 2020-07-13 23:05:24 -04:00
post.go Create PostAndCommentService, holds common methods 2020-07-13 23:05:24 -04:00
private-messages.go Add method to create request with form data 2020-07-11 14:12:03 -04:00
README.md Rename package to go-reddit 2020-07-11 13:49:07 -04:00
search.go Add more methods to moderation service 2020-07-13 19:52:39 -04:00
subreddit_test.go Add method to get moderators of a subreddit 2020-07-11 23:26:14 -04:00
subreddit.go Add ModerationService, tweak structs, delete unneeded ones 2020-07-12 22:53:19 -04:00
things.go Add ModerationService, tweak structs, delete unneeded ones 2020-07-12 22:53:19 -04:00
timestamp_test.go Rename package to go-reddit 2020-07-11 13:49:07 -04:00
timestamp.go Rename package to go-reddit 2020-07-11 13:49:07 -04:00
user_test.go Rename package to go-reddit 2020-07-11 13:49:07 -04:00
user.go Add ModerationService, tweak structs, delete unneeded ones 2020-07-12 22:53:19 -04:00
util.go Rename package to go-reddit 2020-07-11 13:49:07 -04:00

go-reddit

go-reddit is a Go client library for accessing the Reddit API.

Install

To get a specific version from the list of versions:

go get github.com/vartanbeno/go-reddit@vX.Y.Z

Or for the latest version:

go get github.com/vartanbeno/go-reddit