Fetching contributors…
Cannot retrieve contributors at this time
14 lines (10 sloc) 488 Bytes

Obtaining a Refresh Token

The following program can be used to obtain a refresh token with the desired scopes. Such a token can be used in conjunction with the refresh_token keyword argument using in initializing an instance of :class:`~praw.Reddit`. A list of all possible scopes can be found in the reddit API docs

.. literalinclude:: ../examples/
   :language: python