Constructors

Methods

  • Create a new campaign for a newsletter.

    Type Parameters

    • T

    Parameters

    • community_id: string

      The ID of the community.

    • newsletter_id: string

      The ID of the newsletter.

    • data: object

      The data for the new campaign.

    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

    Promise

  • Create a new newsletter for a community.

    Type Parameters

    • T

    Parameters

    • community_id: string

      The ID of the community.

    • data: object

      The data for the new newsletter.

    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

    Promise

  • Delete a specific campaign.

    Type Parameters

    • T

    Parameters

    • community_id: string

      The ID of the community.

    • newsletter_id: string

      The ID of the newsletter.

    • campaign_id: string

      The ID of the campaign.

    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

    Promise

  • Delete a specific newsletter.

    Type Parameters

    • T

    Parameters

    • community_id: string

      The ID of the community.

    • newsletter_id: string

      The ID of the newsletter.

    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

    Promise

  • Delete a specific subscriber from a newsletter (admin only).

    Type Parameters

    • T

    Parameters

    • community_id: string

      The ID of the community.

    • newsletter_id: string

      The ID of the newsletter.

    • subscriber_id: string

      The ID of the subscriber.

    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

    Promise

  • Export subscribers for a specific newsletter. The file is generated asynchronously on the server and the user is emailed a link to download the file.

    Type Parameters

    • T

    Parameters

    • community_id: string

      The ID of the community.

    • newsletter_id: string

      The ID of the newsletter.

    • data: {
          format: "csv" | "xlsx";
      }

      Export options (format: 'csv' or 'xlsx').

      • format: "csv" | "xlsx"
    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

    Promise

  • Finds a community either by its subdomain or cname. The cname must be active.

    Type Parameters

    • T

    Parameters

    • domain: string

      The subcname of the community.

    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

    promise

  • Import game installs from a game title installations to a newsletter

    Type Parameters

    • T

    Parameters

    • community_id: string

      The ID of the community.

    • newsletter_id: string

      The ID of the newsletter.

    • data: {
          format: "csv" | "xlsx";
      }

      Export options (format: 'csv' or 'xlsx').

      • format: "csv" | "xlsx"
    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

    Promise

  • Import subscribers from a CSV or XLS file into a newsletter.

    Type Parameters

    • T

    Parameters

    • community_id: string

      The ID of the community.

    • newsletter_id: string

      The ID of the newsletter.

    • file: File

      The CSV or XLS file.

    • Optional data: object
    • Optional params: Record<string, any>

      Additional parameters.

    Returns AxiosPromise<default<T>>

    Promise

  • List all emails sent in a campaign.

    Type Parameters

    • T

    Parameters

    • community_id: string

      The ID of the community.

    • newsletter_id: string

      The ID of the newsletter.

    • campaign_id: string

      The ID of the campaign.

    • Optional params: Record<string, any>

      Query parameters.

    Returns AxiosPromise<default<T>>

    Promise

  • List all campaigns for a newsletter.

    Type Parameters

    • T

    Parameters

    • community_id: string

      The ID of the community.

    • newsletter_id: string

      The ID of the newsletter.

    • Optional params: Record<string, any>

      Query parameters.

    Returns AxiosPromise<default<T>>

    Promise

  • List all subscribers of a newsletter (admin only).

    Type Parameters

    • T

    Parameters

    • community_id: string

      The ID of the community.

    • newsletter_id: string

      The ID of the newsletter.

    • Optional params: Record<string, any>

      Query parameters.

    Returns AxiosPromise<default<T>>

    Promise

  • List all newsletters for a community.

    Type Parameters

    • T

    Parameters

    • Optional params: Record<string, any>

      Query parameters.

    Returns AxiosPromise<default<T>>

    Promise

  • Get campaign-level stats for a newsletter.

    Type Parameters

    • T

    Parameters

    • community_id: string

      The ID of the community.

    • newsletter_id: string

      The ID of the newsletter.

    • Optional params: Record<string, any>

      Optional query params (start_date, end_date, etc).

    Returns AxiosPromise<default<T>>

    Promise with campaign stats

  • Get newsletter overall reports (subscriber changes, unsubscribes, etc.).

    Type Parameters

    • T

    Parameters

    • community_id: string

      The ID of the community.

    • newsletter_id: string

      The ID of the newsletter.

    • Optional params: Record<string, any>

      Optional query params (start_date, end_date, etc).

    Returns AxiosPromise<default<T>>

    Promise with aggregated data

  • Retrieves daily subscriber trend data for the specified newsletter.

    Type Parameters

    • T

    Parameters

    • community_id: string

      The UUID of the community

    • newsletter_id: string

      The UUID of the newsletter

    • Optional params: Record<string, any>

      Optional date-range filter (start_date, end_date, etc.)

    Returns AxiosPromise<default<T>>

  • Register a new subscriber to a newsletter.

    Type Parameters

    • T

    Parameters

    • community_id: string

      The ID of the community.

    • newsletter_id: string

      The ID of the newsletter.

    • data: object

      The subscriber data.

    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

    Promise

  • Removes a user from a community.

    Type Parameters

    • T

    Parameters

    • community_id: string

      The id of community.

    • user_id: string

      The id of the user.

    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

    promise

  • Schedule a campaign to be sent later.

    Type Parameters

    • T

    Parameters

    • community_id: string

      The ID of the community.

    • newsletter_id: string

      The ID of the newsletter.

    • campaign_id: string

      The ID of the campaign.

    • data: object

      The scheduling data (e.g., scheduled_at).

    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

    Promise

  • Send a campaign immediately.

    Type Parameters

    • T

    Parameters

    • community_id: string

      The ID of the community.

    • newsletter_id: string

      The ID of the newsletter.

    • campaign_id: string

      The ID of the campaign.

    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

    Promise

  • Test an email campaign by sending an email to the current user.

    Type Parameters

    • T

    Parameters

    • community_id: string

      The ID of the community.

    • newsletter_id: string

      The ID of the newsletter.

    • campaign_id: string

      The ID of the campaign.

    • data: object

      The scheduling data (e.g., scheduled_at).

    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

    Promise

  • Update a specific campaign.

    Type Parameters

    • T

    Parameters

    • community_id: string

      The ID of the community.

    • newsletter_id: string

      The ID of the newsletter.

    • campaign_id: string

      The ID of the campaign.

    • data: object

      The data to update.

    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

    Promise

  • Update a specific newsletter.

    Type Parameters

    • T

    Parameters

    • community_id: string

      The ID of the community.

    • newsletter_id: string

      The ID of the newsletter.

    • data: object

      The data to update.

    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

    Promise

  • Update a specific subscriber of a newsletter (admin only).

    Type Parameters

    • T

    Parameters

    • community_id: string

      The ID of the community.

    • newsletter_id: string

      The ID of the newsletter.

    • subscriber_id: string

      The ID of the subscriber.

    • data: object

      The data to update.

    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

    Promise

  • Updates the users information associated with the community.

    Type Parameters

    • T

    Parameters

    • community_id: string

      The id of the community.

    • user_id: string

      The id of the user.

    • Optional data: object
    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

    promise

  • Get a specific campaign.

    Type Parameters

    • T

    Parameters

    • community_id: string

      The ID of the community.

    • newsletter_id: string

      The ID of the newsletter.

    • campaign_id: string

      The ID of the campaign.

    • Optional params: Record<string, any>

      Query parameters.

    Returns AxiosPromise<default<T>>

    Promise

  • Get a specific newsletter.

    Type Parameters

    • T

    Parameters

    • community_id: string

      The ID of the community.

    • newsletter_id: string

      The ID of the newsletter.

    • Optional params: Record<string, any>

      Query parameters.

    Returns AxiosPromise<default<T>>

    Promise

  • Get a specific subscriber of a newsletter (admin only).

    Type Parameters

    • T

    Parameters

    • community_id: string

      The ID of the community.

    • newsletter_id: string

      The ID of the newsletter.

    • subscriber_id: string

      The ID of the subscriber.

    • Optional params: Record<string, any>

      Query parameters.

    Returns AxiosPromise<default<T>>

    Promise

Generated using TypeDoc