View Source Auth0Ex.Management.Connection (auth0_ex v0.9.0)
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
Gets all the connections
iex> Auth0Ex.Management.Connection.all()
iex> Auth0Ex.Management.Connection.all(%{name: "some_name"})
Creates a new connection
iex> Auth0Ex.Management.Connection.create(%{name: "some_name", strategy: "email"})
Delete a connection
iex> Auth0Ex.Management.Connection.delete("some_conn_id")
Delete a specified connection user by its email
iex> Auth0Ex.Management.Connection.delete_conn_user("some_conn_id", "samar@example.com")
Get a connection
iex> Auth0Ex.Management.Connection.get("some_conn_id")
iex> Auth0Ex.Management.Connection.get("some_conn_id", [fields: "id,name"])
Update a connection
iex> Auth0Ex.Management.Connection.update("some_conn_id", %{name: "new name"})