{"action":"created","issue":{"url":"https://api.github.com/repos/skovmand/mailchimp-laravel/issues/2","labels_url":"https://api.github.com/repos/skovmand/mailchimp-laravel/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/skovmand/mailchimp-laravel/issues/2/comments","events_url":"https://api.github.com/repos/skovmand/mailchimp-laravel/issues/2/events","html_url":"https://github.com/skovmand/mailchimp-laravel/issues/2","id":64124224,"number":2,"title":"Associative array required for lists subscribe","user":{"login":"mabasic","id":1839930,"avatar_url":"https://avatars.githubusercontent.com/u/1839930?v=3","gravatar_id":"","url":"https://api.github.com/users/mabasic","html_url":"https://github.com/mabasic","followers_url":"https://api.github.com/users/mabasic/followers","following_url":"https://api.github.com/users/mabasic/following{/other_user}","gists_url":"https://api.github.com/users/mabasic/gists{/gist_id}","starred_url":"https://api.github.com/users/mabasic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mabasic/subscriptions","organizations_url":"https://api.github.com/users/mabasic/orgs","repos_url":"https://api.github.com/users/mabasic/repos","events_url":"https://api.github.com/users/mabasic/events{/privacy}","received_events_url":"https://api.github.com/users/mabasic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-24T23:12:28Z","updated_at":"2015-03-25T08:37:34Z","closed_at":null,"body":"Hi, first of all congrats on this package, it is very nice.\r\n\r\nI just wanted to point out that in your readme it says\r\n\r\n```\r\n$this->mailchimp->lists->subscribe($this->listId, $email);\r\n```\r\n\r\nbut it should be:\r\n\r\n```\r\n$this->mailchimp->lists->subscribe($this->listId, ['email' => $email]);\r\n```\r\n\r\nWhen I tried it your way I kept getting this error:\r\n\r\n```\r\nValidation error: {\"email\":\"Please enter a struct\\/associative array\"}\r\n```"},"comment":{"url":"https://api.github.com/repos/skovmand/mailchimp-laravel/issues/comments/85925517","html_url":"https://github.com/skovmand/mailchimp-laravel/issues/2#issuecomment-85925517","issue_url":"https://api.github.com/repos/skovmand/mailchimp-laravel/issues/2","id":85925517,"user":{"login":"skovmand","id":1387518,"avatar_url":"https://avatars.githubusercontent.com/u/1387518?v=3","gravatar_id":"","url":"https://api.github.com/users/skovmand","html_url":"https://github.com/skovmand","followers_url":"https://api.github.com/users/skovmand/followers","following_url":"https://api.github.com/users/skovmand/following{/other_user}","gists_url":"https://api.github.com/users/skovmand/gists{/gist_id}","starred_url":"https://api.github.com/users/skovmand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skovmand/subscriptions","organizations_url":"https://api.github.com/users/skovmand/orgs","repos_url":"https://api.github.com/users/skovmand/repos","events_url":"https://api.github.com/users/skovmand/events{/privacy}","received_events_url":"https://api.github.com/users/skovmand/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T08:37:34Z","updated_at":"2015-03-25T08:37:34Z","body":"Hi!\r\n\r\nYou're right, the example is wrong. \r\n\r\nMy package just sends the message directly to the Mailchimp PHP Package, so the parameters for subscribe are those described in their Api: https://apidocs.mailchimp.com/api/2.0/lists/subscribe.php\r\n\r\nI'll fix it later today.\r\n\r\nNiels."}}