ExForce.Client.Tesla (ExForce v0.4.1) View Source

HTTP Client for Salesforce REST API using Tesla.

Adapter

To use a different Tesla adapter, set it via Mix configuration.

config :tesla, ExForce.Client.Tesla, adapter: Tesla.Adapter.Hackney

Link to this section Summary

Functions

Returns a Tesla client for ExForce functions

Sends a request to Salesforce

Link to this section Functions

Link to this function

build_client(context, opts \\ [])

View Source

Returns a Tesla client for ExForce functions

Options

  • :headers: set additional headers; default: [{"user-agent", "ex_force"}]
  • :api_version: use the given api_version; default: "42.0"
  • :adapter: use the given adapter with custom opts; default: nil, which makes Tesla to use the default adapter or the one set in config.
Link to this function

build_oauth_client(instance_url, opts \\ [])

View Source

Returns a Tesla client for ExForce.OAuth functions

Options

  • :headers: set additional headers; default: [{"user-agent", "ex_force"}]
  • :adapter: use the given adapter with custom opts; default: nil, which makes Tesla to use the default adapter or the one set in config.
Link to this function

request(client, request)

View Source

Sends a request to Salesforce