SendCampaign
Send the campaign.
URL | https://api.enginemailer.com/restapi/campaign/emcampaign/SendCampaign |
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 sending.
- This function will not work when the campaign is deleting the recipient list.
- The campaign must at least have one recipient to deliver 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/SendCampaign?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);