Plaid.Sandbox.create_public_token

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

create_public_token(institution_id, initial_products, options \\ %{}, config)

View Source

Specs

create_public_token(String.t(), [String.t()], options, Plaid.config()) ::
  {:ok, Plaid.Sandbox.CreatePublicTokenResponse.t()} | {:error, Plaid.Error.t()}
when options: %{
       optional(:webhook) => String.t(),
       optional(:override_username) => String.t(),
       optional(:override_password) => String.t(),
       optional(:transactions) => Plaid.Sandbox.TransactionsOptions.t()
     }

Create a valid public_token with arbitrary details.

Does a POST /sandbox/public_token/create call to create a new sandbox public token.

Params:

  • institution_id - The ID of the institution the Item will be associated with.
  • initial_products - The products to initially pull for the Item.

Options:

  • :webhook - Specify a webhook to associate with the new Item.
  • :override_username - Test username to use for the creation of the Sandbox Item.
  • :override_password - Test password to use for the creation of the Sandbox Item.
  • :transactions - Options for transactions on the new Item.

Examples

Sandbox.create_public_token("ins_1", ["auth"], client_id: "123", secret: "abc")
{:ok, %Sandbox.CreatePublicTokenResponse{}}