Lti_1p3.Tool (Lti 1p3 v0.6.0)

Link to this section Summary

Functions

Creates a new deployment.

Creates a new registration.

Gets the registration with the given issuer and client_id.

Gets the registration and deployment associated with the given issuer, client_id and deployment_id.

Link to this section Functions

Link to this function

create_deployment(deployment)

Creates a new deployment.

examples

Examples

iex> create_deployment(deployment)
{:ok, %Lti_1p3.Tool.Deployment{}}
iex> create_deployment(deployment)
{:error, %Lti_1p3.DataProviderError{}}
Link to this function

create_registration(registration)

Creates a new registration.

examples

Examples

iex> create_registration(registration)
{:ok, %Lti_1p3.Tool.Registration{}}
iex> create_registration(registration)
{:error, %Lti_1p3.DataProviderError{}}
Link to this function

get_registration_by_issuer_client_id(issuer, client_id)

Gets the registration with the given issuer and client_id.

examples

Examples

iex> get_registration_by_issuer_client_id(issuer, client_id)
%Registration{}
iex> get_registration_by_issuer_client_id(issuer, client_id)
nil
Link to this function

get_registration_deployment(issuer, client_id, deployment_id)

Gets the registration and deployment associated with the given issuer, client_id and deployment_id.

examples

Examples

iex> get_registration_deployment(issuer, client_id, deployment_id)
{%Registration{}, %Deployment{}}
iex> get_registration_deployment(issuer, client_id, deployment_id)
{nil, nil}