Your SlideShare is downloading. ×
0
The Power of Email APIs            Presenters:     Swift and Brandon West
Swift   swift@sendgrid.com    @SwiftAlphaOne      Brandon Westbrandon.west@sendgrid.com     @brandonmwest                 ...
What is SendGrid?• Cloud-based SMTP provider• Massively scalable• Analytics on emails you send• Robust APIS for developers...
SendGrid APIsSendGrid is more than just SMTP Relay...                                   #SGWebinar
Overview of the SendGrid APIs  • SMTP API        • Inbound Parse  • Web API           Webhook  • Event Webhook   • Reselle...
SMTP API• Custom SMTP header that contains  instructions on how to process your  email   • Define multiple recipients   • T...
SMTP API• Example  X-SMTPAPI: {    "category": "billing_notifications"    "unique_args": {       "user_id": "12345"    }, ...
Web API• Send mail or manipulate SendGrid settings  via HTTP• Anything (almost) you can do from the  • Edit profile / accou...
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://sendgri...
Webhooks• Webhooks are like an inverse API call;  you define the endpoint, and we POST                   WEB               ...
Event Notification WebhookReceive notifications when SendGrid events happen                         POST •Processed   •Opene...
Event Notification Webhook  What does an event notification look like?  {      "email":"john@example.com",      "timestamp":...
Inbound Parse WebhookLets you receive email in your application            EMAIL                POST1. User sends email to...
Inbound Parse Webhook                  (Setup Guide)1. Configure your hostname and URL settings   http://sendgrid.com/devel...
Additional APIs• Customer Subuser API – Manage and control subuser accounts• Reseller API – For partners that want to inte...
Demo Time!             #SGWebinar
Questions?             #SGWebinar
Resources• Documentation: http://  docs.sendgrid.com/• Official Libraries: https://github.com/  sendgrid/                 ...
Swift   swift@sendgrid.com    @SwiftAlphaOne      Brandon Westbrandon.west@sendgrid.com     @brandonmwest                 ...
Upcoming SlideShare
Loading in...5
×

The Power of Email APIs

723

Published on

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.

Published in: Education, Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
723
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
34
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • \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
  • Transcript of "The Power of Email APIs"

    1. 1. The Power of Email APIs Presenters: Swift and Brandon West
    2. 2. Swift swift@sendgrid.com @SwiftAlphaOne Brandon Westbrandon.west@sendgrid.com @brandonmwest #SGWebinar
    3. 3. What is SendGrid?• Cloud-based SMTP provider• Massively scalable• Analytics on emails you send• Robust APIS for developers to integrate #SGWebinar
    4. 4. SendGrid APIsSendGrid is more than just SMTP Relay... #SGWebinar
    5. 5. Overview of the SendGrid APIs • SMTP API • Inbound Parse • Web API Webhook • Event Webhook • Reseller API API #SGWebinar
    6. 6. SMTP API• Custom SMTP header that contains instructions on how to process your email • Define multiple recipients • Text Substitutions • Categories •Unique arguments / Identifiers #SGWebinar
    7. 7. SMTP API• Example X-SMTPAPI: { "category": "billing_notifications" "unique_args": { "user_id": "12345" }, "sub": { "%amount%": "$9.95" } } #SGWebinar
    8. 8. 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
    9. 9. 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
    10. 10. Webhooks• Webhooks are like an inverse API call; you define the endpoint, and we POST WEB HOOK #SGWebinar
    11. 11. 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
    12. 12. Event Notification Webhook What does an event notification look like? { "email":"john@example.com", "timestamp": 1322000095, "unique_arg":"some argument", "event":"delivered" } #SGWebinar
    13. 13. 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
    14. 14. 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
    15. 15. Additional APIs• Customer Subuser API – Manage and control subuser accounts• Reseller API – For partners that want to integrate their platform with SendGrid #SGWebinar
    16. 16. Demo Time! #SGWebinar
    17. 17. Questions? #SGWebinar
    18. 18. Resources• Documentation: http:// docs.sendgrid.com/• Official Libraries: https://github.com/ sendgrid/ #SGWebinar
    19. 19. Swift swift@sendgrid.com @SwiftAlphaOne Brandon Westbrandon.west@sendgrid.com @brandonmwest #SGWebinar
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×