{"action":"created","issue":{"url":"https://api.github.com/repos/DoSomething/quasar/issues/81","repository_url":"https://api.github.com/repos/DoSomething/quasar","labels_url":"https://api.github.com/repos/DoSomething/quasar/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/DoSomething/quasar/issues/81/comments","events_url":"https://api.github.com/repos/DoSomething/quasar/issues/81/events","html_url":"https://github.com/DoSomething/quasar/issues/81","id":142446464,"number":81,"title":"Fix Broken Mailchimp API Call for Unsubscribes","user":{"login":"namimody","id":12396076,"avatar_url":"https://avatars.githubusercontent.com/u/12396076?v=3","gravatar_id":"","url":"https://api.github.com/users/namimody","html_url":"https://github.com/namimody","followers_url":"https://api.github.com/users/namimody/followers","following_url":"https://api.github.com/users/namimody/following{/other_user}","gists_url":"https://api.github.com/users/namimody/gists{/gist_id}","starred_url":"https://api.github.com/users/namimody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namimody/subscriptions","organizations_url":"https://api.github.com/users/namimody/orgs","repos_url":"https://api.github.com/users/namimody/repos","events_url":"https://api.github.com/users/namimody/events{/privacy}","received_events_url":"https://api.github.com/users/namimody/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DoSomething/quasar/labels/%23ingestion","name":"#ingestion","color":"0052cc"},{"url":"https://api.github.com/repos/DoSomething/quasar/labels/large","name":"large","color":"d4c5f9"}],"state":"open","locked":false,"assignee":{"login":"sheyd","id":4562565,"avatar_url":"https://avatars.githubusercontent.com/u/4562565?v=3","gravatar_id":"","url":"https://api.github.com/users/sheyd","html_url":"https://github.com/sheyd","followers_url":"https://api.github.com/users/sheyd/followers","following_url":"https://api.github.com/users/sheyd/following{/other_user}","gists_url":"https://api.github.com/users/sheyd/gists{/gist_id}","starred_url":"https://api.github.com/users/sheyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sheyd/subscriptions","organizations_url":"https://api.github.com/users/sheyd/orgs","repos_url":"https://api.github.com/users/sheyd/repos","events_url":"https://api.github.com/users/sheyd/events{/privacy}","received_events_url":"https://api.github.com/users/sheyd/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/DoSomething/quasar/milestones/13","html_url":"https://github.com/DoSomething/quasar/milestones/%239:%20Oh,%20The%20Places%20You'll%20Go!","labels_url":"https://api.github.com/repos/DoSomething/quasar/milestones/13/labels","id":1755582,"number":13,"title":"#9: Oh, The Places You'll Go!","description":"","creator":{"login":"namimody","id":12396076,"avatar_url":"https://avatars.githubusercontent.com/u/12396076?v=3","gravatar_id":"","url":"https://api.github.com/users/namimody","html_url":"https://github.com/namimody","followers_url":"https://api.github.com/users/namimody/followers","following_url":"https://api.github.com/users/namimody/following{/other_user}","gists_url":"https://api.github.com/users/namimody/gists{/gist_id}","starred_url":"https://api.github.com/users/namimody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namimody/subscriptions","organizations_url":"https://api.github.com/users/namimody/orgs","repos_url":"https://api.github.com/users/namimody/repos","events_url":"https://api.github.com/users/namimody/events{/privacy}","received_events_url":"https://api.github.com/users/namimody/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":6,"state":"open","created_at":"2016-05-09T14:23:53Z","updated_at":"2016-05-17T15:40:31Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-03-21T19:25:01Z","updated_at":"2016-05-18T15:55:27Z","closed_at":null,"body":"#### Issue:\r\n\r\nWe're having issues accessing \"unsubscribe\" members using the following Export API call:\r\n\r\nhttps://us4.api.mailchimp.com/export/1.0/list?apikey=<redacted>&id=<redated>&status=unsubscribed.\r\n\r\nThe following error is returned:\r\n\r\nFatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 78 bytes) in /opt/mailchimp/10.8/app/models/MemberList.php on line 2812\r\n\r\n#### Response from Mailchimp:\r\n\r\nAdding additional query string parameters such as &status=unsubscribed result in a more taxing query on the API. We're sorry for any inconvenience this is causing.\r\n\r\nAbout 1 year ago, MailChimp released API v3.0 into open beta:\r\n\r\nhttp://devs.mailchimp.com/blog/api-v3-0-enters-open-beta/\r\n\r\nSince then, previous versions of the API have been deprecated (to be completely discontinued in 9 months at the end of 2016), and we've included a corollary to the basic function of the export API through API v3.0's Batch Operations.\r\n\r\nWhile we realize this is an issue with the Export API, to be transparent because the same result can be achieved through API v3.0 and the export API is set to be discontinued, we'll be working on improving 3.0 which we feel will have a more lasting impact for our users.\r\n\r\nMoving forward, we'd recommend taking advantage of the new Batch Operation. We've got an excellent guide in our API documentation here:\r\n\r\nhttp://developer.mailchimp.com/documentation/mailchimp/guides/how-to-use-batch-operations\r\n\r\nTo get a list of unsubscribed emails, API v3.0 users can create a batch of operations to GET /lists/{list_id}/members?status=subscribed\r\n\r\nhttp://developer.mailchimp.com/documentation/mailchimp/reference/lists/members/#"},"comment":{"url":"https://api.github.com/repos/DoSomething/quasar/issues/comments/220072534","html_url":"https://github.com/DoSomething/quasar/issues/81#issuecomment-220072534","issue_url":"https://api.github.com/repos/DoSomething/quasar/issues/81","id":220072534,"user":{"login":"sheyd","id":4562565,"avatar_url":"https://avatars.githubusercontent.com/u/4562565?v=3","gravatar_id":"","url":"https://api.github.com/users/sheyd","html_url":"https://github.com/sheyd","followers_url":"https://api.github.com/users/sheyd/followers","following_url":"https://api.github.com/users/sheyd/following{/other_user}","gists_url":"https://api.github.com/users/sheyd/gists{/gist_id}","starred_url":"https://api.github.com/users/sheyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sheyd/subscriptions","organizations_url":"https://api.github.com/users/sheyd/orgs","repos_url":"https://api.github.com/users/sheyd/repos","events_url":"https://api.github.com/users/sheyd/events{/privacy}","received_events_url":"https://api.github.com/users/sheyd/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T15:55:27Z","updated_at":"2016-05-18T15:55:27Z","body":"Ticket open with Mailchimp. They've turned on some backend logging to get additional info on why batch submissions for member unsubscribes are not returning any results. Just sent some requests test data to Support."}}