DocuSign v0.2.9 DocuSign.OAuth View Source
This module implements an oauth2 strategy for DocuSign.
Examples
client = DocuSign.OAuth2Strategy.get_token! {:ok, user_info } = OAuth2.Client.get(client, "/oauth/userinfo")
Link to this section Summary
Functions
Callback implementation for OAuth2.Strategy.authorize_url/2
.
Create new API client
Callback implementation for OAuth2.Strategy.get_token/3
.
Retrieve access token and return a client
Retrieve a new time to auto refresh token.
Refresh token
Check expiration of token return true if token is expired
Link to this section Types
Specs
Specs
Specs
Link to this section Functions
Specs
Callback implementation for OAuth2.Strategy.authorize_url/2
.
Specs
client(Keyword.t()) :: OAuth2.Client.t()
Create new API client
Specs
get_token(OAuth2.Client.t(), Keyword.t(), Keyword.t()) :: binary() | no_return()
Callback implementation for OAuth2.Strategy.get_token/3
.
Specs
get_token!(OAuth2.Client.t(), params(), headers(), Keyword.t()) :: OAuth2.Client.t() | OAuth2.Error.t()
Retrieve access token and return a client
Specs
interval_refresh_token(OAuth2.Client.t()) :: integer()
Retrieve a new time to auto refresh token.
Specs
refresh_token!(OAuth2.Client.t(), boolean()) :: OAuth2.Client.t()
Refresh token
Specs
token_expired?(OAuth2.AccessToken.t() | nil | OAuth2.Client.t()) :: boolean()
Check expiration of token return true if token is expired