Plaid.Item.exchange_public_token

You're seeing just the function exchange_public_token, go back to Plaid.Item module for more information.
Link to this function

exchange_public_token(public_token, config)

View Source

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 Link onSuccess callback or POST /sandbox/item/public_token/create.

Examples

Item.exchange_public_token(
  "public-prod-123xxx",
  client_id: "123",
  secret: "abc"
)
{:ok, %Item.ExchangePublicTokenResponse{}}