• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
The Power of Email APIs
 

The Power of Email APIs

on

  • 845 views

Most developers know about SendGrid's SMTP relay services and the deliverability benefits, but did you know that there are also a host of other SendGrid APIs that can make your life even easier? Join ...

Most developers know about SendGrid's SMTP relay services and the deliverability benefits, but did you know that there are also a host of other SendGrid APIs that can make your life even easier? Join SendGrid's developer evangelists Swift and Brandon West as they break down the available APIs and teach you how to use them to unleash the full power of email in your application.

Statistics

Views

Total Views
845
Views on SlideShare
845
Embed Views
0

Actions

Likes
1
Downloads
31
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Possible use cases:\n - Respond to discussions\n - Upload file attachments\n - Post blog articles\n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

The Power of Email APIs The Power of Email APIs Presentation Transcript

  • The Power of Email APIs Presenters: Swift and Brandon West
  • Swift swift@sendgrid.com @SwiftAlphaOne Brandon Westbrandon.west@sendgrid.com @brandonmwest #SGWebinar
  • What is SendGrid?• Cloud-based SMTP provider• Massively scalable• Analytics on emails you send• Robust APIS for developers to integrate #SGWebinar
  • SendGrid APIsSendGrid is more than just SMTP Relay... #SGWebinar
  • Overview of the SendGrid APIs • SMTP API • Inbound Parse • Web API Webhook • Event Webhook • Reseller API API #SGWebinar
  • SMTP API• Custom SMTP header that contains instructions on how to process your email • Define multiple recipients • Text Substitutions • Categories •Unique arguments / Identifiers #SGWebinar
  • SMTP API• Example X-SMTPAPI: { "category": "billing_notifications" "unique_args": { "user_id": "12345" }, "sub": { "%amount%": "$9.95" } } #SGWebinar
  • Web API• Send mail or manipulate SendGrid settings via HTTP• Anything (almost) you can do from the • Edit profile / account information • Add new Incoming Parse endpoints • Retrieve stats • Manage lists (Bounces, Blocks, Unsubscribes, etc.) • Add / Remove filters (apps) #SGWebinar
  • Web API• If you don’t have access to SMTP, you can use the Web API to send email over HTTP curl -X POST http://sendgrid.com/api/mail.send.json -d “to=john@example.com” -d “from=hello@myapp.com” -d “subject=hello world email” -d “text=some body text” -d “api_user=your_sendgrid_username” -d “api_key=your_sendgrid_key” #SGWebinar
  • Webhooks• Webhooks are like an inverse API call; you define the endpoint, and we POST WEB HOOK #SGWebinar
  • Event Notification WebhookReceive notifications when SendGrid events happen POST •Processed •Opened •Dropped •Clicked Your Application receives •Delivered •Spam an event POST •Bounced Reported (like a form submit) #SGWebinar
  • Event Notification Webhook What does an event notification look like? { "email":"john@example.com", "timestamp": 1322000095, "unique_arg":"some argument", "event":"delivered" } #SGWebinar
  • Inbound Parse WebhookLets you receive email in your application EMAIL POST1. User sends email to *@yourapplication.com2. SendGrid parses email & attachments3. SendGrid POSTs the email to your application #SGWebinar
  • Inbound Parse Webhook (Setup Guide)1. Configure your hostname and URL settings http://sendgrid.com/developer/reply2. Point your domain’s MX records at SendGrid Type Value MX 0 mx.sendgrid.net3. Return a 200 status code from your application #SGWebinar
  • Additional APIs• Customer Subuser API – Manage and control subuser accounts• Reseller API – For partners that want to integrate their platform with SendGrid #SGWebinar
  • Demo Time! #SGWebinar
  • Questions? #SGWebinar
  • Resources• Documentation: http:// docs.sendgrid.com/• Official Libraries: https://github.com/ sendgrid/ #SGWebinar
  • Swift swift@sendgrid.com @SwiftAlphaOne Brandon Westbrandon.west@sendgrid.com @brandonmwest #SGWebinar