It is a method to cancel a scheduled campaign. The user can cancel his campaign with the specified campaign_id (you can get it after creating the mailing — see the createCampaign method).
A campaign can be canceled if it has one of the following statuses: «Planned», «Scheduled» (scheduled), «Considered by the administration» (censor_hold), «Waiting for approval» (waits_censor). The distribution status can be obtained using the getCampaignStatus method.
Principle of use
Syntax and URL to call the method |
cancelCampaign (int campaign_id) |
https://api.selzy.com/en/api/cancelCampaign?api_key=API_KEY&campaign_id=ID |
Arguments | |
api_key * | API access key. |
campaign_id * | id of the campaign to be canceled. |
Return value | |
If the campaign has been successfully canceled:
{"result":[]} If the campaign cannot be canceled:
|