Plaid.Item.exchange_public_token
You're seeing just the function
exchange_public_token
, go back to Plaid.Item module for more information.
Specs
exchange_public_token(String.t(), Plaid.config()) :: {:ok, Plaid.Item.ExchangePublicTokenResponse.t()} | {:error, Plaid.Error.t()}
Exchange a public token for an access token.
Does a POST /item/public_token/exchange
call which exchanges a public token
for an access token.
Params
public_token
- Your public_token, obtained from the LinkonSuccess
callback orPOST /sandbox/item/public_token/create.
Examples
Item.exchange_public_token(
"public-prod-123xxx",
client_id: "123",
secret: "abc"
)
{:ok, %Item.ExchangePublicTokenResponse{}}