Typetalk v0.1.0 Typetalk.AccessToken
A AccessToken struct and functions.
Summary
Functions
Refresh the access token
Types
Functions
refresh(access_token, client_id, client_secret)
refresh(Typetalk.AccessToken, String.t, String.t) :: {:ok, Typetalk.AccessToken} | {:error, HTTPoison.Response.t}
Refresh the access token.
Example
{:ok, token} = Typetalk.ClientCredential.access_token(client_id, client_secret)
{:ok, refreshed_token} = Typetalk.AccessToken.refresh(access_token, client_id, client_secret)