Typetalk v0.1.0 Typetalk.ClientCredential
Function to get an access token using a client credential.
You use this module when you are the only user of Typetalk API.
Summary
Functions
Returns an access token and related information
Functions
access_token(client_id, client_secret, scope \\ "my,topic.read,topi.post")
access_token(String.t, String.t, String.t) :: {:ok, Typetalk.AccessToken.t} | {:error, HTTPoison.Response.t}
Returns an access token and related information.
Example
{:ok, auth} = Typetalk.ClientCredential.access_token("your-client-id",
"your-client-secret",
"my,topic.read,topic.post")