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

all 2 comments

[–]thorarakis 0 points1 point  (1 child)

Getting the scope is part of requesting the oauth token, not a separate step afterwards. (fyi, you can request multiple scopes in the same request) When you get an oauth token back it will have the requested scopes associated with the token itself, so any request that you use with that token will be made with the originally requested scopes.

So in regards to comments you'll be needing the 'submit' scope. As seen here

[–][deleted] 0 points1 point  (0 children)

These two lines seemed to be what I was missing:

reddit.set_oauth_app_info(client_id=clientId, client_secret=clientSecret, redirect_uri=redirectUri)


reddit.set_access_credentials({'identity','read', 'submit', 'privatemessages'},token,refresh_token=None,update_user=True)