Plaid.Client.post

You're seeing just the callback post, go back to Plaid.Client module for more information.
Link to this callback

post(url, payload, headers)

View Source

Specs

post(
  url :: String.t(),
  payload :: String.t(),
  headers :: [{String.t(), String.t()}]
) :: {:ok, %{body: String.t(), status_code: integer()}} | {:error, any()}

Callback to POST the data to the Plaid API.

Will be called with the full URL, payload, and headers. Simply take these values execute the HTTP request.

headers passed in will be a list of two item tuples where the first item is the header key and the second is the value. e.g. [{"content-type", "application/json"}]

Examples

iex> post("https://production.plaid.com/categories/get", ~s<{"thing": "stuff"}>, [{"content-type", "application/json"}])
{:ok, %{body: ~s<{"foo": "bar"}>, status_code: 200}}