Skip to content

Commit

Permalink
Merge pull request #18 from izotopSVK/master
Browse files Browse the repository at this point in the history
function Delete Members From Static Segment
  • Loading branch information
bakura10 committed Jun 26, 2014
2 parents 061c71e + f90f792 commit 81c99c2
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ LIST RELATED METHODS:
* array deleteListMergeVar(array $args = array()) [doc](http://apidocs.mailchimp.com/api/2.0/lists/merge-var-del.php)
* array deleteListSegment(array $args = array()) [doc](http://apidocs.mailchimp.com/api/2.0/lists/segment-del.php)
* array deleteListWebhook(array $args = array()) [doc](http://apidocs.mailchimp.com/api/2.0/lists/webhook-del.php)
* array deleteStaticSegmentMembers(array $args = array()) [doc](http://apidocs.mailchimp.com/api/2.0/lists/static-segment-members-del.php)
* array getAbuseReports(array $args = array()) [doc](http://apidocs.mailchimp.com/api/2.0/lists/abuse-reports.php)
* array getInterestGroupings(array $args = array()) [doc](http://apidocs.mailchimp.com/api/2.0/lists/interest-groupings.php)
* array getListActivity(array $args = array()) [doc](http://apidocs.mailchimp.com/api/2.0/lists/activity.php)
Expand Down
1 change: 1 addition & 0 deletions src/ZfrMailChimp/Client/MailChimpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
* @method array deleteListMergeVar(array $args = array()) {@command MailChimp DeleteListMergeVar}
* @method array deleteListSegment(array $args = array()) {@command MailChimp DeleteListSegment}
* @method array deleteListWebhook(array $args = array()) {@command MailChimp DeleteListWebhook}
* @method array deleteStaticSegmentMembers(array $args = array()) {@command MailChimp DeleteStaticSegmentMembers}
* @method array getAbuseReports(array $args = array()) {@command MailChimp GetAbuseReports}
* @method array getInterestGroupings(array $args = array()) {@command MailChimp GetInterestGroupings}
* @method array getListActivity(array $args = array()) {@command MailChimp GetListActivity}
Expand Down
34 changes: 34 additions & 0 deletions src/ZfrMailChimp/Client/ServiceDescription/MailChimp-2.0.php
Original file line number Diff line number Diff line change
Expand Up @@ -971,6 +971,40 @@
)
)
),

'DeleteStaticSegmentMembers' => array(
'httpMethod' => 'POST',
'uri' => 'lists/static-segment-members-del.json',
'summary' => 'Delete a members from list segment',
'documentationUrl' => 'http://apidocs.mailchimp.com/api/2.0/lists/static-segment-members-del.php',
'parameters' => array(
'api_key' => array(
'description' => 'MailChimp API key',
'location' => 'json',
'type' => 'string',
'sentAs' => 'apikey',
'required' => true
),
'id' => array(
'description' => 'The list id to connect to',
'location' => 'json',
'type' => 'string',
'required' => true
),
'seg_id' => array(
'description' => 'The segment id to delete members from',
'location' => 'json',
'type' => 'integer',
'required' => true
),
'batch' => array(
'description' => 'Array of structs for each address',
'location' => 'json',
'type' => 'array',
'required' => true
),
)
),

'GetAbuseReports' => array(
'httpMethod' => 'POST',
Expand Down

0 comments on commit 81c99c2

Please sign in to comment.