{"action":"closed","issue":{"url":"https://api.github.com/repos/SparkPost/node-sparkpost/issues/75","labels_url":"https://api.github.com/repos/SparkPost/node-sparkpost/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/SparkPost/node-sparkpost/issues/75/comments","events_url":"https://api.github.com/repos/SparkPost/node-sparkpost/issues/75/events","html_url":"https://github.com/SparkPost/node-sparkpost/issues/75","id":87439467,"number":75,"title":"Transmissions API Examples are out of date","user":{"login":"jmartin4563","id":3333180,"avatar_url":"https://avatars.githubusercontent.com/u/3333180?v=3","gravatar_id":"","url":"https://api.github.com/users/jmartin4563","html_url":"https://github.com/jmartin4563","followers_url":"https://api.github.com/users/jmartin4563/followers","following_url":"https://api.github.com/users/jmartin4563/following{/other_user}","gists_url":"https://api.github.com/users/jmartin4563/gists{/gist_id}","starred_url":"https://api.github.com/users/jmartin4563/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmartin4563/subscriptions","organizations_url":"https://api.github.com/users/jmartin4563/orgs","repos_url":"https://api.github.com/users/jmartin4563/repos","events_url":"https://api.github.com/users/jmartin4563/events{/privacy}","received_events_url":"https://api.github.com/users/jmartin4563/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SparkPost/node-sparkpost/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-11T18:27:00Z","updated_at":"2015-06-15T19:52:27Z","closed_at":"2015-06-15T19:52:27Z","body":"the toApiFormat is flawed, the api requires that the template_id field live inside the content stanza of the post body to send a transmission, but the toApiFormat function does not construct the body in the way it is supposed. It will always result in a HTTP 422 from the API."}}