Lettermint.Projects (Lettermint v2.1.0)

Copy Markdown View Source

Projects. Needs :team_token. Report forwarding is in Lettermint.Projects.ReportForwarding, routes in Lettermint.Routes.

Every function takes the options timeout: (milliseconds) last.

Summary

Functions

Creates a project. The response holds its sending token once (api_token).

Streams every project, following next_cursor. Raises the error of a failed page request.

Rotates the project's legacy sending token. The API marks this endpoint as legacy.

Types

result(value)

@type result(value) :: {:ok, value} | {:error, Lettermint.Error.t()}

Functions

create(client, body, options \\ [])

Creates a project. The response holds its sending token once (api_token).

delete(client, project_id, options \\ [])

Deletes a project.

iterate(client, query \\ %{}, options \\ [])

Streams every project, following next_cursor. Raises the error of a failed page request.

list(client, query \\ %{}, options \\ [])

Lists projects, one page at a time. query: Lettermint.Types.ListProjectsQuery.t/0.

retrieve(client, project_id, query \\ %{}, options \\ [])

Retrieves a project.

rotate_token(client, project_id, options \\ [])

This function is deprecated. The API marks this endpoint as legacy..

Rotates the project's legacy sending token. The API marks this endpoint as legacy.

update(client, project_id, body, options \\ [])

Updates a project.