{"action":"created","issue":{"url":"https://api.github.com/repos/mailjet/mailjet-gem/issues/80","repository_url":"https://api.github.com/repos/mailjet/mailjet-gem","labels_url":"https://api.github.com/repos/mailjet/mailjet-gem/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/mailjet/mailjet-gem/issues/80/comments","events_url":"https://api.github.com/repos/mailjet/mailjet-gem/issues/80/events","html_url":"https://github.com/mailjet/mailjet-gem/issues/80","id":180757066,"number":80,"title":"Send campaigns through the API","user":{"login":"juliendemoutiez","id":4748030,"avatar_url":"https://avatars.githubusercontent.com/u/4748030?v=3","gravatar_id":"","url":"https://api.github.com/users/juliendemoutiez","html_url":"https://github.com/juliendemoutiez","followers_url":"https://api.github.com/users/juliendemoutiez/followers","following_url":"https://api.github.com/users/juliendemoutiez/following{/other_user}","gists_url":"https://api.github.com/users/juliendemoutiez/gists{/gist_id}","starred_url":"https://api.github.com/users/juliendemoutiez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliendemoutiez/subscriptions","organizations_url":"https://api.github.com/users/juliendemoutiez/orgs","repos_url":"https://api.github.com/users/juliendemoutiez/repos","events_url":"https://api.github.com/users/juliendemoutiez/events{/privacy}","received_events_url":"https://api.github.com/users/juliendemoutiez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-10-03T21:54:36Z","updated_at":"2016-10-18T09:24:15Z","closed_at":null,"body":"Hi,\r\n\r\nI would like to send a newsletter using the API, but I'm not really sure how to proceed.\r\n\r\nBasically, I already have my contact list so I would like to create a template on Mailjet, and then fill some field through the API (text and images). The best would be to reuse the same template every week and change the text fields and images.\r\n\r\nIs this possible ? If yes, could you please tell me the steps I need to follow ?\r\n\r\nThank you very much,\r\n\r\nJ"},"comment":{"url":"https://api.github.com/repos/mailjet/mailjet-gem/issues/comments/254454087","html_url":"https://github.com/mailjet/mailjet-gem/issues/80#issuecomment-254454087","issue_url":"https://api.github.com/repos/mailjet/mailjet-gem/issues/80","id":254454087,"user":{"login":"Zhivko-Mailjet","id":22739693,"avatar_url":"https://avatars.githubusercontent.com/u/22739693?v=3","gravatar_id":"","url":"https://api.github.com/users/Zhivko-Mailjet","html_url":"https://github.com/Zhivko-Mailjet","followers_url":"https://api.github.com/users/Zhivko-Mailjet/followers","following_url":"https://api.github.com/users/Zhivko-Mailjet/following{/other_user}","gists_url":"https://api.github.com/users/Zhivko-Mailjet/gists{/gist_id}","starred_url":"https://api.github.com/users/Zhivko-Mailjet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zhivko-Mailjet/subscriptions","organizations_url":"https://api.github.com/users/Zhivko-Mailjet/orgs","repos_url":"https://api.github.com/users/Zhivko-Mailjet/repos","events_url":"https://api.github.com/users/Zhivko-Mailjet/events{/privacy}","received_events_url":"https://api.github.com/users/Zhivko-Mailjet/received_events","type":"User","site_admin":false},"created_at":"2016-10-18T09:24:14Z","updated_at":"2016-10-18T09:24:14Z","body":"@judemoutiez Sorry for the confusion created. \r\n\r\nYou can indeed create template in Passport and send it through API, but keep in mind the following:\r\n\r\n- In order to use customized variables, the message with template should be sent as transactional using our Send API (to specifc recipient, not to contacts list). Templating language is available for transactional messages only - https://dev.mailjet.com/guides/#use-the-template-in-send-api\r\n\r\n- If you use our Newsletter API to send marketing campaings(to contacts list), you can not use templating language in there. You can use contact data - https://dev.mailjet.com/guides/?shell#personalisation-add-contact-properties\r\n\r\nAbout MJML and Ruby, I believe you will find the article below pretty useful:\r\nhttp://dev.edenspiekermann.com/2016/06/02/using-mjml-in-rails/\r\n\r\nHope I was able to clear your doubts."}}
{"actor":{"display_login":"Zhivko-Mailjet"}}