auth0_ex v0.1.4 Auth0Ex.Management.Connection

A module representing connection resource

Summary

Functions

Gets all the connections

Creates a new connection

Delete a connection

Delete a specified connection user by its email

Get a connection

Update a connection

Functions

all(params \\ %{})

Gets all the connections

iex> Auth0Ex.Management.Connection.all()
iex> Auth0Ex.Management.Connection.all(%{name: "some_name"})
create(body)

Creates a new connection

iex> Auth0Ex.Management.Connection.create(%{name: "some_name", strategy: "email"})
delete(id)

Delete a connection

iex> Auth0Ex.Management.Connection.delete("some_conn_id")
delete_conn_user(id, email)

Delete a specified connection user by its email

iex> Auth0Ex.Management.Connection.delete_conn_user("some_conn_id", "samar@example.com")
get(id)

Get a connection

iex> Auth0Ex.Management.Connection.get("some_conn_id")
iex> Auth0Ex.Management.Connection.get("some_conn_id", [fields: "id,name"])
get(id, params)
update(id, body)

Update a connection

iex> Auth0Ex.Management.Connection.update("some_conn_id", %{name: "new name"})