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
@spec create(Mercadopago.Client.t(), map(), keyword()) :: Mercadopago.HTTP.response()
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.
@spec refresh(Mercadopago.Client.t(), map(), keyword()) :: Mercadopago.HTTP.response()
Refreshes an expired access token (grant_type: refresh_token).