mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-23 20:27:42 +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) {
|
||||
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(opts, []RequestOption{
|
||||
WithMethod("GET"),
|
||||
|
|
Loading…
Reference in a new issue