PauseCampaign
Pause the campaign from a scheduled campaign.
URL | https://api.enginemailer.com/restapi/campaign/emcampaign/PauseCampaign |
Method | HTTP GET with Query String |
Please note of the following before starting use this function
- Only scheduled without delivering campaign is able to perform the pause for the campaign
Table: Parameter
Parameter name | Description | Column Type |
---|---|---|
CampaignID | Targeted Campaign ID. | Integer |
Request Example
Header
<APIKEY> - Value
Response
Success Response
{
"Result":{
"Status":"OK",
"StatusCode":"200"
}
}
Failed Response
{
"Result":{
"StatusCode":"500",
"Status":"InternalServerError",
"ErrorMessage":"Authentication Failed!"
}
}
Code Example (.NET)
Using REST SHARP library , please download from Nuget Package
var client = new RestClient("https://api.enginemailer.com/restapi/campaign/emcampaign/PauseCampaign?campaignid=1"); var request = new RestRequest(Method.GET); request.AddHeader("APIKey", "YOUR API KEY"); var response = client.Execute(request).Content; var response2 = JObject.Parse(response);