View Source Auth0.Common.Management.Http (Auth0Api v2.2.0)

Documentation for Auth0 Management HTTP.

This module manages http request for Auth0 Management API.

Summary

Functions

DELETE Auth0 management rest api.

DELETE Auth0 management rest api. (with body)

GET Auth0 management rest api.

MULTIPART POST Auth0 management rest api.

PATCH Auth0 management rest api.

POST Auth0 management rest api.

PUT Auth0 management rest api.

Types

@type body() :: map() | list()
@type config() :: Auth0.Config.t()
@type endpoint() :: String.t()
@type headers() :: map()
@type method() :: :get | :post | :put | :patch | :delete | :options | :head
@type multipart() :: {:multipart, list()}
@type raw_response() ::
  {:ok,
   HTTPoison.Response.t()
   | HTTPoison.AsyncResponse.t()
   | HTTPoison.MaybeRedirect.t()}
  | {:error, HTTPoison.Error.t()}
@type response() ::
  {:ok, integer(), String.t()} | {:error, integer(), term()} | {:error, term()}

Functions

Link to this function

delete(endpoint, config)

View Source
@spec delete(endpoint(), config()) :: response()

DELETE Auth0 management rest api.

Link to this function

delete(endpoint, body, config)

View Source
@spec delete(endpoint(), body(), config()) :: response()

DELETE Auth0 management rest api. (with body)

@spec get(endpoint(), config()) :: response()

GET Auth0 management rest api.

Link to this function

multipart_post(endpoint, multipart, config)

View Source
@spec multipart_post(endpoint(), multipart(), config()) :: response()

MULTIPART POST Auth0 management rest api.

Link to this function

patch(endpoint, body, config)

View Source
@spec patch(endpoint(), body(), config()) :: response()

PATCH Auth0 management rest api.

Link to this function

post(endpoint, body, config)

View Source
@spec post(endpoint(), body(), config()) :: response()

POST Auth0 management rest api.

Link to this function

put(endpoint, body, config)

View Source
@spec put(endpoint(), body(), config()) :: response()

PUT Auth0 management rest api.

Link to this function

raw_request(method, endpoint, body \\ %{}, headers \\ nil, config \\ %Config{})

View Source
@spec raw_request(method(), endpoint(), body(), headers(), config()) :: raw_response()

Request Auth0 management rest api simply.