Nuntly.Organizations (nuntly v0.1.0)

Copy Markdown View Source

Manage your organization profile, team members, and account-level settings.

Summary

Functions

list_organizations(client, params \\ %{}, opts \\ [])

List Organizations

Returns all organizations the authenticated user belongs to.

Arguments

  • client — A Nuntly.Client returned by Nuntly.new/1.
  • params — Optional map of query parameters:
    • "cursor" — Optional query parameter, string. Pagination cursor from a previous response
    • "limit" — Optional query parameter, integer. Maximum number of items to return Defaults to 30.
  • opts — Optional keyword list passed to Req for this request.

Example

client = Nuntly.new(api_key: "ntly_...")

Nuntly.Organizations.list_organizations(
  client,
  %{
    "cursor" => "cursor",
    "limit" => 30
  }
)

retrieve_organization(client, id, opts \\ [])

Retrieve Organization

Returns the organization's profile, plan, region, and account status.

Arguments

  • client — A Nuntly.Client returned by Nuntly.new/1.
  • id — Required path parameter, string. The id of the organization
  • opts — Optional keyword list passed to Req for this request.

Example

client = Nuntly.new(api_key: "ntly_...")

Nuntly.Organizations.retrieve_organization(client, "id")

retrieve_organization_usage(client, id, opts \\ [])

Retrieve Organization Usage

Returns current period usage metrics (daily and monthly) for sending and receiving, against your plan limits.

Arguments

  • client — A Nuntly.Client returned by Nuntly.new/1.
  • id — Required path parameter, string.
  • opts — Optional keyword list passed to Req for this request.

Example

client = Nuntly.new(api_key: "ntly_...")

Nuntly.Organizations.retrieve_organization_usage(client, "id")