hipchat_elixir v0.2.2 Hipchat.OauthClient

Client struct module for OAuth Token API.

Use this client and request to Token API (e.g. Hipchat.V2.Oauth.generate_token/2) to retrieve Add-on token or User token.

Summary

Types

t()
t() :: %Hipchat.OauthClient{client_id: String.t, client_secret: String.t, hackney_opts: list}

Functions

new(client_id, client_secret, hackney_opts \\ [])
new(String.t, String.t, list) :: t

Generate OauthClient struct.

client_id and client_secret must be retrieved and stored on Add-on server per installation, during Add-on Installation Flow.

For hackney_opts, see here for details.