mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-13 23:47:44 +00:00
switch to oauth in subredddit about
This commit is contained in:
parent
038db61798
commit
e23d47f815
1 changed files with 1 additions and 1 deletions
|
@ -259,7 +259,7 @@ func (rc *Client) SubredditNew(ctx context.Context, subreddit string, opts ...Re
|
||||||
}
|
}
|
||||||
|
|
||||||
func (rc *Client) SubredditAbout(ctx context.Context, subreddit string, opts ...RequestOption) (*SubredditResponse, error) {
|
func (rc *Client) SubredditAbout(ctx context.Context, subreddit string, opts ...RequestOption) (*SubredditResponse, error) {
|
||||||
url := fmt.Sprintf("https://www.reddit.com/r/%s/about.json", subreddit)
|
url := fmt.Sprintf("https://oauth.reddit.com/r/%s/about.json", subreddit)
|
||||||
opts = append(rc.defaultOpts, opts...)
|
opts = append(rc.defaultOpts, opts...)
|
||||||
opts = append(opts, []RequestOption{
|
opts = append(opts, []RequestOption{
|
||||||
WithMethod("GET"),
|
WithMethod("GET"),
|
||||||
|
|
Loading…
Reference in a new issue