Auth0Client.Api (auth0_client v1.1.0)

Copy Markdown View Source

The main API module supposed to be used by individual authentication and management API modules

Example Usage would look something like below:

use Auth0Client.Api
use Auth0Client.Api, for: :mgmt

Summary

Functions

Performs a request and parses the response.

Functions

request(tag, method, url, req_body, extra_headers)

@spec request(
  atom(),
  atom(),
  String.t(),
  iodata() | {:form_multipart, list()},
  list()
) ::
  Auth0Client.Parser.response()

Performs a request and parses the response.

Lives here rather than in the macro so there is one copy of it, and one place for the 401 retry below, instead of a copy compiled into every API module.