|
@@ -80,6 +80,7 @@ discard block |
|
|
block discarded – undo |
|
80
|
80
|
* turn debug on or off |
|
81
|
81
|
* |
|
82
|
82
|
* @param Boolean |
|
|
83
|
+ * @param boolean $b |
|
83
|
84
|
*/ |
|
84
|
85
|
public function setDebug($b) |
|
85
|
86
|
{ |
|
@@ -160,6 +161,8 @@ discard block |
|
|
block discarded – undo |
|
160
|
161
|
/** |
|
161
|
162
|
* returns the result or NULL in case of an error |
|
162
|
163
|
* @param CS_REST_Wrapper_Result |
|
|
164
|
+ * @param CS_REST_Wrapper_Result $result |
|
|
165
|
+ * @param string $apiCall |
|
163
|
166
|
* @return Mixed | Null |
|
164
|
167
|
*/ |
|
165
|
168
|
protected function returnResult($result, $apiCall, $description) |
|
@@ -517,7 +520,8 @@ discard block |
|
|
block discarded – undo |
|
517
|
520
|
* @param string $listID - list ID |
|
518
|
521
|
* @param string $type - type of custom field |
|
519
|
522
|
* @param string $title - field type |
|
520
|
|
- * @param array $options - options for dropdown field type |
|
|
523
|
+ * @param string[] $options - options for dropdown field type |
|
|
524
|
+ * @param boolean $visible |
|
521
|
525
|
* |
|
522
|
526
|
* @return CS_REST_Wrapper_Result A successful response will be the key of the newly created custom field |
|
523
|
527
|
*/ |
|
@@ -626,7 +630,7 @@ discard block |
|
|
block discarded – undo |
|
626
|
630
|
* Gets all active subscribers added since the given date |
|
627
|
631
|
* |
|
628
|
632
|
* @param Int $listID |
|
629
|
|
- * @param string $daysAgo The date to start getting subscribers from |
|
|
633
|
+ * @param integer $daysAgo The date to start getting subscribers from |
|
630
|
634
|
* @param int $page The page number to get |
|
631
|
635
|
* @param int $pageSize The number of records per page |
|
632
|
636
|
* @param string $sortByField ('EMAIL', 'NAME', 'DATE') |
|
@@ -679,7 +683,7 @@ discard block |
|
|
block discarded – undo |
|
679
|
683
|
* Gets all unconfirmed subscribers added since the given date |
|
680
|
684
|
* |
|
681
|
685
|
* @param Int $listID |
|
682
|
|
- * @param string $daysAgo The date to start getting subscribers from |
|
|
686
|
+ * @param integer $daysAgo The date to start getting subscribers from |
|
683
|
687
|
* @param int $page The page number to get |
|
684
|
688
|
* @param int $pageSize The number of records per page |
|
685
|
689
|
* @param string $sortByField ('EMAIL', 'NAME', 'DATE') |
|
@@ -732,7 +736,7 @@ discard block |
|
|
block discarded – undo |
|
732
|
736
|
* Gets all bounced subscribers who have bounced out since the given date |
|
733
|
737
|
* |
|
734
|
738
|
* @param Int $listID |
|
735
|
|
- * @param string $daysAgo The date to start getting subscribers from |
|
|
739
|
+ * @param integer $daysAgo The date to start getting subscribers from |
|
736
|
740
|
* @param int $page The page number to get |
|
737
|
741
|
* @param int $pageSize The number of records per page |
|
738
|
742
|
* @param string $sortByField ('EMAIL', 'NAME', 'DATE') |
|
@@ -786,7 +790,7 @@ discard block |
|
|
block discarded – undo |
|
786
|
790
|
* Gets all unsubscribed subscribers who have unsubscribed since the given date |
|
787
|
791
|
* |
|
788
|
792
|
* @param Int $listID |
|
789
|
|
- * @param string $daysAgo The date to start getting subscribers from |
|
|
793
|
+ * @param integer $daysAgo The date to start getting subscribers from |
|
790
|
794
|
* @param int $page The page number to get |
|
791
|
795
|
* @param int $pageSize The number of records per page |
|
792
|
796
|
* @param string $sortByField ('EMAIL', 'NAME', 'DATE') |
|
@@ -839,7 +843,7 @@ discard block |
|
|
block discarded – undo |
|
839
|
843
|
* Gets all unsubscribed subscribers who have unsubscribed since the given date |
|
840
|
844
|
* |
|
841
|
845
|
* @param Int $listID |
|
842
|
|
- * @param string $daysAgo The date to start getting subscribers from |
|
|
846
|
+ * @param integer $daysAgo The date to start getting subscribers from |
|
843
|
847
|
* @param int $page The page number to get |
|
844
|
848
|
* @param int $pageSize The number of records per page |
|
845
|
849
|
* @param string $sortByField ('EMAIL', 'NAME', 'DATE') |
|
@@ -898,7 +902,8 @@ discard block |
|
|
block discarded – undo |
|
898
|
902
|
* @param string $confirmationSuccessPage - The page to redirect subscribers to when they confirm their subscription |
|
899
|
903
|
* @param string $unsubscribeSetting - Unsubscribe setting must be CS_REST_LIST_UNSUBSCRIBE_SETTING_ALL_CLIENT_LISTS or CS_REST_LIST_UNSUBSCRIBE_SETTING_ONLY_THIS_LIST. See the documentation for details: http://www.campaignmonitor.com/api/lists/#creating_a_list |
|
900
|
904
|
* @param boolean $addUnsubscribesToSuppList - When UnsubscribeSetting is CS_REST_LIST_UNSUBSCRIBE_SETTING_ALL_CLIENT_LISTS, whether unsubscribes from this list should be added to the suppression list. |
|
901
|
|
- * @param boolean $acrubActiveWithSuppList - When UnsubscribeSetting is CS_REST_LIST_UNSUBSCRIBE_SETTING_ALL_CLIENT_LISTS, whether active subscribers should be scrubbed against the suppression list. |
|
|
905
|
+ * @param boolean $scrubActiveWithSuppList - When UnsubscribeSetting is CS_REST_LIST_UNSUBSCRIBE_SETTING_ALL_CLIENT_LISTS, whether active subscribers should be scrubbed against the suppression list. |
|
|
906
|
+ * @param CS_REST_Wrapper_Result $listID |
|
902
|
907
|
* |
|
903
|
908
|
* @return CS_REST_Wrapper_Result A successful response will be empty |
|
904
|
909
|
*/ |
|
@@ -1208,7 +1213,7 @@ discard block |
|
|
block discarded – undo |
|
1208
|
1213
|
* Gets all unsubscribes recorded for a campaign since the provided date |
|
1209
|
1214
|
* |
|
1210
|
1215
|
* @param int $campaignID ID of the Campaign |
|
1211
|
|
- * @param string $daysAgo The date to start getting subscribers from |
|
|
1216
|
+ * @param integer $daysAgo The date to start getting subscribers from |
|
1212
|
1217
|
* @param int $page The page number to get |
|
1213
|
1218
|
* @param int $pageSize The number of records per page |
|
1214
|
1219
|
* @param string $sortByField ('EMAIL', 'NAME', 'DATE') |
|
@@ -1279,6 +1284,7 @@ discard block |
|
|
block discarded – undo |
|
1279
|
1284
|
* email address belongs. |
|
1280
|
1285
|
* |
|
1281
|
1286
|
* @param string | Member $email Subscriber's email address (or Member) |
|
|
1287
|
+ * @param null|SS_Object $member |
|
1282
|
1288
|
* |
|
1283
|
1289
|
* @return CS_REST_Wrapper_Result A successful response will be an object of the form |
|
1284
|
1290
|
* array( |
|
@@ -1314,7 +1320,7 @@ discard block |
|
|
block discarded – undo |
|
1314
|
1320
|
* @param Array $customFields |
|
1315
|
1321
|
* @param array $customFields The subscriber details to use during creation. |
|
1316
|
1322
|
* @param boolean $resubscribe Whether we should resubscribe this subscriber if they already exist in the list |
|
1317
|
|
- * @param boolean $RestartSubscriptionBasedAutoResponders Whether we should restart subscription based auto responders which are sent when the subscriber first subscribes to a list. |
|
|
1323
|
+ * @param boolean $restartSubscriptionBasedAutoResponders Whether we should restart subscription based auto responders which are sent when the subscriber first subscribes to a list. |
|
1318
|
1324
|
* |
|
1319
|
1325
|
* NOTE that for the custom fields they need to be formatted like this: |
|
1320
|
1326
|
* Array( |
|
@@ -1427,9 +1433,9 @@ discard block |
|
|
block discarded – undo |
|
1427
|
1433
|
* given email not existing in the list. |
|
1428
|
1434
|
* |
|
1429
|
1435
|
* @param Int $listID |
|
1430
|
|
- * @param ArraySet $memberSet - list of mebers |
|
|
1436
|
+ * @param ArraySet $membersSet - list of mebers |
|
1431
|
1437
|
* @param array $customFields The subscriber details to use during creation. Each array item needs to have the same key as the member ID - e.g. array( 123 => array( [custom fields here] ), 456 => array( [custom fields here] ) ) |
|
1432
|
|
- * @param $resubscribe Whether we should resubscribe any existing subscribers |
|
|
1438
|
+ * @param boolean $resubscribe Whether we should resubscribe any existing subscribers |
|
1433
|
1439
|
* @param $queueSubscriptionBasedAutoResponders By default, subscription based auto responders do not trigger during an import. Pass a value of true to override this behaviour |
|
1434
|
1440
|
* @param $restartSubscriptionBasedAutoResponders By default, subscription based auto responders will not be restarted |
|
1435
|
1441
|
* |
|
@@ -1494,6 +1500,7 @@ discard block |
|
|
block discarded – undo |
|
1494
|
1500
|
/** |
|
1495
|
1501
|
* @param Int $listID |
|
1496
|
1502
|
* @param Member | String $member - email address or Member Object |
|
|
1503
|
+ * @param DataObject|null $member |
|
1497
|
1504
|
* |
|
1498
|
1505
|
* @return CS_REST_Wrapper_Result A successful response will be empty |
|
1499
|
1506
|
*/ |
|
@@ -1592,6 +1599,7 @@ discard block |
|
|
block discarded – undo |
|
1592
|
1599
|
* |
|
1593
|
1600
|
* @param Int $listID |
|
1594
|
1601
|
* @param Member | String $member |
|
|
1602
|
+ * @param DataObject|null $member |
|
1595
|
1603
|
* |
|
1596
|
1604
|
* @return Boolean |
|
1597
|
1605
|
*/ |
|
@@ -1661,6 +1669,7 @@ discard block |
|
|
block discarded – undo |
|
1661
|
1669
|
* |
|
1662
|
1670
|
* @param Int $listID |
|
1663
|
1671
|
* @param Member | String $member |
|
|
1672
|
+ * @param DataObject|null $member |
|
1664
|
1673
|
* |
|
1665
|
1674
|
* @return CS_REST_Wrapper_Result A successful response will be an object of the form |
|
1666
|
1675
|
* { |