SlideShare ist ein Scribd-Unternehmen logo
1 von 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 dene the endpoint, and we POST



                   WEB
                  HOOK




                                    #SGWebinar
Event Notication Webhook
Receive notications 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 Notication Webhook

  What does an event notication 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. Congure 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

Weitere ähnliche Inhalte

Mehr von 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
 

Mehr von 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
 

KĂźrzlich hochgeladen

Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
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
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
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
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
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
 
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
 
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
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsManeerUddin
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
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
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
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
 

KĂźrzlich hochgeladen (20)

Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
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
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
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
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
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)
 
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
 
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Ă...
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture hons
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
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
 
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
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.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 • Dene multiple recipients • Text Substitutions • Categories •Unique arguments / Identiers #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 prole / account information • Add new Incoming Parse endpoints • Retrieve stats • Manage lists (Bounces, Blocks, Unsubscribes, etc.) • Add / Remove lters (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 dene the endpoint, and we POST WEB HOOK #SGWebinar
  • 11. Event Notication Webhook Receive notications 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 Notication Webhook What does an event notication 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. Congure 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

Hinweis der Redaktion

  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