| @@ 1103-1112 (lines=10) @@ | ||
| 1100 | ); |
|
| 1101 | } |
|
| 1102 | ||
| 1103 | public function deleteCampaign($campaignID) |
|
| 1104 | { |
|
| 1105 | $wrap = new CS_REST_Campaigns($campaignID, $this->getAuth()); |
|
| 1106 | $result = $wrap->delete(); |
|
| 1107 | return $this->returnResult( |
|
| 1108 | $result, |
|
| 1109 | "DELETE /api/v3/campaigns/{id}", |
|
| 1110 | "Deleted Campaign" |
|
| 1111 | ); |
|
| 1112 | } |
|
| 1113 | ||
| 1114 | /******************************************************* |
|
| 1115 | * information about the campaigns |
|
| @@ 1151-1160 (lines=10) @@ | ||
| 1148 | * 'SpamComplaints' => The number of recipients who marked the campaign as spam |
|
| 1149 | * } |
|
| 1150 | */ |
|
| 1151 | public function getSummary($campaignID) |
|
| 1152 | { |
|
| 1153 | $wrap = new CS_REST_Campaigns($campaignID, $this->getAuth()); |
|
| 1154 | $result = $wrap->get_summary(); |
|
| 1155 | return $this->returnResult( |
|
| 1156 | $result, |
|
| 1157 | "GET /api/v3.1/campaigns/{id}/summary", |
|
| 1158 | "Got Summary" |
|
| 1159 | ); |
|
| 1160 | } |
|
| 1161 | ||
| 1162 | /** |
|
| 1163 | * Gets the email clients that subscribers used to open the campaign |
|
| @@ 1177-1186 (lines=10) @@ | ||
| 1174 | * } |
|
| 1175 | * ) |
|
| 1176 | */ |
|
| 1177 | public function getEmailClientUsage($campaignID) |
|
| 1178 | { |
|
| 1179 | $wrap = new CS_REST_Campaigns($campaignID, $this->getAuth()); |
|
| 1180 | $result = $wrap->get_email_client_usage(); |
|
| 1181 | return $this->returnResult( |
|
| 1182 | $result, |
|
| 1183 | "GET /api/v3.1/campaigns/{id}/emailclientusage", |
|
| 1184 | "Got email client usage" |
|
| 1185 | ); |
|
| 1186 | } |
|
| 1187 | ||
| 1188 | public function getListsAndSegments() |
|
| 1189 | { |
|