DeleteCampaign
Deleting undelivered campaign.
URL | https://api.enginemailer.com/restapi/campaign/emcampaign/deletecampaign |
Method | HTTP GET with Query String |
Please note of the following before starting use this function
- Scheduled, delivering, delivered campaign is not able to perform the deleting.
- This function will not work when the campaign is inserting / deleting the recipient list.
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/deletecampaign?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);