The Authenticator class provides an interface to interact with the Reddit API
using OAuth2. An Authenticator is responsible for keeping track of OAuth2
credentials, refreshing and revoking access tokens, and issuing HTTPS
requests using OAuth2 credentials.
The ReadOnlyAuthenticator class allows for the creation of an Authenticator
instance which is not associated with any reddit account. As the name
implies, the ReadOnlyAuthenticator can only be used to make read-only
requests to the Reddit API that do not require access to a valid Reddit user
account. Refer to Reddit's
documentation for
descriptions of valid app types.
The Reddit class provides access to Reddit's API and stores session state
for the current Reddit instance. This class contains objects that can be
used to interact with Reddit posts, comments, subreddits, multireddits, and
users.
The ScriptAuthenticator class allows for the creation of an Authenticator
instance which is associated with a valid Reddit user account. This is to be
used with the 'Script' app type credentials. Refer to Reddit's
documentation
for descriptions of valid app types.
Contains Subreddit traffic information for a specific time slice.
uniques is the number of unique visitors during the period, pageviews is
the total number of page views during the period, and subscriptions is the
total number of new subscriptions during the period. subscriptions is only
non-zero for time slices the length of one day. All time slices are
in UTC time and can be found in periodStart, with valid slices being
either one hour, one day, or one month.
The WebAuthenticator class allows for the creation of an Authenticator
that exposes functionality which allows for the user to authenticate through
a browser. The url method is used to generate the URL that the user uses
to authenticate on www.reddit.com, and the authorize method retrieves the
access token given the returned code. This is to be
used with the 'Web' app type credentials. Refer to Reddit's
documentation
for descriptions of valid app types.
Thrown due to a fatal error encountered inside DRAW. If you're not adding
functionality to DRAW you should never see this. Otherwise, please file a
bug at github.com/draw-dev/DRAW/issues.
Thrown due to an unexpected response from Reddit. If you're not adding
functionality to DRAW you should never see this. Otherwise, please file a
bug at github.com/draw-dev/DRAW/issues.