{"action":"opened","issue":{"url":"https://api.github.com/repos/freerobby/sendgrid_toolkit/issues/47","repository_url":"https://api.github.com/repos/freerobby/sendgrid_toolkit","labels_url":"https://api.github.com/repos/freerobby/sendgrid_toolkit/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/freerobby/sendgrid_toolkit/issues/47/comments","events_url":"https://api.github.com/repos/freerobby/sendgrid_toolkit/issues/47/events","html_url":"https://github.com/freerobby/sendgrid_toolkit/issues/47","id":162391155,"number":47,"title":"Adding multiple recipients to a legacy newletter recipient list fails","user":{"login":"cyclotron3k","id":3222878,"avatar_url":"https://avatars.githubusercontent.com/u/3222878?v=3","gravatar_id":"","url":"https://api.github.com/users/cyclotron3k","html_url":"https://github.com/cyclotron3k","followers_url":"https://api.github.com/users/cyclotron3k/followers","following_url":"https://api.github.com/users/cyclotron3k/following{/other_user}","gists_url":"https://api.github.com/users/cyclotron3k/gists{/gist_id}","starred_url":"https://api.github.com/users/cyclotron3k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyclotron3k/subscriptions","organizations_url":"https://api.github.com/users/cyclotron3k/orgs","repos_url":"https://api.github.com/users/cyclotron3k/repos","events_url":"https://api.github.com/users/cyclotron3k/events{/privacy}","received_events_url":"https://api.github.com/users/cyclotron3k/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-27T07:40:56Z","updated_at":"2016-06-27T07:40:56Z","closed_at":null,"body":"The documentation for SendgridToolkit::ListEmails says you can add single recipients to a list, or an array of recipients, but adding an array doesn't seem to work:\r\n\r\n- `abstract_sendgrid_client.rb:17` forces all data into the URL. It's a POST request, and data should be in the body instead of the URL. It works, but you're limited to a few thousand characters instead of a thousand recipients.\r\n- The data is getting serialized strangely. `data: [{a:1,b:2}, {a:3,c:4}]` becomes `data[][a]=1&data[][b]=2&data[][a]=3&data[][c]=4` instead of `data[]=%7B%22a%22%3A1%2C%22b%22%3A2%7D&data[]=%7B%22a%22%3A3%2C%22c%22%3A4%7D`\r\n\r\nSendgrid responds with `{\"error\": \"error in data: data is required\"}`"}}
{"actor":{"display_login":"cyclotron3k"}}