Mercadopago.OAuth (mercadopago_sdk_elixir v0.1.0)

Copy Markdown View Source

OAuth 2.0 authorization code flow for marketplace/platform integrations.

Summary

Functions

Exchanges an authorization code for an access token (grant_type: authorization_code).

Builds the authorization URL to redirect the seller to. Does not make an HTTP call.

Refreshes an expired access token (grant_type: refresh_token).

Functions

create(client, oauth_data, opts \\ [])

Exchanges an authorization code for an access token (grant_type: authorization_code).

get_authorization_url(app_id, redirect_uri, random_id)

@spec get_authorization_url(String.t(), String.t(), String.t()) :: String.t()

Builds the authorization URL to redirect the seller to. Does not make an HTTP call.

refresh(client, oauth_data, opts \\ [])

Refreshes an expired access token (grant_type: refresh_token).