Audiences — named contact lists. Resend-compatible, so a migrating app's
audiences.* calls port straight over. (MillionSend's dynamic-filter
MillionSend.Segments are a separate, richer resource.)
Summary
Functions
POST /audiences
GET /audiences/:id
GET /audiences — accepts limit:, after:, before:.
DELETE /audiences/:id
Functions
@spec create(MillionSend.Client.t(), map()) :: {:ok, MillionSend.Audiences.Audience.t()} | {:error, MillionSend.Error.t()}
POST /audiences
@spec get(MillionSend.Client.t(), String.t()) :: {:ok, MillionSend.Audiences.Audience.t()} | {:error, MillionSend.Error.t()}
GET /audiences/:id
GET /audiences — accepts limit:, after:, before:.
@spec list(MillionSend.Client.t() | keyword()) :: {:ok, MillionSend.List.t()} | {:error, MillionSend.Error.t()}
@spec list( MillionSend.Client.t(), keyword() ) :: {:ok, MillionSend.List.t()} | {:error, MillionSend.Error.t()}
@spec remove(MillionSend.Client.t(), String.t()) :: {:ok, MillionSend.Audiences.Audience.t()} | {:error, MillionSend.Error.t()}
DELETE /audiences/:id