Greetings from Mailjet



Greetings from Mailjet

0 0


MJ-HackTheBank

Short set of slides for Hack The Bank Belfast

On Github swooop / MJ-HackTheBank

Greetings from Mailjet

Developer Evangelist / Beard - tsims@mailjet.com / @4thfloor_monkey

Find the slides at : mjhackthebank.herokuapp.com

Who are Mailjet?

  • From the ground up email solution

  • Transactional Email

  • Newsletter campaigns

  • Analytics

  • A nice RESTful API

Sign up at Mailjet.com

Grab your API key... ~>>>

As soon as you log in, you should be on the dashboard page go here

Like magic...

Getting started with the API

Simple to add contacts

curl -X POST --user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
	https://api.mailjet.com/v3/REST/contact \
	-H "Content-Type: application/json" \
	-d '{"Email":"johnsmith@example.com"}'

Simple sending

						curl -X POST --user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
    https://api.mailjet.com/v3/send/message \
    -F from= "Count Mailjet >count.mailjet@example.com>" \
    -F to=mr.mailjet@example.com \
    -F subject='Hello World!' \
    -F text='Greetings from Mailjet.'
					

Write less code

github.com/mailjet

API Developer Docs:

DEV.MAILJET.COM

You can also have fun with the Parse API

Set up a target webhook via the API

curl -X POST --user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
        http://api.mailjet.com/v3/REST/parseroute \
        -d '{"URL":"http://your-domain/webhook"}' \
        -H "Content-Type: application/json"
This POST request will return JSON with the email address users can send to, to activate the webhook

When they email it....

Happy hacking

Free stuff for you!

MJLONDON2015

3 months free Bronze Premium

To the pub! No wait, hack!