Add CollectionService

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
Vartan Benohanian
2020-08-06 22:37:08 -04:00
parent b23b1b69f8
commit 62b5b21e1c
3 changed files with 196 additions and 0 deletions
+2
View File
@@ -92,6 +92,7 @@ type Client struct {
redditID string
Account *AccountService
Collection *CollectionService
Comment *CommentService
Flair *FlairService
Listings *ListingsService
@@ -139,6 +140,7 @@ func newClient(httpClient *http.Client) *Client {
c := &Client{client: httpClient, BaseURL: baseURL, TokenURL: tokenURL}
c.Account = &AccountService{client: c}
c.Collection = &CollectionService{client: c}
c.Flair = &FlairService{client: c}
c.Listings = &ListingsService{client: c}
c.Moderation = &ModerationService{client: c}