All URIs are relative to https://api.moosend.com/v3
Method | HTTP request | Description |
---|---|---|
aBTestCampaignSummary | GET /campaigns/{CampaignID}/view_ab_summary.{Format} | AB Test Campaign Summary |
activityByLocation | GET /campaigns/{CampaignID}/stats/countries.{Format} | Activity By Location |
campaignSummary | GET /campaigns/{CampaignID}/view_summary.{Format} | Campaign Summary |
cloningAnExistingCampaign | POST /campaigns/{CampaignID}/clone.{Format} | Cloning An Existing Campaign |
creatingADraftCampaign | POST /campaigns/create.{Format} | Creating A Draft Campaign |
deletingACampaign | DELETE /campaigns/{CampaignID}/delete.{Format} | Deleting A Campaign |
getAllCampaigns | GET /campaigns.{Format} | Get All Campaigns |
getCampaignStatisticsWithPagingFiltered | GET /campaigns/{CampaignID}/stats/{Type}.{Format} | Get Campaign Statistics With Paging & Filtered |
getCampaignsByPage | GET /campaigns/{Page}.{Format} | Get Campaigns By Page |
getCampaignsByPageAndPagesize | GET /campaigns/{Page}/{PageSize}.{Format} | Get Campaigns By Page And Pagesize |
gettingAllYourSenders | GET /senders/find_all.{Format} | Getting All Your Senders |
gettingCampaignDetails | GET /campaigns/{CampaignID}/view.{Format} | Getting Campaign Details |
gettingSenderDetails | GET /senders/find_one.{Format} | Getting Sender Details |
linkActivity | GET /campaigns/{CampaignID}/stats/links.{Format} | Link Activity |
schedulingACampaign | POST /campaigns/{CampaignID}/schedule.{Format} | Scheduling A Campaign |
sendingACampaign | POST /campaigns/{CampaignID}/send.{Format} | Sending a campaign |
testingACampaign | POST /campaigns/{CampaignID}/send_test.{Format} | Testing a campaign |
unschedulingACampaign | POST /campaigns/{CampaignID}/unschedule.{Format} | Unscheduling a campaign |
updatingADraftCampaign | POST /campaigns/{CampaignID}/update.{Format} | Updating A Draft Campaign |
\Swagger\Client\Model\AbTestCampaignSummaryResponse aBTestCampaignSummary($format, $apikey, $campaign_id)
AB Test Campaign Summary
Provides a basic summary of the results for a sent AB test campaign, separately for each version (A and B), such as the number of recipients, opens, clicks, bounces, unsubscribes, forwards etc to date.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CampaignsApi();
$format = "format_example"; // string |
$apikey = "apikey_example"; // string | You may find your API Key or generate a new one in your account settings.
$campaign_id = "campaign_id_example"; // string | The ID of the requested AB test campaign
try {
$result = $api_instance->aBTestCampaignSummary($format, $apikey, $campaign_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CampaignsApi->aBTestCampaignSummary: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
format | string | ||
apikey | string | You may find your API Key or generate a new one in your account settings. | |
campaign_id | string | The ID of the requested AB test campaign |
\Swagger\Client\Model\AbTestCampaignSummaryResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ActivityByLocationResponse activityByLocation($format, $apikey, $campaign_id)
Activity By Location
Returns a detailed report of your campaign opens (unique and total) by country.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CampaignsApi();
$format = "format_example"; // string |
$apikey = "apikey_example"; // string | You may find your API Key or generate a new one in your account settings.
$campaign_id = "campaign_id_example"; // string | The ID of the requested campaign
try {
$result = $api_instance->activityByLocation($format, $apikey, $campaign_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CampaignsApi->activityByLocation: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
format | string | ||
apikey | string | You may find your API Key or generate a new one in your account settings. | |
campaign_id | string | The ID of the requested campaign |
\Swagger\Client\Model\ActivityByLocationResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\CampaignSummaryResponse campaignSummary($format, $apikey, $campaign_id)
Campaign Summary
Provides a basic summary of the results for any sent campaign such as the number of recipients, opens, clicks, bounces, unsubscribes, forwards etc. to date.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CampaignsApi();
$format = "format_example"; // string |
$apikey = "apikey_example"; // string | You may find your API Key or generate a new one in your account settings.
$campaign_id = "campaign_id_example"; // string | The ID of the requested campaign
try {
$result = $api_instance->campaignSummary($format, $apikey, $campaign_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CampaignsApi->campaignSummary: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
format | string | ||
apikey | string | You may find your API Key or generate a new one in your account settings. | |
campaign_id | string | The ID of the requested campaign |
\Swagger\Client\Model\CampaignSummaryResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\CloningAnExistingCampaignResponse cloningAnExistingCampaign($format, $campaign_id, $apikey)
Cloning An Existing Campaign
Creates an exact copy of an existing campaign. The new campaign is created as a draft.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CampaignsApi();
$format = "format_example"; // string |
$campaign_id = "campaign_id_example"; // string |
$apikey = "apikey_example"; // string | You may find your API Key or generate a new one in your account settings.
try {
$result = $api_instance->cloningAnExistingCampaign($format, $campaign_id, $apikey);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CampaignsApi->cloningAnExistingCampaign: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
format | string | ||
campaign_id | string | ||
apikey | string | You may find your API Key or generate a new one in your account settings. |
\Swagger\Client\Model\CloningAnExistingCampaignResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\CreatingADraftCampaignResponse creatingADraftCampaign($format, $apikey, $body)
Creating A Draft Campaign
Creates a new campaign in your account. This method does not send the campaign, but rather creates it as a draft, ready for sending or testing. You can choose to send either a regular campaign or an AB split campaign. Campaign content must be specified from a web location. Ignore (A/B Split Campaign Option) if you want to create a regular campaign.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CampaignsApi();
$format = "format_example"; // string |
$apikey = "apikey_example"; // string | You may find your API Key or generate a new one in your account settings.
$body = new \Swagger\Client\Model\CreatingADraftCampaignRequest(); // \Swagger\Client\Model\CreatingADraftCampaignRequest |
try {
$result = $api_instance->creatingADraftCampaign($format, $apikey, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CampaignsApi->creatingADraftCampaign: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
format | string | ||
apikey | string | You may find your API Key or generate a new one in your account settings. | |
body | \Swagger\Client\Model\CreatingADraftCampaignRequest |
\Swagger\Client\Model\CreatingADraftCampaignResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\DeletingACampaignResponse deletingACampaign($format, $apikey, $campaign_id)
Deleting A Campaign
Deletes a campaign from your account, draft or even sent.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CampaignsApi();
$format = "format_example"; // string |
$apikey = "apikey_example"; // string | You may find your API Key or generate a new one in your account settings.
$campaign_id = "campaign_id_example"; // string | The ID of the draft campaign to update.
try {
$result = $api_instance->deletingACampaign($format, $apikey, $campaign_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CampaignsApi->deletingACampaign: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
format | string | ||
apikey | string | You may find your API Key or generate a new one in your account settings. | |
campaign_id | string | The ID of the draft campaign to update. |
\Swagger\Client\Model\DeletingACampaignResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\GetAllCampaignsResponse getAllCampaigns($format, $apikey)
Get All Campaigns
Returns a list of all campaigns in your account with detailed information. Because the results for this call could be quite big, paging information is required as input.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CampaignsApi();
$format = "format_example"; // string |
$apikey = "apikey_example"; // string | You may find your API Key or generate a new one in your account settings.
try {
$result = $api_instance->getAllCampaigns($format, $apikey);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CampaignsApi->getAllCampaigns: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
format | string | ||
apikey | string | You may find your API Key or generate a new one in your account settings. |
\Swagger\Client\Model\GetAllCampaignsResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\GetCampaignStatisticsWithPagingFilteredResponse getCampaignStatisticsWithPagingFiltered($format, $apikey, $campaign_id, $type, $page, $page_size, $from, $to)
Get Campaign Statistics With Paging & Filtered
Returns a detailed list of statistics for a given campaign based on activity such as emails sent, opened, bounced, link clicked, etc. Because the results for this call could be quite big, paging information is required as input.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CampaignsApi();
$format = "format_example"; // string |
$apikey = "apikey_example"; // string | You may find your API Key or generate a new one in your account settings.
$campaign_id = "campaign_id_example"; // string | The ID of the requested AB test campaign
$type = "type_example"; // string | The type of the activity to display results for. This must be one of the following values : * Sent : To get information about when and to which recipients the campaign was sent. * Opened : To get information about who opened the campaign. * LinkClicked : To get information about who clicked on which link. * Forward : To get information about who forwarded the campaign using the relevant link on the email body and when. * Unsubscribed : To get information about who unsubscribed from the campaign by clicking on the unsubscribe link and when. * Bounced : To get information about which email recipients failed to receive the campaign. If not specified, the value Sent will be used by default.
$page = "page_example"; // string | The page number to display results for. If not specified, the first page will be returned.
$page_size = "page_size_example"; // string | The maximum number of results per page. This must be a positive integer up to 100. If not specified, 50 results per page will be returned. If a value greater than 100 is specified, it will be treated as 100.
$from = "from_example"; // string | A date value that specifies since when to start returning results. If omitted, results will be returned from the moment the campaign was sent.
$to = "to_example"; // string | A date value that specifies up to when to return results. If omitted, results will be returned up to date.
try {
$result = $api_instance->getCampaignStatisticsWithPagingFiltered($format, $apikey, $campaign_id, $type, $page, $page_size, $from, $to);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CampaignsApi->getCampaignStatisticsWithPagingFiltered: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
format | string | ||
apikey | string | You may find your API Key or generate a new one in your account settings. | |
campaign_id | string | The ID of the requested AB test campaign | |
type | string | The type of the activity to display results for. This must be one of the following values : * Sent : To get information about when and to which recipients the campaign was sent. * Opened : To get information about who opened the campaign. * LinkClicked : To get information about who clicked on which link. * Forward : To get information about who forwarded the campaign using the relevant link on the email body and when. * Unsubscribed : To get information about who unsubscribed from the campaign by clicking on the unsubscribe link and when. * Bounced : To get information about which email recipients failed to receive the campaign. If not specified, the value Sent will be used by default. | |
page | string | The page number to display results for. If not specified, the first page will be returned. | [optional] |
page_size | string | The maximum number of results per page. This must be a positive integer up to 100. If not specified, 50 results per page will be returned. If a value greater than 100 is specified, it will be treated as 100. | [optional] |
from | string | A date value that specifies since when to start returning results. If omitted, results will be returned from the moment the campaign was sent. | [optional] |
to | string | A date value that specifies up to when to return results. If omitted, results will be returned up to date. | [optional] |
\Swagger\Client\Model\GetCampaignStatisticsWithPagingFilteredResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\GetCampaignsByPageResponse getCampaignsByPage($format, $apikey, $page)
Get Campaigns By Page
Returns a list of all campaigns in your account with detailed information. Because the results for this call could be quite big, paging information is required as input.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CampaignsApi();
$format = "format_example"; // string |
$apikey = "apikey_example"; // string | You may find your API Key or generate a new one in your account settings.
$page = 1.2; // double | The page number to display results for.
try {
$result = $api_instance->getCampaignsByPage($format, $apikey, $page);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CampaignsApi->getCampaignsByPage: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
format | string | ||
apikey | string | You may find your API Key or generate a new one in your account settings. | |
page | double | The page number to display results for. |
\Swagger\Client\Model\GetCampaignsByPageResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\GetCampaignsByPageAndPagesizeResponse getCampaignsByPageAndPagesize($format, $apikey, $page, $page_size, $short_by, $sort_method)
Get Campaigns By Page And Pagesize
Returns a list of all campaigns in your account with detailed information. Because the results for this call could be quite big, paging information is required as input.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CampaignsApi();
$format = "format_example"; // string |
$apikey = "apikey_example"; // string | You may find your API Key or generate a new one in your account settings.
$page = 1.2; // double | The page number to display results for.
$page_size = 1.2; // double | The maximum number of results per page. This must be a positive integer up to 100. If not specified, 50 results per page will be returned. If a value greater than 100 is specified, it will be treated as 100.
$short_by = "short_by_example"; // string | The name of the campaign property to sort results by. If not specified, results will be sorted by the CreatedOn property
$sort_method = "sort_method_example"; // string | The method to sort results: ASC for ascending, DESC for descending. If not specified, `ASC` will be assumed
try {
$result = $api_instance->getCampaignsByPageAndPagesize($format, $apikey, $page, $page_size, $short_by, $sort_method);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CampaignsApi->getCampaignsByPageAndPagesize: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
format | string | ||
apikey | string | You may find your API Key or generate a new one in your account settings. | |
page | double | The page number to display results for. | |
page_size | double | The maximum number of results per page. This must be a positive integer up to 100. If not specified, 50 results per page will be returned. If a value greater than 100 is specified, it will be treated as 100. | |
short_by | string | The name of the campaign property to sort results by. If not specified, results will be sorted by the CreatedOn property | [optional] |
sort_method | string | The method to sort results: ASC for ascending, DESC for descending. If not specified, `ASC` will be assumed | [optional] |
\Swagger\Client\Model\GetCampaignsByPageAndPagesizeResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\GettingAllYourSendersResponse gettingAllYourSenders($format, $apikey)
Getting All Your Senders
Gets a list of your active senders in your account. You may specify any email address of these senders when sending a campaign.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CampaignsApi();
$format = "format_example"; // string |
$apikey = "apikey_example"; // string | You may find your API Key or generate a new one in your account settings.
try {
$result = $api_instance->gettingAllYourSenders($format, $apikey);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CampaignsApi->gettingAllYourSenders: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
format | string | ||
apikey | string | You may find your API Key or generate a new one in your account settings. |
\Swagger\Client\Model\GettingAllYourSendersResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\GettingCampaignDetailsResponse gettingCampaignDetails($format, $apikey, $campaign_id)
Getting Campaign Details
Returns a complete set of properties that describe the requested campaign in detail. No statistics are included in the result.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CampaignsApi();
$format = "format_example"; // string |
$apikey = "apikey_example"; // string | You may find your API Key or generate a new one in your account settings.
$campaign_id = "campaign_id_example"; // string | The ID of the requested campaign
try {
$result = $api_instance->gettingCampaignDetails($format, $apikey, $campaign_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CampaignsApi->gettingCampaignDetails: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
format | string | ||
apikey | string | You may find your API Key or generate a new one in your account settings. | |
campaign_id | string | The ID of the requested campaign |
\Swagger\Client\Model\GettingCampaignDetailsResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\GettingSenderDetailsResponse gettingSenderDetails($format, $email, $apikey)
Getting Sender Details
Returns basic information for the specified sender identified by its email address.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CampaignsApi();
$format = "format_example"; // string |
$email = "email_example"; // string |
$apikey = "apikey_example"; // string | You may find your API Key or generate a new one in your account settings.
try {
$result = $api_instance->gettingSenderDetails($format, $email, $apikey);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CampaignsApi->gettingSenderDetails: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
format | string | ||
string | |||
apikey | string | You may find your API Key or generate a new one in your account settings. |
\Swagger\Client\Model\GettingSenderDetailsResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\LinkActivityResponse linkActivity($format, $apikey, $campaign_id)
Link Activity
Returns a list with your campaign links and how many clicks have been made by your recipients, either unique or total.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CampaignsApi();
$format = "format_example"; // string |
$apikey = "apikey_example"; // string | You may find your API Key or generate a new one in your account settings.
$campaign_id = "campaign_id_example"; // string | The ID of the requested campaign
try {
$result = $api_instance->linkActivity($format, $apikey, $campaign_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CampaignsApi->linkActivity: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
format | string | ||
apikey | string | You may find your API Key or generate a new one in your account settings. | |
campaign_id | string | The ID of the requested campaign |
\Swagger\Client\Model\LinkActivityResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\SchedulingACampaignResponse schedulingACampaign($format, $apikey, $campaign_id, $body)
Scheduling A Campaign
Assigns a scheduled date and time at which the campaign will be delivered.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CampaignsApi();
$format = "format_example"; // string |
$apikey = "apikey_example"; // string | You may find your API Key or generate a new one in your account settings.
$campaign_id = "campaign_id_example"; // string | The ID of the campaign to be scheduled
$body = new \Swagger\Client\Model\SchedulingACampaignRequest(); // \Swagger\Client\Model\SchedulingACampaignRequest |
try {
$result = $api_instance->schedulingACampaign($format, $apikey, $campaign_id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CampaignsApi->schedulingACampaign: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
format | string | ||
apikey | string | You may find your API Key or generate a new one in your account settings. | |
campaign_id | string | The ID of the campaign to be scheduled | |
body | \Swagger\Client\Model\SchedulingACampaignRequest |
\Swagger\Client\Model\SchedulingACampaignResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\SendingACampaignResponse sendingACampaign($format, $apikey, $campaign_id)
Sending a campaign
Sends an existing draft campaign to all recipients specified in its mailing list. The campaign is sent immediatelly.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CampaignsApi();
$format = "format_example"; // string |
$apikey = "apikey_example"; // string | You may find your API Key or generate a new one in your account settings.
$campaign_id = "campaign_id_example"; // string | The ID of the draft campaign to be sent.
try {
$result = $api_instance->sendingACampaign($format, $apikey, $campaign_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CampaignsApi->sendingACampaign: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
format | string | ||
apikey | string | You may find your API Key or generate a new one in your account settings. | |
campaign_id | string | The ID of the draft campaign to be sent. |
\Swagger\Client\Model\SendingACampaignResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\TestingACampaignResponse testingACampaign($format, $apikey, $campaign_id, $body)
Testing a campaign
Sends a test email of a draft campaign to a list of email addresses you specify for previewing.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CampaignsApi();
$format = "format_example"; // string |
$apikey = "apikey_example"; // string | You may find your API Key or generate a new one in your account settings.
$campaign_id = "campaign_id_example"; // string | The ID of the draft campaign to be tested.
$body = new \Swagger\Client\Model\TestingACampaignRequest(); // \Swagger\Client\Model\TestingACampaignRequest |
try {
$result = $api_instance->testingACampaign($format, $apikey, $campaign_id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CampaignsApi->testingACampaign: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
format | string | ||
apikey | string | You may find your API Key or generate a new one in your account settings. | |
campaign_id | string | The ID of the draft campaign to be tested. | |
body | \Swagger\Client\Model\TestingACampaignRequest |
\Swagger\Client\Model\TestingACampaignResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\UnschedulingACampaignResponse unschedulingACampaign($format, $apikey, $campaign_id)
Unscheduling a campaign
Removes a previously defined scheduled date and time from a campaign, so that it will be delivered immediately if already queued or when sent.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CampaignsApi();
$format = "format_example"; // string |
$apikey = "apikey_example"; // string | You may find your API Key or generate a new one in your account settings.
$campaign_id = "campaign_id_example"; // string | The ID of the campaign to be scheduled
try {
$result = $api_instance->unschedulingACampaign($format, $apikey, $campaign_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CampaignsApi->unschedulingACampaign: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
format | string | ||
apikey | string | You may find your API Key or generate a new one in your account settings. | |
campaign_id | string | The ID of the campaign to be scheduled |
\Swagger\Client\Model\UnschedulingACampaignResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\UpdatingADraftCampaignResponse updatingADraftCampaign($format, $apikey, $campaign_id, $body)
Updating A Draft Campaign
Updates properties of an existing draft A/B campaign in your account. Non-draft campaigns cannot be updated. Ignore (A/B Split Campaign Option) if you want to create a regular campaign.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CampaignsApi();
$format = "format_example"; // string |
$apikey = "apikey_example"; // string | You may find your API Key or generate a new one in your account settings.
$campaign_id = "campaign_id_example"; // string | The ID of the draft campaign to update.
$body = new \Swagger\Client\Model\UpdatingADraftCampaignRequest(); // \Swagger\Client\Model\UpdatingADraftCampaignRequest |
try {
$result = $api_instance->updatingADraftCampaign($format, $apikey, $campaign_id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CampaignsApi->updatingADraftCampaign: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
format | string | ||
apikey | string | You may find your API Key or generate a new one in your account settings. | |
campaign_id | string | The ID of the draft campaign to update. | |
body | \Swagger\Client\Model\UpdatingADraftCampaignRequest |
\Swagger\Client\Model\UpdatingADraftCampaignResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]