File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -68,13 +68,20 @@ public function removeSubscriber($groupId, $subscriberId)
68
68
*
69
69
* @param int $groupId
70
70
* @param array $subscribers
71
+ * @param array $options
71
72
* @return [type]
72
73
*/
73
- public function importSubscribers ($ groupId , $ subscribers )
74
- {
74
+ public function importSubscribers (
75
+ $ groupId ,
76
+ $ subscribers ,
77
+ $ options = [
78
+ 'resubscribe ' => false ,
79
+ 'autoresponders ' => false
80
+ ]
81
+ ) {
75
82
$ endpoint = $ this ->endpoint . '/ ' . $ groupId . '/subscribers/import ' ;
76
83
77
- $ response = $ this ->restClient ->post ($ endpoint , ['subscribers ' => $ subscribers ]);
84
+ $ response = $ this ->restClient ->post ($ endpoint , array_merge ( ['subscribers ' => $ subscribers ], $ options ) );
78
85
79
86
return $ response ['body ' ];
80
87
}
You can’t perform that action at this time.
0 commit comments