From 3f2882154c80cb74e782463bf58aee8dee0b438c Mon Sep 17 00:00:00 2001 From: izotopSVK Date: Thu, 26 Jun 2014 12:49:08 +0200 Subject: [PATCH 1/3] Delete members from static segment --- .../ServiceDescription/MailChimp-2.0.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/src/ZfrMailChimp/Client/ServiceDescription/MailChimp-2.0.php b/src/ZfrMailChimp/Client/ServiceDescription/MailChimp-2.0.php index 12e1ae0..57a4db0 100644 --- a/src/ZfrMailChimp/Client/ServiceDescription/MailChimp-2.0.php +++ b/src/ZfrMailChimp/Client/ServiceDescription/MailChimp-2.0.php @@ -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', From 0bd3d3c0969ace43b07dbd66ac75c3fdb5b978be Mon Sep 17 00:00:00 2001 From: izotopSVK Date: Thu, 26 Jun 2014 12:50:06 +0200 Subject: [PATCH 2/3] Delete members from static segment --- src/ZfrMailChimp/Client/MailChimpClient.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ZfrMailChimp/Client/MailChimpClient.php b/src/ZfrMailChimp/Client/MailChimpClient.php index 26ae7c0..002b1d6 100644 --- a/src/ZfrMailChimp/Client/MailChimpClient.php +++ b/src/ZfrMailChimp/Client/MailChimpClient.php @@ -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} From f90f792028e2795758efcd5f10a47931f2906757 Mon Sep 17 00:00:00 2001 From: izotopSVK Date: Thu, 26 Jun 2014 12:55:10 +0200 Subject: [PATCH 3/3] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 78fce02..e36cdcd 100644 --- a/README.md +++ b/README.md @@ -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)