Dnsimple.Oauth.exchange_authorization_for_token

You're seeing just the function exchange_authorization_for_token, go back to Dnsimple.Oauth module for more information.
Link to this function

exchange_authorization_for_token(client, attributes, options \\ [])

Specs

exchange_authorization_for_token(Dnsimple.Client.t(), map(), keyword()) ::
  {:ok | :error, String.t()}

Returns the access token for a given authorization code.

See:

Examples:

client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.Oauth.exchange_authorization_for_token(client, %{
  code: "authorization_code",
  state: "12345678",
  client_id: "1z2y3x",
  client_secret: "xXxXxX",
})