WIP: Account service

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
Vartan Benohanian
2020-06-23 21:47:33 -04:00
parent 3bb31e2b43
commit bdd39f5d21
7 changed files with 305 additions and 0 deletions
+2
View File
@@ -91,6 +91,7 @@ type Client struct {
// This is the client's user ID in Reddit's database.
redditID string
Account AccountService
Comment CommentService
Flair FlairService
Listings ListingsService
@@ -120,6 +121,7 @@ func newClient(httpClient *http.Client) *Client {
c := &Client{client: httpClient, BaseURL: baseURL, TokenURL: tokenURL}
c.Account = &AccountServiceOp{client: c}
c.Comment = &CommentServiceOp{client: c}
c.Flair = &FlairServiceOp{client: c}
c.Listings = &ListingsServiceOp{client: c}