/** * Constant Contact API v3 * Swagger build version 3.0.2475 * * The version of the OpenAPI document: 1.0.116 * Contact: webservices@constantcontact.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from '../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import { RequestArgs, BaseAPI } from '../base'; import { CreateEmailCampaign200Response } from '../models'; import { CreateEmailCampaignRequest } from '../models'; import { CreateResendEmailCampaign201Response } from '../models'; import { CreateResendEmailCampaignRequest } from '../models'; import { GetAllEmailCampaigns200Response } from '../models'; import { GetEmailCampaignActivity200Response } from '../models'; import { GetEmailCampaignXrefs200Response } from '../models'; import { GetResendEmailCampaign200ResponseInner } from '../models'; import { PatchEmailCampaignNameRequest } from '../models'; /** * EmailCampaignsApi - axios parameter creator * @export */ export declare const EmailCampaignsApiAxiosParamCreator: (configuration?: Configuration) => { /** * Use this method to create a new email campaign. This method also creates new `primary_email` and `permalink` email campaign activities and associates them with the new email campaign. The request body must contain the `name` property and the `email_campaign_activities` array. The `name` must be unique. The `email_campaign_activities` array contains the main content of your email campaign and must include `format_type`, `from_name`, `from_email`, `reply_to_email`, `subject`, and `html_content` properties. The `from_email` address you use must use a verified email address for your account. NOTE: If you create an email campaign using a legacy (V7) format, Constant Contact automatically converts it to the newer custom code format. * @summary POST (Create) a New Email Campaign * @param {CreateEmailCampaignRequest} createEmailCampaignRequest A JSON request body that contains the email content. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createEmailCampaign: (createEmailCampaignRequest: CreateEmailCampaignRequest, options?: RawAxiosRequestConfig) => Promise; /** * Use this POST method to resend a primary campaign activity to contacts that did not open a campaign activity that has a current `status` of `Draft`, `Scheduled`, or `Done`. You can only create one resend activity per email campaign. After an email campaign activity is sent to contacts, Constant Contact waits the specified number of `delay_days` or `delay_minutes` (properties are mutually exclusive) before resending to non-openers. If you set both `delay_days` or `delay_minutes`, `delay_minutes` is ignored in the request. You can resend to non-openers a minimum of twelve hours (720 minutes) and a maximum of up to 10 days (or 10 x 1440 minutes) after the initial send date. * @summary POST a Resend to Non-openers Campaign Activity * @param {string} campaignActivityId The unique ID for the primary email campaign activity. * @param {CreateResendEmailCampaignRequest} createResendEmailCampaignRequest A JSON request body that specifies when to resend the campaign activity to non-openers. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createResendEmailCampaign: (campaignActivityId: string, createResendEmailCampaignRequest: CreateResendEmailCampaignRequest, options?: RawAxiosRequestConfig) => Promise; /** * Use this method to delete an email campaign and the email campaign activities associated with the email campaign. You cannot delete an email campaign when it has a `Scheduled` status. Constant Contact users can restore deleted email campaigns using the UI. * @summary DELETE an Email Campaign * @param {string} campaignId The unique ID for the email campaign you are deleting. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteEmailCampaign: (campaignId: string, options?: RawAxiosRequestConfig) => Promise; /** * Use this `DELETE` method to delete (unschedule) a resend to non openers activity. * @summary DELETE a Resend to Non Openers Activity * @param {string} campaignActivityId The unique ID for the primary email campaign activity. * @param {string} resendRequestId The unique ID associated with the resend for the email campaign activity (for example: `389093`). If the email campaign activity is currently in draft status, specify `DRAFT` as the ID. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteResendEmailCampaign: (campaignActivityId: string, resendRequestId: string, options?: RawAxiosRequestConfig) => Promise; /** * Use this method to list and get details about your email campaigns. By default, this method returns all email campaigns for the user account including deleted email campaigns. To get email campaigns within a date-range, use the `after_date` and `before_date` query parameters. This endpoint does not return campaign activity details for each email campaign in the collection. To get email campaign activity details for a single email campaign, use the GET `/emails/{campaign_id}` endpoint.\"

This method does not currently support filtering results using the email campaign creation date.

* @summary GET a Collection of Email Campaigns * @param {number} [limit] Specifies the number of campaigns to display on each page of output that is returned (from return 1 - 500). The default returns 50 campaigns per page. * @param {string} [beforeDate] Use to return email campaigns with `updated_at` timestamps that are before a specific date and time (in ISO-8601 format). Use with the `after_date` query parameter to get email campaigns sent within a specific date range. * @param {string} [afterDate] Use to return email campaigns with last `updated_at` timestamps that are after a specific date and time (in ISO-8601 format). Use with the `before_date` query parameter to get email campaigns sent within a specific date range. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAllEmailCampaigns: (limit?: number, beforeDate?: string, afterDate?: string, options?: RawAxiosRequestConfig) => Promise; /** * Use this method to return a specific email campaign activity. Each email campaign activity contains the email content, metadata, and styling information of an email. Email campaign activities can also contain either contact lists or segments. Constant Contact uses this information to determine who to send the email campaign activity to when you schedule it. You cannot get email campaign activities that have a `REMOVED` status. * @summary GET a Single Email Campaign Activity * @param {string} campaignActivityId The unique ID for an email campaign activity. * @param {GetEmailCampaignActivityIncludeEnum} [include] Use the `include` query parameter to enter a comma separated list of additional email campaign activity properties for the V3 API to return. Valid values are `physical_address_in_footer`, `permalink_url`, `html_content`, and `document_properties`. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmailCampaignActivity: (campaignActivityId: string, include?: GetEmailCampaignActivityIncludeEnum, options?: RawAxiosRequestConfig) => Promise; /** * Use this method to get details about a single email campaign and campaign related activities. Details include the email campaign name, current status, create date, last update date, and a list of campaign activities; including the `campaign_activity_id` and `role`. * @summary GET Details About a Single Email Campaign * @param {string} campaignId The ID (UUID format) that uniquely identifies this email campaign. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmailCampaignById: (campaignId: string, options?: RawAxiosRequestConfig) => Promise; /** *

Use this endpoint to migrate your locally stored V2 email campaign data to the new V3 format. Developers are expected to use this endpoint sparingly. This endpoint is NOT intended for regular or repeated use. Constant Contact will eventually deprecate and remove this endpoint.

Use this method to migrate your local V2 API email data to the V3 API format. For each value that you provide in the `v2_email_campaign_ids` query parameter, this method returns the corresponding V3 `campaign_id` and V3 `campaign_activity_id` UUID value. For more information on the changes to the email campaign resource model, see [V3 Email Campaign Resource Changes](/api_guide/v3_v2_email_campaign_deltas.html) in the API guide. * @summary GET a Collection of V2 and V3 API Email Campaign Identifiers * @param {string} v2EmailCampaignIds Comma separated list of V2 API `campaignId` values. You can enter up to 50 V2 `campaignId` values in each request. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmailCampaignXrefs: (v2EmailCampaignIds: string, options?: RawAxiosRequestConfig) => Promise; /** * Get details about a resend to non-openers campaign activity. If resend activity does not exist for the specified `campaign_activity_id`, an empty list is returned in the results. You can only create one resend activity per email campaign. * @summary GET Details for a Resend to Non-openers Campaign Activity * @param {string} campaignActivityId The unique ID for the primary email campaign activity. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getResendEmailCampaign: (campaignActivityId: string, options?: RawAxiosRequestConfig) => Promise; /** * Use this method to rename an email campaign. The name is not visible to contacts. The name must be unique and cannot exceed 80 characters. You cannot rename email campaigns that have a `Removed` status. * @summary PATCH (Update) an Email Campaign Name * @param {string} campaignId The unique identifier for an email campaign. * @param {PatchEmailCampaignNameRequest} patchEmailCampaignNameRequest A JSON payload that contains the new email campaign name. * @param {*} [options] Override http request option. * @throws {RequiredError} */ patchEmailCampaignName: (campaignId: string, patchEmailCampaignNameRequest: PatchEmailCampaignNameRequest, options?: RawAxiosRequestConfig) => Promise; /** * Use this method to update an email campaign activity by including the complete email campaign activity with your changes in the request body. The request body requires the `from_name`, `from_email`, `reply_to_email`, and `subject` properties. You can only update email campaign activities that have the `primary_email` role and that are in `DRAFT` or `Done` status. When you use a PUT method to update a resource, the V3 API overwrites any properties that are missing in the request body. However, the V3 API does not overwrite subresources that you omit in the request body or missing properties in subresources. This method considers `physical_address_in_footer`, `document_properties`, `html_content`, and `permalink_url` subresources of the email campaign activity. * @summary PUT (Update) An Email Campaign Activity * @param {string} campaignActivityId The unique ID for the email campaign activity you are updating. * @param {GetEmailCampaignActivity200Response} getEmailCampaignActivity200Response A request body payload that contains the complete email campaign activity with your changes. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateEmailCampaignActivity: (campaignActivityId: string, getEmailCampaignActivity200Response: GetEmailCampaignActivity200Response, options?: RawAxiosRequestConfig) => Promise; }; /** * EmailCampaignsApi - functional programming interface * @export */ export declare const EmailCampaignsApiFp: (configuration?: Configuration) => { /** * Use this method to create a new email campaign. This method also creates new `primary_email` and `permalink` email campaign activities and associates them with the new email campaign. The request body must contain the `name` property and the `email_campaign_activities` array. The `name` must be unique. The `email_campaign_activities` array contains the main content of your email campaign and must include `format_type`, `from_name`, `from_email`, `reply_to_email`, `subject`, and `html_content` properties. The `from_email` address you use must use a verified email address for your account. NOTE: If you create an email campaign using a legacy (V7) format, Constant Contact automatically converts it to the newer custom code format. * @summary POST (Create) a New Email Campaign * @param {CreateEmailCampaignRequest} createEmailCampaignRequest A JSON request body that contains the email content. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createEmailCampaign(createEmailCampaignRequest: CreateEmailCampaignRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Use this POST method to resend a primary campaign activity to contacts that did not open a campaign activity that has a current `status` of `Draft`, `Scheduled`, or `Done`. You can only create one resend activity per email campaign. After an email campaign activity is sent to contacts, Constant Contact waits the specified number of `delay_days` or `delay_minutes` (properties are mutually exclusive) before resending to non-openers. If you set both `delay_days` or `delay_minutes`, `delay_minutes` is ignored in the request. You can resend to non-openers a minimum of twelve hours (720 minutes) and a maximum of up to 10 days (or 10 x 1440 minutes) after the initial send date. * @summary POST a Resend to Non-openers Campaign Activity * @param {string} campaignActivityId The unique ID for the primary email campaign activity. * @param {CreateResendEmailCampaignRequest} createResendEmailCampaignRequest A JSON request body that specifies when to resend the campaign activity to non-openers. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createResendEmailCampaign(campaignActivityId: string, createResendEmailCampaignRequest: CreateResendEmailCampaignRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Use this method to delete an email campaign and the email campaign activities associated with the email campaign. You cannot delete an email campaign when it has a `Scheduled` status. Constant Contact users can restore deleted email campaigns using the UI. * @summary DELETE an Email Campaign * @param {string} campaignId The unique ID for the email campaign you are deleting. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteEmailCampaign(campaignId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Use this `DELETE` method to delete (unschedule) a resend to non openers activity. * @summary DELETE a Resend to Non Openers Activity * @param {string} campaignActivityId The unique ID for the primary email campaign activity. * @param {string} resendRequestId The unique ID associated with the resend for the email campaign activity (for example: `389093`). If the email campaign activity is currently in draft status, specify `DRAFT` as the ID. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteResendEmailCampaign(campaignActivityId: string, resendRequestId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Use this method to list and get details about your email campaigns. By default, this method returns all email campaigns for the user account including deleted email campaigns. To get email campaigns within a date-range, use the `after_date` and `before_date` query parameters. This endpoint does not return campaign activity details for each email campaign in the collection. To get email campaign activity details for a single email campaign, use the GET `/emails/{campaign_id}` endpoint.\"

This method does not currently support filtering results using the email campaign creation date.

* @summary GET a Collection of Email Campaigns * @param {number} [limit] Specifies the number of campaigns to display on each page of output that is returned (from return 1 - 500). The default returns 50 campaigns per page. * @param {string} [beforeDate] Use to return email campaigns with `updated_at` timestamps that are before a specific date and time (in ISO-8601 format). Use with the `after_date` query parameter to get email campaigns sent within a specific date range. * @param {string} [afterDate] Use to return email campaigns with last `updated_at` timestamps that are after a specific date and time (in ISO-8601 format). Use with the `before_date` query parameter to get email campaigns sent within a specific date range. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAllEmailCampaigns(limit?: number, beforeDate?: string, afterDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Use this method to return a specific email campaign activity. Each email campaign activity contains the email content, metadata, and styling information of an email. Email campaign activities can also contain either contact lists or segments. Constant Contact uses this information to determine who to send the email campaign activity to when you schedule it. You cannot get email campaign activities that have a `REMOVED` status. * @summary GET a Single Email Campaign Activity * @param {string} campaignActivityId The unique ID for an email campaign activity. * @param {GetEmailCampaignActivityIncludeEnum} [include] Use the `include` query parameter to enter a comma separated list of additional email campaign activity properties for the V3 API to return. Valid values are `physical_address_in_footer`, `permalink_url`, `html_content`, and `document_properties`. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmailCampaignActivity(campaignActivityId: string, include?: GetEmailCampaignActivityIncludeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Use this method to get details about a single email campaign and campaign related activities. Details include the email campaign name, current status, create date, last update date, and a list of campaign activities; including the `campaign_activity_id` and `role`. * @summary GET Details About a Single Email Campaign * @param {string} campaignId The ID (UUID format) that uniquely identifies this email campaign. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmailCampaignById(campaignId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** *

Use this endpoint to migrate your locally stored V2 email campaign data to the new V3 format. Developers are expected to use this endpoint sparingly. This endpoint is NOT intended for regular or repeated use. Constant Contact will eventually deprecate and remove this endpoint.

Use this method to migrate your local V2 API email data to the V3 API format. For each value that you provide in the `v2_email_campaign_ids` query parameter, this method returns the corresponding V3 `campaign_id` and V3 `campaign_activity_id` UUID value. For more information on the changes to the email campaign resource model, see [V3 Email Campaign Resource Changes](/api_guide/v3_v2_email_campaign_deltas.html) in the API guide. * @summary GET a Collection of V2 and V3 API Email Campaign Identifiers * @param {string} v2EmailCampaignIds Comma separated list of V2 API `campaignId` values. You can enter up to 50 V2 `campaignId` values in each request. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmailCampaignXrefs(v2EmailCampaignIds: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Get details about a resend to non-openers campaign activity. If resend activity does not exist for the specified `campaign_activity_id`, an empty list is returned in the results. You can only create one resend activity per email campaign. * @summary GET Details for a Resend to Non-openers Campaign Activity * @param {string} campaignActivityId The unique ID for the primary email campaign activity. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getResendEmailCampaign(campaignActivityId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; /** * Use this method to rename an email campaign. The name is not visible to contacts. The name must be unique and cannot exceed 80 characters. You cannot rename email campaigns that have a `Removed` status. * @summary PATCH (Update) an Email Campaign Name * @param {string} campaignId The unique identifier for an email campaign. * @param {PatchEmailCampaignNameRequest} patchEmailCampaignNameRequest A JSON payload that contains the new email campaign name. * @param {*} [options] Override http request option. * @throws {RequiredError} */ patchEmailCampaignName(campaignId: string, patchEmailCampaignNameRequest: PatchEmailCampaignNameRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Use this method to update an email campaign activity by including the complete email campaign activity with your changes in the request body. The request body requires the `from_name`, `from_email`, `reply_to_email`, and `subject` properties. You can only update email campaign activities that have the `primary_email` role and that are in `DRAFT` or `Done` status. When you use a PUT method to update a resource, the V3 API overwrites any properties that are missing in the request body. However, the V3 API does not overwrite subresources that you omit in the request body or missing properties in subresources. This method considers `physical_address_in_footer`, `document_properties`, `html_content`, and `permalink_url` subresources of the email campaign activity. * @summary PUT (Update) An Email Campaign Activity * @param {string} campaignActivityId The unique ID for the email campaign activity you are updating. * @param {GetEmailCampaignActivity200Response} getEmailCampaignActivity200Response A request body payload that contains the complete email campaign activity with your changes. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateEmailCampaignActivity(campaignActivityId: string, getEmailCampaignActivity200Response: GetEmailCampaignActivity200Response, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * EmailCampaignsApi - factory interface * @export */ export declare const EmailCampaignsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Use this method to create a new email campaign. This method also creates new `primary_email` and `permalink` email campaign activities and associates them with the new email campaign. The request body must contain the `name` property and the `email_campaign_activities` array. The `name` must be unique. The `email_campaign_activities` array contains the main content of your email campaign and must include `format_type`, `from_name`, `from_email`, `reply_to_email`, `subject`, and `html_content` properties. The `from_email` address you use must use a verified email address for your account. NOTE: If you create an email campaign using a legacy (V7) format, Constant Contact automatically converts it to the newer custom code format. * @summary POST (Create) a New Email Campaign * @param {CreateEmailCampaignRequest} createEmailCampaignRequest A JSON request body that contains the email content. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createEmailCampaign(createEmailCampaignRequest: CreateEmailCampaignRequest, options?: any): AxiosPromise; /** * Use this POST method to resend a primary campaign activity to contacts that did not open a campaign activity that has a current `status` of `Draft`, `Scheduled`, or `Done`. You can only create one resend activity per email campaign. After an email campaign activity is sent to contacts, Constant Contact waits the specified number of `delay_days` or `delay_minutes` (properties are mutually exclusive) before resending to non-openers. If you set both `delay_days` or `delay_minutes`, `delay_minutes` is ignored in the request. You can resend to non-openers a minimum of twelve hours (720 minutes) and a maximum of up to 10 days (or 10 x 1440 minutes) after the initial send date. * @summary POST a Resend to Non-openers Campaign Activity * @param {string} campaignActivityId The unique ID for the primary email campaign activity. * @param {CreateResendEmailCampaignRequest} createResendEmailCampaignRequest A JSON request body that specifies when to resend the campaign activity to non-openers. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createResendEmailCampaign(campaignActivityId: string, createResendEmailCampaignRequest: CreateResendEmailCampaignRequest, options?: any): AxiosPromise; /** * Use this method to delete an email campaign and the email campaign activities associated with the email campaign. You cannot delete an email campaign when it has a `Scheduled` status. Constant Contact users can restore deleted email campaigns using the UI. * @summary DELETE an Email Campaign * @param {string} campaignId The unique ID for the email campaign you are deleting. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteEmailCampaign(campaignId: string, options?: any): AxiosPromise; /** * Use this `DELETE` method to delete (unschedule) a resend to non openers activity. * @summary DELETE a Resend to Non Openers Activity * @param {string} campaignActivityId The unique ID for the primary email campaign activity. * @param {string} resendRequestId The unique ID associated with the resend for the email campaign activity (for example: `389093`). If the email campaign activity is currently in draft status, specify `DRAFT` as the ID. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteResendEmailCampaign(campaignActivityId: string, resendRequestId: string, options?: any): AxiosPromise; /** * Use this method to list and get details about your email campaigns. By default, this method returns all email campaigns for the user account including deleted email campaigns. To get email campaigns within a date-range, use the `after_date` and `before_date` query parameters. This endpoint does not return campaign activity details for each email campaign in the collection. To get email campaign activity details for a single email campaign, use the GET `/emails/{campaign_id}` endpoint.\"

This method does not currently support filtering results using the email campaign creation date.

* @summary GET a Collection of Email Campaigns * @param {number} [limit] Specifies the number of campaigns to display on each page of output that is returned (from return 1 - 500). The default returns 50 campaigns per page. * @param {string} [beforeDate] Use to return email campaigns with `updated_at` timestamps that are before a specific date and time (in ISO-8601 format). Use with the `after_date` query parameter to get email campaigns sent within a specific date range. * @param {string} [afterDate] Use to return email campaigns with last `updated_at` timestamps that are after a specific date and time (in ISO-8601 format). Use with the `before_date` query parameter to get email campaigns sent within a specific date range. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAllEmailCampaigns(limit?: number, beforeDate?: string, afterDate?: string, options?: any): AxiosPromise; /** * Use this method to return a specific email campaign activity. Each email campaign activity contains the email content, metadata, and styling information of an email. Email campaign activities can also contain either contact lists or segments. Constant Contact uses this information to determine who to send the email campaign activity to when you schedule it. You cannot get email campaign activities that have a `REMOVED` status. * @summary GET a Single Email Campaign Activity * @param {string} campaignActivityId The unique ID for an email campaign activity. * @param {GetEmailCampaignActivityIncludeEnum} [include] Use the `include` query parameter to enter a comma separated list of additional email campaign activity properties for the V3 API to return. Valid values are `physical_address_in_footer`, `permalink_url`, `html_content`, and `document_properties`. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmailCampaignActivity(campaignActivityId: string, include?: GetEmailCampaignActivityIncludeEnum, options?: any): AxiosPromise; /** * Use this method to get details about a single email campaign and campaign related activities. Details include the email campaign name, current status, create date, last update date, and a list of campaign activities; including the `campaign_activity_id` and `role`. * @summary GET Details About a Single Email Campaign * @param {string} campaignId The ID (UUID format) that uniquely identifies this email campaign. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmailCampaignById(campaignId: string, options?: any): AxiosPromise; /** *

Use this endpoint to migrate your locally stored V2 email campaign data to the new V3 format. Developers are expected to use this endpoint sparingly. This endpoint is NOT intended for regular or repeated use. Constant Contact will eventually deprecate and remove this endpoint.

Use this method to migrate your local V2 API email data to the V3 API format. For each value that you provide in the `v2_email_campaign_ids` query parameter, this method returns the corresponding V3 `campaign_id` and V3 `campaign_activity_id` UUID value. For more information on the changes to the email campaign resource model, see [V3 Email Campaign Resource Changes](/api_guide/v3_v2_email_campaign_deltas.html) in the API guide. * @summary GET a Collection of V2 and V3 API Email Campaign Identifiers * @param {string} v2EmailCampaignIds Comma separated list of V2 API `campaignId` values. You can enter up to 50 V2 `campaignId` values in each request. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmailCampaignXrefs(v2EmailCampaignIds: string, options?: any): AxiosPromise; /** * Get details about a resend to non-openers campaign activity. If resend activity does not exist for the specified `campaign_activity_id`, an empty list is returned in the results. You can only create one resend activity per email campaign. * @summary GET Details for a Resend to Non-openers Campaign Activity * @param {string} campaignActivityId The unique ID for the primary email campaign activity. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getResendEmailCampaign(campaignActivityId: string, options?: any): AxiosPromise>; /** * Use this method to rename an email campaign. The name is not visible to contacts. The name must be unique and cannot exceed 80 characters. You cannot rename email campaigns that have a `Removed` status. * @summary PATCH (Update) an Email Campaign Name * @param {string} campaignId The unique identifier for an email campaign. * @param {PatchEmailCampaignNameRequest} patchEmailCampaignNameRequest A JSON payload that contains the new email campaign name. * @param {*} [options] Override http request option. * @throws {RequiredError} */ patchEmailCampaignName(campaignId: string, patchEmailCampaignNameRequest: PatchEmailCampaignNameRequest, options?: any): AxiosPromise; /** * Use this method to update an email campaign activity by including the complete email campaign activity with your changes in the request body. The request body requires the `from_name`, `from_email`, `reply_to_email`, and `subject` properties. You can only update email campaign activities that have the `primary_email` role and that are in `DRAFT` or `Done` status. When you use a PUT method to update a resource, the V3 API overwrites any properties that are missing in the request body. However, the V3 API does not overwrite subresources that you omit in the request body or missing properties in subresources. This method considers `physical_address_in_footer`, `document_properties`, `html_content`, and `permalink_url` subresources of the email campaign activity. * @summary PUT (Update) An Email Campaign Activity * @param {string} campaignActivityId The unique ID for the email campaign activity you are updating. * @param {GetEmailCampaignActivity200Response} getEmailCampaignActivity200Response A request body payload that contains the complete email campaign activity with your changes. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateEmailCampaignActivity(campaignActivityId: string, getEmailCampaignActivity200Response: GetEmailCampaignActivity200Response, options?: any): AxiosPromise; }; /** * EmailCampaignsApi - object-oriented interface * @export * @class EmailCampaignsApi * @extends {BaseAPI} */ export declare class EmailCampaignsApi extends BaseAPI { /** * Use this method to create a new email campaign. This method also creates new `primary_email` and `permalink` email campaign activities and associates them with the new email campaign. The request body must contain the `name` property and the `email_campaign_activities` array. The `name` must be unique. The `email_campaign_activities` array contains the main content of your email campaign and must include `format_type`, `from_name`, `from_email`, `reply_to_email`, `subject`, and `html_content` properties. The `from_email` address you use must use a verified email address for your account. NOTE: If you create an email campaign using a legacy (V7) format, Constant Contact automatically converts it to the newer custom code format. * @summary POST (Create) a New Email Campaign * @param {CreateEmailCampaignRequest} createEmailCampaignRequest A JSON request body that contains the email content. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmailCampaignsApi */ createEmailCampaign(createEmailCampaignRequest: CreateEmailCampaignRequest, options?: RawAxiosRequestConfig): Promise>; /** * Use this POST method to resend a primary campaign activity to contacts that did not open a campaign activity that has a current `status` of `Draft`, `Scheduled`, or `Done`. You can only create one resend activity per email campaign. After an email campaign activity is sent to contacts, Constant Contact waits the specified number of `delay_days` or `delay_minutes` (properties are mutually exclusive) before resending to non-openers. If you set both `delay_days` or `delay_minutes`, `delay_minutes` is ignored in the request. You can resend to non-openers a minimum of twelve hours (720 minutes) and a maximum of up to 10 days (or 10 x 1440 minutes) after the initial send date. * @summary POST a Resend to Non-openers Campaign Activity * @param {string} campaignActivityId The unique ID for the primary email campaign activity. * @param {CreateResendEmailCampaignRequest} createResendEmailCampaignRequest A JSON request body that specifies when to resend the campaign activity to non-openers. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmailCampaignsApi */ createResendEmailCampaign(campaignActivityId: string, createResendEmailCampaignRequest: CreateResendEmailCampaignRequest, options?: RawAxiosRequestConfig): Promise>; /** * Use this method to delete an email campaign and the email campaign activities associated with the email campaign. You cannot delete an email campaign when it has a `Scheduled` status. Constant Contact users can restore deleted email campaigns using the UI. * @summary DELETE an Email Campaign * @param {string} campaignId The unique ID for the email campaign you are deleting. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmailCampaignsApi */ deleteEmailCampaign(campaignId: string, options?: RawAxiosRequestConfig): Promise>; /** * Use this `DELETE` method to delete (unschedule) a resend to non openers activity. * @summary DELETE a Resend to Non Openers Activity * @param {string} campaignActivityId The unique ID for the primary email campaign activity. * @param {string} resendRequestId The unique ID associated with the resend for the email campaign activity (for example: `389093`). If the email campaign activity is currently in draft status, specify `DRAFT` as the ID. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmailCampaignsApi */ deleteResendEmailCampaign(campaignActivityId: string, resendRequestId: string, options?: RawAxiosRequestConfig): Promise>; /** * Use this method to list and get details about your email campaigns. By default, this method returns all email campaigns for the user account including deleted email campaigns. To get email campaigns within a date-range, use the `after_date` and `before_date` query parameters. This endpoint does not return campaign activity details for each email campaign in the collection. To get email campaign activity details for a single email campaign, use the GET `/emails/{campaign_id}` endpoint.\"

This method does not currently support filtering results using the email campaign creation date.

* @summary GET a Collection of Email Campaigns * @param {number} [limit] Specifies the number of campaigns to display on each page of output that is returned (from return 1 - 500). The default returns 50 campaigns per page. * @param {string} [beforeDate] Use to return email campaigns with `updated_at` timestamps that are before a specific date and time (in ISO-8601 format). Use with the `after_date` query parameter to get email campaigns sent within a specific date range. * @param {string} [afterDate] Use to return email campaigns with last `updated_at` timestamps that are after a specific date and time (in ISO-8601 format). Use with the `before_date` query parameter to get email campaigns sent within a specific date range. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmailCampaignsApi */ getAllEmailCampaigns(limit?: number, beforeDate?: string, afterDate?: string, options?: RawAxiosRequestConfig): Promise>; /** * Use this method to return a specific email campaign activity. Each email campaign activity contains the email content, metadata, and styling information of an email. Email campaign activities can also contain either contact lists or segments. Constant Contact uses this information to determine who to send the email campaign activity to when you schedule it. You cannot get email campaign activities that have a `REMOVED` status. * @summary GET a Single Email Campaign Activity * @param {string} campaignActivityId The unique ID for an email campaign activity. * @param {GetEmailCampaignActivityIncludeEnum} [include] Use the `include` query parameter to enter a comma separated list of additional email campaign activity properties for the V3 API to return. Valid values are `physical_address_in_footer`, `permalink_url`, `html_content`, and `document_properties`. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmailCampaignsApi */ getEmailCampaignActivity(campaignActivityId: string, include?: GetEmailCampaignActivityIncludeEnum, options?: RawAxiosRequestConfig): Promise>; /** * Use this method to get details about a single email campaign and campaign related activities. Details include the email campaign name, current status, create date, last update date, and a list of campaign activities; including the `campaign_activity_id` and `role`. * @summary GET Details About a Single Email Campaign * @param {string} campaignId The ID (UUID format) that uniquely identifies this email campaign. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmailCampaignsApi */ getEmailCampaignById(campaignId: string, options?: RawAxiosRequestConfig): Promise>; /** *

Use this endpoint to migrate your locally stored V2 email campaign data to the new V3 format. Developers are expected to use this endpoint sparingly. This endpoint is NOT intended for regular or repeated use. Constant Contact will eventually deprecate and remove this endpoint.

Use this method to migrate your local V2 API email data to the V3 API format. For each value that you provide in the `v2_email_campaign_ids` query parameter, this method returns the corresponding V3 `campaign_id` and V3 `campaign_activity_id` UUID value. For more information on the changes to the email campaign resource model, see [V3 Email Campaign Resource Changes](/api_guide/v3_v2_email_campaign_deltas.html) in the API guide. * @summary GET a Collection of V2 and V3 API Email Campaign Identifiers * @param {string} v2EmailCampaignIds Comma separated list of V2 API `campaignId` values. You can enter up to 50 V2 `campaignId` values in each request. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmailCampaignsApi */ getEmailCampaignXrefs(v2EmailCampaignIds: string, options?: RawAxiosRequestConfig): Promise>; /** * Get details about a resend to non-openers campaign activity. If resend activity does not exist for the specified `campaign_activity_id`, an empty list is returned in the results. You can only create one resend activity per email campaign. * @summary GET Details for a Resend to Non-openers Campaign Activity * @param {string} campaignActivityId The unique ID for the primary email campaign activity. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmailCampaignsApi */ getResendEmailCampaign(campaignActivityId: string, options?: RawAxiosRequestConfig): Promise>; /** * Use this method to rename an email campaign. The name is not visible to contacts. The name must be unique and cannot exceed 80 characters. You cannot rename email campaigns that have a `Removed` status. * @summary PATCH (Update) an Email Campaign Name * @param {string} campaignId The unique identifier for an email campaign. * @param {PatchEmailCampaignNameRequest} patchEmailCampaignNameRequest A JSON payload that contains the new email campaign name. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmailCampaignsApi */ patchEmailCampaignName(campaignId: string, patchEmailCampaignNameRequest: PatchEmailCampaignNameRequest, options?: RawAxiosRequestConfig): Promise>; /** * Use this method to update an email campaign activity by including the complete email campaign activity with your changes in the request body. The request body requires the `from_name`, `from_email`, `reply_to_email`, and `subject` properties. You can only update email campaign activities that have the `primary_email` role and that are in `DRAFT` or `Done` status. When you use a PUT method to update a resource, the V3 API overwrites any properties that are missing in the request body. However, the V3 API does not overwrite subresources that you omit in the request body or missing properties in subresources. This method considers `physical_address_in_footer`, `document_properties`, `html_content`, and `permalink_url` subresources of the email campaign activity. * @summary PUT (Update) An Email Campaign Activity * @param {string} campaignActivityId The unique ID for the email campaign activity you are updating. * @param {GetEmailCampaignActivity200Response} getEmailCampaignActivity200Response A request body payload that contains the complete email campaign activity with your changes. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmailCampaignsApi */ updateEmailCampaignActivity(campaignActivityId: string, getEmailCampaignActivity200Response: GetEmailCampaignActivity200Response, options?: RawAxiosRequestConfig): Promise>; } /** * @export */ export declare const GetEmailCampaignActivityIncludeEnum: { readonly PhysicalAddressInFooter: "physical_address_in_footer"; readonly PermalinkUrl: "permalink_url"; readonly HtmlContent: "html_content"; readonly DocumentProperties: "document_properties"; }; export type GetEmailCampaignActivityIncludeEnum = typeof GetEmailCampaignActivityIncludeEnum[keyof typeof GetEmailCampaignActivityIncludeEnum];