-
-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to load refresh_token from praw.ini #408
Conversation
Looks great. Could you please also update the config file doc to include a description of the parameter? Thanks for the contribution! |
Add parameter description for oauth_refresh_token.
This reverts commit 900b9cd.
This reverts commit 2baef9f.
Add parameter description for oauth_refresh_token.
This reverts commit 9362059.
Add parameter description for oauth_refresh_token
Add parameter description for oauth_refresh_token and other OCD fixes.
Add parameter description for oauth_refresh_token and other OCD fixes.
Lol oops. Sorry for all of the reverts/commits. I'm new to git. I think it's ready now. |
Merged as 7ffcb63. Thanks for the contribution. Tip for your next pull request:
Congrats on your first PRAW contribution, and thanks again! |
I have a bot that does not run 24/7, only uses 1 reddit account, and has no additional configuration. With this change, I can store refresh_token along with client_id and client_secret in praw.ini and simply refresh_access_information() on bot startup to retrieve a new access_key.