auth0_ex v0.3.2 Auth0Ex.Management.Connection View Source
A module representing connection resource
Link to this section 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
Link to this section Functions
Link to this function
all(params \\ %{}) View Source
Gets all the connections
iex> Auth0Ex.Management.Connection.all()
iex> Auth0Ex.Management.Connection.all(%{name: "some_name"})
Link to this function
create(body) View Source
Creates a new connection
iex> Auth0Ex.Management.Connection.create(%{name: "some_name", strategy: "email"})
Link to this function
delete(id) View Source
Delete a connection
iex> Auth0Ex.Management.Connection.delete("some_conn_id")
Link to this function
delete_conn_user(id, email) View Source
Delete a specified connection user by its email
iex> Auth0Ex.Management.Connection.delete_conn_user("some_conn_id", "samar@example.com")
Link to this function
get(id) View Source
Get a connection
iex> Auth0Ex.Management.Connection.get("some_conn_id")
iex> Auth0Ex.Management.Connection.get("some_conn_id", [fields: "id,name"])
Link to this function
get(id, params) View Source
Link to this function
update(id, body) View Source
Update a connection
iex> Auth0Ex.Management.Connection.update("some_conn_id", %{name: "new name"})