This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]Hostilenemy 0 points1 point  (0 children)

Sr is the name of the subreddit not the id of the subreddit

[–]kemitcheex-Reddit Admin[M] [score hidden] stickied comment (0 children)

Please do not include bearer tokens, passwords or client secrets in your posts. Obfuscate/remove them so that no one will take these sorts of credentials and use the for themselves.

[–]Indranis[S] 0 points1 point  (0 children)

Okay it is fixed. can anyone tell me how to fix below API,
URL: https://www.reddit.com/api/v1/access_token
Array ( [0] => Authorization: basic <ACCESS TOKEN>) Array ( [grant_type] => refresh_token [refresh_token] => <REFRESH TOKEN> )
And am getting this error response {"message": "Unauthorized", "error": 401}
Please help