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