{"action":"created","issue":{"url":"https://api.github.com/repos/SparkPost/java-sparkpost/issues/27","repository_url":"https://api.github.com/repos/SparkPost/java-sparkpost","labels_url":"https://api.github.com/repos/SparkPost/java-sparkpost/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/SparkPost/java-sparkpost/issues/27/comments","events_url":"https://api.github.com/repos/SparkPost/java-sparkpost/issues/27/events","html_url":"https://github.com/SparkPost/java-sparkpost/issues/27","id":144699760,"number":27,"title":"Examples don't work 400 and 422 returned","user":{"login":"ggreenblat","id":13394282,"avatar_url":"https://avatars.githubusercontent.com/u/13394282?v=3","gravatar_id":"","url":"https://api.github.com/users/ggreenblat","html_url":"https://github.com/ggreenblat","followers_url":"https://api.github.com/users/ggreenblat/followers","following_url":"https://api.github.com/users/ggreenblat/following{/other_user}","gists_url":"https://api.github.com/users/ggreenblat/gists{/gist_id}","starred_url":"https://api.github.com/users/ggreenblat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggreenblat/subscriptions","organizations_url":"https://api.github.com/users/ggreenblat/orgs","repos_url":"https://api.github.com/users/ggreenblat/repos","events_url":"https://api.github.com/users/ggreenblat/events{/privacy}","received_events_url":"https://api.github.com/users/ggreenblat/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-03-30T19:42:22Z","updated_at":"2016-03-31T18:57:49Z","closed_at":"2016-03-31T05:46:21Z","body":"Hi,\r\n\r\n Neither the basic not the template example from the README.md works. I get a 400 error on the basic example and 422 on the template example. There is no detail provided as to why I get the errors. A simple curl sample works though. I have setup an API key.\r\n\r\nI also added the template ID to the example for templates in the README.md but still get a 422\r\n\r\n{\r\n  \"recipients\": [\r\n    {\r\n      \"address\": {\r\n        \"email\": \"somemail@gmail.com\"\r\n      }\r\n    }\r\n  ],\r\n  \"substitution_data\": {\r\n    \"from\": \"noreply@domain.com\"\r\n  },\r\n  \"return_path\": \"noreply@domain.com\",\r\n  \"content\": {\r\n    \"template_id\": \"my-first-email\",\r\n    \"email_rfc822\": \"testing an email here\"\r\n  }\r\n}"},"comment":{"url":"https://api.github.com/repos/SparkPost/java-sparkpost/issues/comments/204078198","html_url":"https://github.com/SparkPost/java-sparkpost/issues/27#issuecomment-204078198","issue_url":"https://api.github.com/repos/SparkPost/java-sparkpost/issues/27","id":204078198,"user":{"login":"yepher","id":1359331,"avatar_url":"https://avatars.githubusercontent.com/u/1359331?v=3","gravatar_id":"","url":"https://api.github.com/users/yepher","html_url":"https://github.com/yepher","followers_url":"https://api.github.com/users/yepher/followers","following_url":"https://api.github.com/users/yepher/following{/other_user}","gists_url":"https://api.github.com/users/yepher/gists{/gist_id}","starred_url":"https://api.github.com/users/yepher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yepher/subscriptions","organizations_url":"https://api.github.com/users/yepher/orgs","repos_url":"https://api.github.com/users/yepher/repos","events_url":"https://api.github.com/users/yepher/events{/privacy}","received_events_url":"https://api.github.com/users/yepher/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T18:57:49Z","updated_at":"2016-03-31T18:57:49Z","body":"Great, glad to hear it helped. Let me know if you have any other problems. You can reach out to me on Slack if you need to. \r\n\r\nYou can join the community here: http://slack.sparkpost.com\r\n\r\n"}}