SlideShare uma empresa Scribd logo
1 de 19
The Power of Email APIs
            Presenters:
     Swift and Brandon West
Swift
   swift@sendgrid.com
    @SwiftAlphaOne



      Brandon West
brandon.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 APIs




SendGrid 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 Webhook
Receive 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 Webhook
Lets you receive email in your application


            EMAIL                POST




1. User sends email to *@yourapplication.com
2. SendGrid parses email & attachments
3. SendGrid POSTs the email to your application

                                            #SGWebinar
Inbound Parse Webhook
                  (Setup Guide)
1. Configure your hostname and URL settings

   http://sendgrid.com/developer/reply

2. Point your domain’s MX records at SendGrid

     Type       Value
     MX         0 mx.sendgrid.net
3. 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 West
brandon.west@sendgrid.com
     @brandonmwest



                        #SGWebinar

Mais conteúdo relacionado

Mais de SendGrid

Email Marketing 101: Who are you emailing?
Email Marketing 101: Who are you emailing?Email Marketing 101: Who are you emailing?
Email Marketing 101: Who are you emailing?SendGrid
 
Email Marketing 101: The Welcome Email
Email Marketing 101: The Welcome EmailEmail Marketing 101: The Welcome Email
Email Marketing 101: The Welcome EmailSendGrid
 
5 Reasons Why Your Subscribers Aren't Reading Your Email
5 Reasons Why Your Subscribers Aren't Reading Your Email5 Reasons Why Your Subscribers Aren't Reading Your Email
5 Reasons Why Your Subscribers Aren't Reading Your EmailSendGrid
 
Email Marketing 101: Content
Email Marketing 101: ContentEmail Marketing 101: Content
Email Marketing 101: ContentSendGrid
 
Your Holiday Email Pre-Send Checklist
Your Holiday Email Pre-Send ChecklistYour Holiday Email Pre-Send Checklist
Your Holiday Email Pre-Send ChecklistSendGrid
 
Tips and Tricks to Stay Out of the Spam Folder
Tips and Tricks to Stay Out of the Spam FolderTips and Tricks to Stay Out of the Spam Folder
Tips and Tricks to Stay Out of the Spam FolderSendGrid
 
Email Deliverability 101: Best Practices to Master the Inbox
Email Deliverability 101: Best Practices to Master the InboxEmail Deliverability 101: Best Practices to Master the Inbox
Email Deliverability 101: Best Practices to Master the InboxSendGrid
 
Be an Email Switch Hitter: Inside SendGrid's Parse Webhook
Be an Email Switch Hitter: Inside SendGrid's Parse WebhookBe an Email Switch Hitter: Inside SendGrid's Parse Webhook
Be an Email Switch Hitter: Inside SendGrid's Parse WebhookSendGrid
 
Make Transactional Email Your Superhero: Keys to Optimization and Testing Suc...
Make Transactional Email Your Superhero: Keys to Optimization and Testing Suc...Make Transactional Email Your Superhero: Keys to Optimization and Testing Suc...
Make Transactional Email Your Superhero: Keys to Optimization and Testing Suc...SendGrid
 
TechStars Demo Day 2009
TechStars Demo Day 2009TechStars Demo Day 2009
TechStars Demo Day 2009SendGrid
 
ISPs Like It Hot: How to Warm Up an IP
ISPs Like It Hot: How to Warm Up an IPISPs Like It Hot: How to Warm Up an IP
ISPs Like It Hot: How to Warm Up an IPSendGrid
 
[Webcast] Communicating Your Code
[Webcast] Communicating Your Code[Webcast] Communicating Your Code
[Webcast] Communicating Your CodeSendGrid
 
Automate the Next Level of Email Sophistication: Engage the Event API
Automate the Next Level of Email Sophistication: Engage the Event APIAutomate the Next Level of Email Sophistication: Engage the Event API
Automate the Next Level of Email Sophistication: Engage the Event APISendGrid
 
Ask an Expert! Getting Started with Email Deliverability
Ask an Expert! Getting Started with Email DeliverabilityAsk an Expert! Getting Started with Email Deliverability
Ask an Expert! Getting Started with Email DeliverabilitySendGrid
 
[Webcast] How to Get Your Email Marketing Off the Ground
[Webcast] How to Get Your Email Marketing Off the Ground[Webcast] How to Get Your Email Marketing Off the Ground
[Webcast] How to Get Your Email Marketing Off the GroundSendGrid
 
Build or Buy? Moving Your Email to the Cloud
Build or Buy? Moving Your Email to the CloudBuild or Buy? Moving Your Email to the Cloud
Build or Buy? Moving Your Email to the CloudSendGrid
 
Q&A: Your Toughest Email Infrastructure Questions Answered
Q&A: Your Toughest Email Infrastructure Questions AnsweredQ&A: Your Toughest Email Infrastructure Questions Answered
Q&A: Your Toughest Email Infrastructure Questions AnsweredSendGrid
 
Q&A: Tips and Tricks to Stay Out of the Spam Folder
Q&A: Tips and Tricks to Stay Out of the Spam FolderQ&A: Tips and Tricks to Stay Out of the Spam Folder
Q&A: Tips and Tricks to Stay Out of the Spam FolderSendGrid
 
Best of Both Worlds: How SendGrid's Founder and CEO Work Together to Combine ...
Best of Both Worlds: How SendGrid's Founder and CEO Work Together to Combine ...Best of Both Worlds: How SendGrid's Founder and CEO Work Together to Combine ...
Best of Both Worlds: How SendGrid's Founder and CEO Work Together to Combine ...SendGrid
 
SendGridDelivered_API_Workshop
SendGridDelivered_API_WorkshopSendGridDelivered_API_Workshop
SendGridDelivered_API_WorkshopSendGrid
 

Mais de SendGrid (20)

Email Marketing 101: Who are you emailing?
Email Marketing 101: Who are you emailing?Email Marketing 101: Who are you emailing?
Email Marketing 101: Who are you emailing?
 
Email Marketing 101: The Welcome Email
Email Marketing 101: The Welcome EmailEmail Marketing 101: The Welcome Email
Email Marketing 101: The Welcome Email
 
5 Reasons Why Your Subscribers Aren't Reading Your Email
5 Reasons Why Your Subscribers Aren't Reading Your Email5 Reasons Why Your Subscribers Aren't Reading Your Email
5 Reasons Why Your Subscribers Aren't Reading Your Email
 
Email Marketing 101: Content
Email Marketing 101: ContentEmail Marketing 101: Content
Email Marketing 101: Content
 
Your Holiday Email Pre-Send Checklist
Your Holiday Email Pre-Send ChecklistYour Holiday Email Pre-Send Checklist
Your Holiday Email Pre-Send Checklist
 
Tips and Tricks to Stay Out of the Spam Folder
Tips and Tricks to Stay Out of the Spam FolderTips and Tricks to Stay Out of the Spam Folder
Tips and Tricks to Stay Out of the Spam Folder
 
Email Deliverability 101: Best Practices to Master the Inbox
Email Deliverability 101: Best Practices to Master the InboxEmail Deliverability 101: Best Practices to Master the Inbox
Email Deliverability 101: Best Practices to Master the Inbox
 
Be an Email Switch Hitter: Inside SendGrid's Parse Webhook
Be an Email Switch Hitter: Inside SendGrid's Parse WebhookBe an Email Switch Hitter: Inside SendGrid's Parse Webhook
Be an Email Switch Hitter: Inside SendGrid's Parse Webhook
 
Make Transactional Email Your Superhero: Keys to Optimization and Testing Suc...
Make Transactional Email Your Superhero: Keys to Optimization and Testing Suc...Make Transactional Email Your Superhero: Keys to Optimization and Testing Suc...
Make Transactional Email Your Superhero: Keys to Optimization and Testing Suc...
 
TechStars Demo Day 2009
TechStars Demo Day 2009TechStars Demo Day 2009
TechStars Demo Day 2009
 
ISPs Like It Hot: How to Warm Up an IP
ISPs Like It Hot: How to Warm Up an IPISPs Like It Hot: How to Warm Up an IP
ISPs Like It Hot: How to Warm Up an IP
 
[Webcast] Communicating Your Code
[Webcast] Communicating Your Code[Webcast] Communicating Your Code
[Webcast] Communicating Your Code
 
Automate the Next Level of Email Sophistication: Engage the Event API
Automate the Next Level of Email Sophistication: Engage the Event APIAutomate the Next Level of Email Sophistication: Engage the Event API
Automate the Next Level of Email Sophistication: Engage the Event API
 
Ask an Expert! Getting Started with Email Deliverability
Ask an Expert! Getting Started with Email DeliverabilityAsk an Expert! Getting Started with Email Deliverability
Ask an Expert! Getting Started with Email Deliverability
 
[Webcast] How to Get Your Email Marketing Off the Ground
[Webcast] How to Get Your Email Marketing Off the Ground[Webcast] How to Get Your Email Marketing Off the Ground
[Webcast] How to Get Your Email Marketing Off the Ground
 
Build or Buy? Moving Your Email to the Cloud
Build or Buy? Moving Your Email to the CloudBuild or Buy? Moving Your Email to the Cloud
Build or Buy? Moving Your Email to the Cloud
 
Q&A: Your Toughest Email Infrastructure Questions Answered
Q&A: Your Toughest Email Infrastructure Questions AnsweredQ&A: Your Toughest Email Infrastructure Questions Answered
Q&A: Your Toughest Email Infrastructure Questions Answered
 
Q&A: Tips and Tricks to Stay Out of the Spam Folder
Q&A: Tips and Tricks to Stay Out of the Spam FolderQ&A: Tips and Tricks to Stay Out of the Spam Folder
Q&A: Tips and Tricks to Stay Out of the Spam Folder
 
Best of Both Worlds: How SendGrid's Founder and CEO Work Together to Combine ...
Best of Both Worlds: How SendGrid's Founder and CEO Work Together to Combine ...Best of Both Worlds: How SendGrid's Founder and CEO Work Together to Combine ...
Best of Both Worlds: How SendGrid's Founder and CEO Work Together to Combine ...
 
SendGridDelivered_API_Workshop
SendGridDelivered_API_WorkshopSendGridDelivered_API_Workshop
SendGridDelivered_API_Workshop
 

Último

Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 

Último (20)

Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 

The Power of Email APIs

  • 1. The Power of Email APIs Presenters: Swift and Brandon West
  • 2. Swift swift@sendgrid.com @SwiftAlphaOne Brandon West brandon.west@sendgrid.com @brandonmwest #SGWebinar
  • 3. What is SendGrid? • Cloud-based SMTP provider • Massively scalable • Analytics on emails you send • Robust APIS for developers to integrate #SGWebinar
  • 4. SendGrid APIs SendGrid is more than just SMTP Relay... #SGWebinar
  • 5. Overview of the SendGrid APIs • SMTP API • Inbound Parse • Web API Webhook • Event Webhook • Reseller API API #SGWebinar
  • 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. SMTP API • Example X-SMTPAPI: { "category": "billing_notifications" "unique_args": { "user_id": "12345" }, "sub": { "%amount%": "$9.95" } } #SGWebinar
  • 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. 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. Webhooks • Webhooks are like an inverse API call; you define the endpoint, and we POST WEB HOOK #SGWebinar
  • 11. Event Notification Webhook Receive 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. Event Notification Webhook What does an event notification look like? { "email":"john@example.com", "timestamp": 1322000095, "unique_arg":"some argument", "event":"delivered" } #SGWebinar
  • 13. Inbound Parse Webhook Lets you receive email in your application EMAIL POST 1. User sends email to *@yourapplication.com 2. SendGrid parses email & attachments 3. SendGrid POSTs the email to your application #SGWebinar
  • 14. Inbound Parse Webhook (Setup Guide) 1. Configure your hostname and URL settings http://sendgrid.com/developer/reply 2. Point your domain’s MX records at SendGrid Type Value MX 0 mx.sendgrid.net 3. Return a 200 status code from your application #SGWebinar
  • 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. Demo Time! #SGWebinar
  • 17. Questions? #SGWebinar
  • 18. Resources • Documentation: http:// docs.sendgrid.com/ • Official Libraries: https://github.com/ sendgrid/ #SGWebinar
  • 19. Swift swift@sendgrid.com @SwiftAlphaOne Brandon West brandon.west@sendgrid.com @brandonmwest #SGWebinar

Notas do Editor

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. Possible use cases:\n - Respond to discussions\n - Upload file attachments\n - Post blog articles\n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n