Using OAuth 2.0 requires you to understand the process
of how to request the bearer (access) token. Obtaining a bearer token
requires registering your application with the web service provider,
getting a unique client ID associated with your application and
then requesting the token using the appropriate scope for
the service. Obtaining the initial token will typically involve
interactive confirmation on the part of the user, requiring they
grant permission to your application to access the service.
Your application should not store a bearer token for later
use. They have a relatively short lifespan, typically about an hour, and
are designed to be used with that session. You should specify offline
access as part of the OAuth 2.0 scope if necessary and store the refresh
token provided by the service. The refresh token has a much longer
validity period and can be used to obtain a new bearer token when needed.