Typetalk v0.2.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.

Link to this section Summary

Link to this section Functions

Link to this function 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")

API Doc

API Doc