SlideShare uma empresa Scribd logo
1 de 27
Baixar para ler offline
API	
  Workshop




#delivered2012
Hi,	
  I’m	
  Swi3.
                 @SwiftAlphaOne
                 swift@sendgrid.com




#delivered2012
What	
  is	
  SendGrid?

 • Cloud-­‐based	
  SMTP	
  provider
 • Massively	
  scalable
 • AnalyCcs	
  on	
  emails	
  you	
  send
 • Robust	
  APIS	
  for	
  developers	
  to	
  integrate




#delivered2012
If	
  you	
  learn	
  1	
  thing...




 SendGrid	
  >	
  Email	
  Relay


#delivered2012
APIs	
  Overview
   What	
  APIs	
  does	
  SendGrid	
  Offer?
          • SMTP	
  API        • Subuser	
  API
          • Web	
  API         • CredenCals	
  API
          • NewsleNer	
  API   • Event	
  Webhook
          • Reseller	
  API    • Inbound	
  Parse	
  Webhook




                                    API

#delivered2012
APIs	
  Overview

  Q:	
  Why	
  should	
  I	
  care	
  about	
  the	
  SendGrid	
  APIs?

  A:	
  There	
  are	
  a	
  lot	
  of	
  reasons,	
  but	
  the	
  short	
  list	
  is...
     •	
  Reduce	
  code	
  complexity
     •	
  Deeper	
  analyCcs	
  &	
  tracking
     •	
  Less	
  resource	
  consumpCon
     •	
  BeNer	
  UX


#delivered2012
What	
  I	
  got	
  out	
  of	
  lunch



 Time is valuable.
Especially developer time.


#delivered2012
SMTP	
  API
   Custom	
  SMTP	
  header	
  that	
  contains	
  instrucCons	
  on	
  how	
  to	
  
   process	
  your	
  email

                         X-SMTPAPI: { ... }

   Add	
  extra	
  informaCon,	
  filters,	
  &	
  manipulaCons:
       •	
  Define	
  mulCple	
  recipients
       •	
  Text	
  SubsCtuCons
       •	
  Categories
       •	
  Unique	
  arguments	
  /	
  IdenCfiers


#delivered2012
SMTP	
  API
 Example:	
  Billing	
  noCficaCon
     X-SMTPAPI: {
       "to": ["swift@sendgrid.com"],
       "category": "billing_notifications",
       "unique_args": {
          "user_id": "12345"
       },
       "sub": {
          "%amount%": ["$9.95"]
       }
     }
#delivered2012
SMTP	
  API
 Example:	
  Billing	
  noCficaCon	
  (cont)




#delivered2012
Customer	
  Highlight
                                        qup.tv




 Queue,	
  rate,	
  or	
  watch	
  movies	
  on	
  Ne]lix	
  instant	
  with	
  one	
  click!

#delivered2012
Web	
  API
   Send	
  mail	
  or	
  manipulate	
  SendGrid	
  se_ngs	
  via	
  HTTP

   Anything	
  (almost)	
  you	
  can	
  do	
  from	
  the	
  SendGrid	
  
   dashboard,	
  you	
  can	
  do	
  from	
  the	
  Web	
  API
     •	
  Edit	
  profile	
  /	
  account	
  informaCon
     •	
  Add	
  new	
  Incoming	
  Parse	
  endpoints
     •	
  Retrieve	
  stats
     •	
  Manage	
  lists	
  (Bounces,	
  Blocks,	
  Unsubscribes,	
  etc.)
     •	
  Add	
  /	
  Remove	
  filters	
  (apps)
#delivered2012
Web	
  API
   Web	
  API	
  endpoints	
  have	
  the	
  following	
  format:
       https://sendgrid.com/api/<MODULE>.<ACTION>.<FORMAT>


   Example:	
  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”



#delivered2012
Web	
  API	
  vs.	
  SMTP	
  API

  Q:	
  Why	
  would	
  I	
  use	
  HTTP	
  instead	
  of	
  SMTP?
   (Don’t worry, this is a really common question)


  A:	
  Normally,	
  you	
  won’t	
  have	
  to.	
  	
  Unless...
     •	
  Your	
  ISP	
  is	
  blocking	
  common	
  SMTP	
  ports
     •	
  There	
  is	
  high	
  latency	
  between	
  your	
  app	
  and	
  SendGrid
     •	
  Difficult	
  to	
  install	
  /	
  configure	
  SMTP	
  drivers
     •	
  Simplicity	
  for	
  developers
#delivered2012
NewsleEer	
  API
   Access	
  the	
  SendGrid	
  newsleNer	
  app	
  via	
  the	
  API
      https://sendgrid.com/api/newsletter/<ACTION>.<FORMAT>




   You	
  can	
  create	
  &	
  manage...
     •	
  NewsleNer	
  content
     •	
  Recipient	
  lists
     •	
  Sender	
  idenCCes
     •	
  Scheduled	
  deliveries

#delivered2012
Webhooks

  Q:	
  What	
  are	
  Webhooks?

  A:	
  Webhooks	
  are	
  like	
  inverse	
  API	
  calls;	
  you	
  tell	
  us	
  
  where	
  the	
  data	
  needs	
  to	
  go,	
  we	
  send	
  it	
  there.


                                   WEB
                                  HOOK


#delivered2012
Event	
  No2fica2on	
  Webhook
   Receive notifications when SendGrid events happen


                                      POST



     •Processed   •Opened
     •Dropped     •Clicked                   Your	
  ApplicaCon	
  receives	
  
     •Delivered   •Spam	
  Reported                  an	
  event	
  POST
     •Bounced     •Unsubscribed                (like	
  a	
  form	
  submit)




#delivered2012
Event	
  No2fica2on	
  Webhook

          What does an event notification look like?

           {
                 "email":"john@example.com",
                 "timestamp": 1322000095,
                 "unique_arg":"some argument",
                 "event":"delivered"
           }


#delivered2012
Event	
  No2fica2on	
  Webhook

  Q:	
  Why	
  would	
  I	
  want	
  to	
  use	
  the	
  event	
  webhook?

  A:	
  Use	
  it	
  to	
  enhance	
  your	
  exisCng	
  email	
  
  funcConality	
  and	
  gain	
  smart	
  customer	
  insight.
  (It’s a very reactive API)




#delivered2012
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

#delivered2012
Customer	
  Highlight
                              thebirdy.com




 Answer	
  one	
  email	
  a	
  day,	
  and	
  track	
  what	
  you	
  spend.	
  Create	
  
 categories	
  by	
  tagging	
  your	
  purchases	
  like	
  #twiNer.	
  Super	
  simple.

#delivered2012
Inbound	
  Parse	
  Webhook

  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


#delivered2012
AddiGonal	
  APIs	
  

  Subuser	
  API
   •	
  Manage	
  and	
  control	
  subuser	
  accounts
  Reseller	
  API
   •	
  For	
  partners	
  who	
  want	
  to	
  integrate	
  their	
  pla]orm	
  with	
  SendGrid
  Mul2ple	
  Creden2als	
  API
  •	
  Add	
  new	
  API	
  keys	
  and	
  users	
  to	
  your	
  account



#delivered2012
Demo Time!
                 http://github.com/theycallmeswift




#delivered2012
Questions?


#delivered2012
Resources


 • DocumentaCon:	
  hNp://docs.sendgrid.com/
 • Official	
  Libraries:	
  hNps://github.com/sendgrid/
 • Support:	
  hNp://support.sendgrid.com/




#delivered2012
Swi3.
                 @SwiftAlphaOne
                 swift@sendgrid.com




#delivered2012

Mais conteúdo relacionado

Mais procurados

CMPE282_009994036_PROJECT_REPORT
CMPE282_009994036_PROJECT_REPORTCMPE282_009994036_PROJECT_REPORT
CMPE282_009994036_PROJECT_REPORTSandyarathi Das
 
Building Event-driven Serverless Applications
Building Event-driven Serverless ApplicationsBuilding Event-driven Serverless Applications
Building Event-driven Serverless ApplicationsAmazon Web Services
 
Building Event-Driven Serverless Applications
Building Event-Driven Serverless ApplicationsBuilding Event-Driven Serverless Applications
Building Event-Driven Serverless ApplicationsDanilo Poccia
 
Our Hybrid Future: WordPress As Part of the Stack
Our Hybrid Future: WordPress As Part of the StackOur Hybrid Future: WordPress As Part of the Stack
Our Hybrid Future: WordPress As Part of the StackCaldera Labs
 
Introduction to google endpoints
Introduction to google endpointsIntroduction to google endpoints
Introduction to google endpointsShinto Anto
 
Preparing for Data Residency and Custom Domains
Preparing for Data Residency and Custom DomainsPreparing for Data Residency and Custom Domains
Preparing for Data Residency and Custom DomainsAtlassian
 
Spec-first API Design for Speed and Safety
Spec-first API Design for Speed and SafetySpec-first API Design for Speed and Safety
Spec-first API Design for Speed and SafetyAtlassian
 
AngularJSTO presentation
AngularJSTO presentationAngularJSTO presentation
AngularJSTO presentationAlan Hietala
 
Creating a Custom PowerApp Connector using Azure Functions
Creating a Custom PowerApp Connector using Azure FunctionsCreating a Custom PowerApp Connector using Azure Functions
Creating a Custom PowerApp Connector using Azure FunctionsMurray Fife
 
2011 aug-gdd-mexico-city-high-replication-datastore
2011 aug-gdd-mexico-city-high-replication-datastore2011 aug-gdd-mexico-city-high-replication-datastore
2011 aug-gdd-mexico-city-high-replication-datastoreikailan
 
MongoDB.local Seattle 2019: MongoDB Stitch Tutorial
MongoDB.local Seattle 2019: MongoDB Stitch TutorialMongoDB.local Seattle 2019: MongoDB Stitch Tutorial
MongoDB.local Seattle 2019: MongoDB Stitch TutorialMongoDB
 
Realtime Content Delivery: Powering dynamic instant experiences
Realtime Content Delivery: Powering dynamic instant experiencesRealtime Content Delivery: Powering dynamic instant experiences
Realtime Content Delivery: Powering dynamic instant experiencesAkhilesh Gupta
 
2011 august-gdd-mexico-city-rest-json-oauth
2011 august-gdd-mexico-city-rest-json-oauth2011 august-gdd-mexico-city-rest-json-oauth
2011 august-gdd-mexico-city-rest-json-oauthikailan
 
Firebase Basics - Dialog Demo for Group Tech Staff
Firebase Basics - Dialog Demo for Group Tech StaffFirebase Basics - Dialog Demo for Group Tech Staff
Firebase Basics - Dialog Demo for Group Tech StaffTharaka Devinda
 
MongoDB.local Atlanta: MongoDB Stitch Tutorial
MongoDB.local Atlanta: MongoDB Stitch TutorialMongoDB.local Atlanta: MongoDB Stitch Tutorial
MongoDB.local Atlanta: MongoDB Stitch TutorialMongoDB
 
mdevcon - A Primer to SyncAdapters
mdevcon  - A Primer to SyncAdaptersmdevcon  - A Primer to SyncAdapters
mdevcon - A Primer to SyncAdaptersKiana Tennyson
 
AnDevCon - A Primer to Sync Adapters
AnDevCon - A Primer to Sync AdaptersAnDevCon - A Primer to Sync Adapters
AnDevCon - A Primer to Sync AdaptersKiana Tennyson
 
iOSDevCamp Firebase Overview
iOSDevCamp Firebase OverviewiOSDevCamp Firebase Overview
iOSDevCamp Firebase OverviewJames Daniels
 

Mais procurados (20)

CMPE282_009994036_PROJECT_REPORT
CMPE282_009994036_PROJECT_REPORTCMPE282_009994036_PROJECT_REPORT
CMPE282_009994036_PROJECT_REPORT
 
Building Event-driven Serverless Applications
Building Event-driven Serverless ApplicationsBuilding Event-driven Serverless Applications
Building Event-driven Serverless Applications
 
Building Event-Driven Serverless Applications
Building Event-Driven Serverless ApplicationsBuilding Event-Driven Serverless Applications
Building Event-Driven Serverless Applications
 
Our Hybrid Future: WordPress As Part of the Stack
Our Hybrid Future: WordPress As Part of the StackOur Hybrid Future: WordPress As Part of the Stack
Our Hybrid Future: WordPress As Part of the Stack
 
AWS Serverless Workshop
AWS Serverless WorkshopAWS Serverless Workshop
AWS Serverless Workshop
 
Introduction to google endpoints
Introduction to google endpointsIntroduction to google endpoints
Introduction to google endpoints
 
Preparing for Data Residency and Custom Domains
Preparing for Data Residency and Custom DomainsPreparing for Data Residency and Custom Domains
Preparing for Data Residency and Custom Domains
 
Spec-first API Design for Speed and Safety
Spec-first API Design for Speed and SafetySpec-first API Design for Speed and Safety
Spec-first API Design for Speed and Safety
 
AngularJSTO presentation
AngularJSTO presentationAngularJSTO presentation
AngularJSTO presentation
 
Creating a Custom PowerApp Connector using Azure Functions
Creating a Custom PowerApp Connector using Azure FunctionsCreating a Custom PowerApp Connector using Azure Functions
Creating a Custom PowerApp Connector using Azure Functions
 
2011 aug-gdd-mexico-city-high-replication-datastore
2011 aug-gdd-mexico-city-high-replication-datastore2011 aug-gdd-mexico-city-high-replication-datastore
2011 aug-gdd-mexico-city-high-replication-datastore
 
MongoDB.local Seattle 2019: MongoDB Stitch Tutorial
MongoDB.local Seattle 2019: MongoDB Stitch TutorialMongoDB.local Seattle 2019: MongoDB Stitch Tutorial
MongoDB.local Seattle 2019: MongoDB Stitch Tutorial
 
Realtime Content Delivery: Powering dynamic instant experiences
Realtime Content Delivery: Powering dynamic instant experiencesRealtime Content Delivery: Powering dynamic instant experiences
Realtime Content Delivery: Powering dynamic instant experiences
 
2011 august-gdd-mexico-city-rest-json-oauth
2011 august-gdd-mexico-city-rest-json-oauth2011 august-gdd-mexico-city-rest-json-oauth
2011 august-gdd-mexico-city-rest-json-oauth
 
Firebase Basics - Dialog Demo for Group Tech Staff
Firebase Basics - Dialog Demo for Group Tech StaffFirebase Basics - Dialog Demo for Group Tech Staff
Firebase Basics - Dialog Demo for Group Tech Staff
 
MongoDB.local Atlanta: MongoDB Stitch Tutorial
MongoDB.local Atlanta: MongoDB Stitch TutorialMongoDB.local Atlanta: MongoDB Stitch Tutorial
MongoDB.local Atlanta: MongoDB Stitch Tutorial
 
mdevcon - A Primer to SyncAdapters
mdevcon  - A Primer to SyncAdaptersmdevcon  - A Primer to SyncAdapters
mdevcon - A Primer to SyncAdapters
 
Android dev tips
Android dev tipsAndroid dev tips
Android dev tips
 
AnDevCon - A Primer to Sync Adapters
AnDevCon - A Primer to Sync AdaptersAnDevCon - A Primer to Sync Adapters
AnDevCon - A Primer to Sync Adapters
 
iOSDevCamp Firebase Overview
iOSDevCamp Firebase OverviewiOSDevCamp Firebase Overview
iOSDevCamp Firebase Overview
 

Destaque

SendGridDelivered_Shades_of_Gray
SendGridDelivered_Shades_of_GraySendGridDelivered_Shades_of_Gray
SendGridDelivered_Shades_of_GraySendGrid
 
Personal Productivity for Developers v3
Personal Productivity for Developers v3Personal Productivity for Developers v3
Personal Productivity for Developers v3SendGrid
 
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
 
SendGridDelivered_transactional_email101
SendGridDelivered_transactional_email101SendGridDelivered_transactional_email101
SendGridDelivered_transactional_email101SendGrid
 
How to Get the Most Out Of Transactional Emails
How to Get the Most Out Of Transactional EmailsHow to Get the Most Out Of Transactional Emails
How to Get the Most Out Of Transactional EmailsSendGrid
 
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
 
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
 
[Webcast] Communicating Your Code
[Webcast] Communicating Your Code[Webcast] Communicating Your Code
[Webcast] Communicating Your CodeSendGrid
 
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
 
Shades of Gray: Incorporating Marketing into Transactional Email
Shades of Gray: Incorporating Marketing into Transactional EmailShades of Gray: Incorporating Marketing into Transactional Email
Shades of Gray: Incorporating Marketing into Transactional EmailSendGrid
 
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
 
[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
 
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
 
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
 
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
 
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 Presentation
Email Marketing PresentationEmail Marketing Presentation
Email Marketing PresentationIain Davenport
 
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
 
Your Holiday Email Pre-Send Checklist
Your Holiday Email Pre-Send ChecklistYour Holiday Email Pre-Send Checklist
Your Holiday Email Pre-Send ChecklistSendGrid
 

Destaque (20)

SendGridDelivered_Shades_of_Gray
SendGridDelivered_Shades_of_GraySendGridDelivered_Shades_of_Gray
SendGridDelivered_Shades_of_Gray
 
Personal Productivity for Developers v3
Personal Productivity for Developers v3Personal Productivity for Developers v3
Personal Productivity for Developers v3
 
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
 
SendGridDelivered_transactional_email101
SendGridDelivered_transactional_email101SendGridDelivered_transactional_email101
SendGridDelivered_transactional_email101
 
How to Get the Most Out Of Transactional Emails
How to Get the Most Out Of Transactional EmailsHow to Get the Most Out Of Transactional Emails
How to Get the Most Out Of Transactional Emails
 
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...
 
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
 
[Webcast] Communicating Your Code
[Webcast] Communicating Your Code[Webcast] Communicating Your Code
[Webcast] Communicating Your Code
 
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 ...
 
Shades of Gray: Incorporating Marketing into Transactional Email
Shades of Gray: Incorporating Marketing into Transactional EmailShades of Gray: Incorporating Marketing into Transactional Email
Shades of Gray: Incorporating Marketing into Transactional Email
 
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
 
[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
 
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
 
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
 
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
 
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 Presentation
Email Marketing PresentationEmail Marketing Presentation
Email Marketing Presentation
 
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
 
Your Holiday Email Pre-Send Checklist
Your Holiday Email Pre-Send ChecklistYour Holiday Email Pre-Send Checklist
Your Holiday Email Pre-Send Checklist
 

Semelhante a API Workshop Overview

SendGrid Delivered API Workshop
SendGrid Delivered API WorkshopSendGrid Delivered API Workshop
SendGrid Delivered API WorkshopBrandon West
 
#SPFestSea azr302 The SharePoint Framework and the #MicrosoftGraph under ster...
#SPFestSea azr302 The SharePoint Framework and the #MicrosoftGraph under ster...#SPFestSea azr302 The SharePoint Framework and the #MicrosoftGraph under ster...
#SPFestSea azr302 The SharePoint Framework and the #MicrosoftGraph under ster...Vincent Biret
 
Frontend APIs powering fast paced product iterations
Frontend APIs powering fast paced product iterationsFrontend APIs powering fast paced product iterations
Frontend APIs powering fast paced product iterationsKarthik Ramgopal
 
MongoDB Stitch Introduction
MongoDB Stitch IntroductionMongoDB Stitch Introduction
MongoDB Stitch IntroductionMongoDB
 
Releasing Software Quickly and Reliably with AWS CodePipline
Releasing Software Quickly and Reliably with AWS CodePiplineReleasing Software Quickly and Reliably with AWS CodePipline
Releasing Software Quickly and Reliably with AWS CodePiplineAmazon Web Services
 
Lamdba micro service using Amazon Api Gateway
Lamdba micro service using Amazon Api GatewayLamdba micro service using Amazon Api Gateway
Lamdba micro service using Amazon Api GatewayMike Becker
 
Developing Apps with Azure AD
Developing Apps with Azure ADDeveloping Apps with Azure AD
Developing Apps with Azure ADSharePointRadi
 
SPS calgary 2017 introduction to azure functions microsoft flow
SPS calgary 2017 introduction to azure functions microsoft flowSPS calgary 2017 introduction to azure functions microsoft flow
SPS calgary 2017 introduction to azure functions microsoft flowVincent Biret
 
Releasing Software Quickly and Reliably With AWS CodePipeline by Mark Mansour...
Releasing Software Quickly and Reliably With AWS CodePipeline by Mark Mansour...Releasing Software Quickly and Reliably With AWS CodePipeline by Mark Mansour...
Releasing Software Quickly and Reliably With AWS CodePipeline by Mark Mansour...Amazon Web Services
 
Bp101-Can Domino Be Hacked
Bp101-Can Domino Be HackedBp101-Can Domino Be Hacked
Bp101-Can Domino Be HackedHoward Greenberg
 
Integration with Dynamics 365 / Power Platform
Integration with Dynamics 365 / Power PlatformIntegration with Dynamics 365 / Power Platform
Integration with Dynamics 365 / Power PlatformRémy van Duijkeren
 
Building Your First App with MongoDB Stitch
Building Your First App with MongoDB StitchBuilding Your First App with MongoDB Stitch
Building Your First App with MongoDB StitchMongoDB
 
Standards-Based Low-Code Business Automation.pptx
Standards-Based Low-Code Business Automation.pptxStandards-Based Low-Code Business Automation.pptx
Standards-Based Low-Code Business Automation.pptxDenis Gagné
 
Tutorial: Building Your First App with MongoDB Stitch
Tutorial: Building Your First App with MongoDB StitchTutorial: Building Your First App with MongoDB Stitch
Tutorial: Building Your First App with MongoDB StitchMongoDB
 
API Security - OWASP top 10 for APIs + tips for pentesters
API Security - OWASP top 10 for APIs + tips for pentestersAPI Security - OWASP top 10 for APIs + tips for pentesters
API Security - OWASP top 10 for APIs + tips for pentestersInon Shkedy
 
Connector API Apps
Connector API AppsConnector API Apps
Connector API AppsBizTalk360
 
MongoDB World 2018: Ch-Ch-Ch-Ch-Changes: Taking Your Stitch Application to th...
MongoDB World 2018: Ch-Ch-Ch-Ch-Changes: Taking Your Stitch Application to th...MongoDB World 2018: Ch-Ch-Ch-Ch-Changes: Taking Your Stitch Application to th...
MongoDB World 2018: Ch-Ch-Ch-Ch-Changes: Taking Your Stitch Application to th...MongoDB
 
How to build Simple yet powerful API.pptx
How to build Simple yet powerful API.pptxHow to build Simple yet powerful API.pptx
How to build Simple yet powerful API.pptxChanna Ly
 
Application Architecture April 2014
Application Architecture April 2014Application Architecture April 2014
Application Architecture April 2014Lars-Erik Kindblad
 

Semelhante a API Workshop Overview (20)

SendGrid Delivered API Workshop
SendGrid Delivered API WorkshopSendGrid Delivered API Workshop
SendGrid Delivered API Workshop
 
#SPFestSea azr302 The SharePoint Framework and the #MicrosoftGraph under ster...
#SPFestSea azr302 The SharePoint Framework and the #MicrosoftGraph under ster...#SPFestSea azr302 The SharePoint Framework and the #MicrosoftGraph under ster...
#SPFestSea azr302 The SharePoint Framework and the #MicrosoftGraph under ster...
 
Frontend APIs powering fast paced product iterations
Frontend APIs powering fast paced product iterationsFrontend APIs powering fast paced product iterations
Frontend APIs powering fast paced product iterations
 
MongoDB Stitch Introduction
MongoDB Stitch IntroductionMongoDB Stitch Introduction
MongoDB Stitch Introduction
 
Releasing Software Quickly and Reliably with AWS CodePipline
Releasing Software Quickly and Reliably with AWS CodePiplineReleasing Software Quickly and Reliably with AWS CodePipline
Releasing Software Quickly and Reliably with AWS CodePipline
 
Lamdba micro service using Amazon Api Gateway
Lamdba micro service using Amazon Api GatewayLamdba micro service using Amazon Api Gateway
Lamdba micro service using Amazon Api Gateway
 
Developing Apps with Azure AD
Developing Apps with Azure ADDeveloping Apps with Azure AD
Developing Apps with Azure AD
 
SPS calgary 2017 introduction to azure functions microsoft flow
SPS calgary 2017 introduction to azure functions microsoft flowSPS calgary 2017 introduction to azure functions microsoft flow
SPS calgary 2017 introduction to azure functions microsoft flow
 
Releasing Software Quickly and Reliably With AWS CodePipeline by Mark Mansour...
Releasing Software Quickly and Reliably With AWS CodePipeline by Mark Mansour...Releasing Software Quickly and Reliably With AWS CodePipeline by Mark Mansour...
Releasing Software Quickly and Reliably With AWS CodePipeline by Mark Mansour...
 
DevCom .NET Team
DevCom .NET TeamDevCom .NET Team
DevCom .NET Team
 
Bp101-Can Domino Be Hacked
Bp101-Can Domino Be HackedBp101-Can Domino Be Hacked
Bp101-Can Domino Be Hacked
 
Integration with Dynamics 365 / Power Platform
Integration with Dynamics 365 / Power PlatformIntegration with Dynamics 365 / Power Platform
Integration with Dynamics 365 / Power Platform
 
Building Your First App with MongoDB Stitch
Building Your First App with MongoDB StitchBuilding Your First App with MongoDB Stitch
Building Your First App with MongoDB Stitch
 
Standards-Based Low-Code Business Automation.pptx
Standards-Based Low-Code Business Automation.pptxStandards-Based Low-Code Business Automation.pptx
Standards-Based Low-Code Business Automation.pptx
 
Tutorial: Building Your First App with MongoDB Stitch
Tutorial: Building Your First App with MongoDB StitchTutorial: Building Your First App with MongoDB Stitch
Tutorial: Building Your First App with MongoDB Stitch
 
API Security - OWASP top 10 for APIs + tips for pentesters
API Security - OWASP top 10 for APIs + tips for pentestersAPI Security - OWASP top 10 for APIs + tips for pentesters
API Security - OWASP top 10 for APIs + tips for pentesters
 
Connector API Apps
Connector API AppsConnector API Apps
Connector API Apps
 
MongoDB World 2018: Ch-Ch-Ch-Ch-Changes: Taking Your Stitch Application to th...
MongoDB World 2018: Ch-Ch-Ch-Ch-Changes: Taking Your Stitch Application to th...MongoDB World 2018: Ch-Ch-Ch-Ch-Changes: Taking Your Stitch Application to th...
MongoDB World 2018: Ch-Ch-Ch-Ch-Changes: Taking Your Stitch Application to th...
 
How to build Simple yet powerful API.pptx
How to build Simple yet powerful API.pptxHow to build Simple yet powerful API.pptx
How to build Simple yet powerful API.pptx
 
Application Architecture April 2014
Application Architecture April 2014Application Architecture April 2014
Application Architecture April 2014
 

Mais de SendGrid

Email Expedition - Your First Marketing Send
Email Expedition - Your First Marketing SendEmail Expedition - Your First Marketing Send
Email Expedition - Your First Marketing SendSendGrid
 
The SendGrid Email Drink Menu
The SendGrid Email Drink MenuThe SendGrid Email Drink Menu
The SendGrid Email Drink MenuSendGrid
 
Supporting SDKs in Seven Different Programming Languages While Maintaining Sa...
Supporting SDKs in Seven Different Programming Languages While Maintaining Sa...Supporting SDKs in Seven Different Programming Languages While Maintaining Sa...
Supporting SDKs in Seven Different Programming Languages While Maintaining Sa...SendGrid
 
The Intersection of DevRel and Product
The Intersection of DevRel and ProductThe Intersection of DevRel and Product
The Intersection of DevRel and ProductSendGrid
 
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: Strategy
Email Marketing 101: StrategyEmail Marketing 101: Strategy
Email Marketing 101: StrategySendGrid
 
Email Marketing 101: Content
Email Marketing 101: ContentEmail Marketing 101: Content
Email Marketing 101: ContentSendGrid
 
TechStars Demo Day 2009
TechStars Demo Day 2009TechStars Demo Day 2009
TechStars Demo Day 2009SendGrid
 
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
 
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
 

Mais de SendGrid (11)

Email Expedition - Your First Marketing Send
Email Expedition - Your First Marketing SendEmail Expedition - Your First Marketing Send
Email Expedition - Your First Marketing Send
 
The SendGrid Email Drink Menu
The SendGrid Email Drink MenuThe SendGrid Email Drink Menu
The SendGrid Email Drink Menu
 
Supporting SDKs in Seven Different Programming Languages While Maintaining Sa...
Supporting SDKs in Seven Different Programming Languages While Maintaining Sa...Supporting SDKs in Seven Different Programming Languages While Maintaining Sa...
Supporting SDKs in Seven Different Programming Languages While Maintaining Sa...
 
The Intersection of DevRel and Product
The Intersection of DevRel and ProductThe Intersection of DevRel and Product
The Intersection of DevRel and Product
 
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: Strategy
Email Marketing 101: StrategyEmail Marketing 101: Strategy
Email Marketing 101: Strategy
 
Email Marketing 101: Content
Email Marketing 101: ContentEmail Marketing 101: Content
Email Marketing 101: Content
 
TechStars Demo Day 2009
TechStars Demo Day 2009TechStars Demo Day 2009
TechStars Demo Day 2009
 
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
 
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
 

API Workshop Overview

  • 2. Hi,  I’m  Swi3. @SwiftAlphaOne swift@sendgrid.com #delivered2012
  • 3. What  is  SendGrid? • Cloud-­‐based  SMTP  provider • Massively  scalable • AnalyCcs  on  emails  you  send • Robust  APIS  for  developers  to  integrate #delivered2012
  • 4. If  you  learn  1  thing... SendGrid  >  Email  Relay #delivered2012
  • 5. APIs  Overview What  APIs  does  SendGrid  Offer? • SMTP  API • Subuser  API • Web  API • CredenCals  API • NewsleNer  API • Event  Webhook • Reseller  API • Inbound  Parse  Webhook API #delivered2012
  • 6. APIs  Overview Q:  Why  should  I  care  about  the  SendGrid  APIs? A:  There  are  a  lot  of  reasons,  but  the  short  list  is... •  Reduce  code  complexity •  Deeper  analyCcs  &  tracking •  Less  resource  consumpCon •  BeNer  UX #delivered2012
  • 7. What  I  got  out  of  lunch Time is valuable. Especially developer time. #delivered2012
  • 8. SMTP  API Custom  SMTP  header  that  contains  instrucCons  on  how  to   process  your  email X-SMTPAPI: { ... } Add  extra  informaCon,  filters,  &  manipulaCons: •  Define  mulCple  recipients •  Text  SubsCtuCons •  Categories •  Unique  arguments  /  IdenCfiers #delivered2012
  • 9. SMTP  API Example:  Billing  noCficaCon X-SMTPAPI: { "to": ["swift@sendgrid.com"], "category": "billing_notifications", "unique_args": { "user_id": "12345" }, "sub": { "%amount%": ["$9.95"] } } #delivered2012
  • 10. SMTP  API Example:  Billing  noCficaCon  (cont) #delivered2012
  • 11. Customer  Highlight qup.tv Queue,  rate,  or  watch  movies  on  Ne]lix  instant  with  one  click! #delivered2012
  • 12. Web  API Send  mail  or  manipulate  SendGrid  se_ngs  via  HTTP Anything  (almost)  you  can  do  from  the  SendGrid   dashboard,  you  can  do  from  the  Web  API •  Edit  profile  /  account  informaCon •  Add  new  Incoming  Parse  endpoints •  Retrieve  stats •  Manage  lists  (Bounces,  Blocks,  Unsubscribes,  etc.) •  Add  /  Remove  filters  (apps) #delivered2012
  • 13. Web  API Web  API  endpoints  have  the  following  format: https://sendgrid.com/api/<MODULE>.<ACTION>.<FORMAT> Example:  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” #delivered2012
  • 14. Web  API  vs.  SMTP  API Q:  Why  would  I  use  HTTP  instead  of  SMTP? (Don’t worry, this is a really common question) A:  Normally,  you  won’t  have  to.    Unless... •  Your  ISP  is  blocking  common  SMTP  ports •  There  is  high  latency  between  your  app  and  SendGrid •  Difficult  to  install  /  configure  SMTP  drivers •  Simplicity  for  developers #delivered2012
  • 15. NewsleEer  API Access  the  SendGrid  newsleNer  app  via  the  API https://sendgrid.com/api/newsletter/<ACTION>.<FORMAT> You  can  create  &  manage... •  NewsleNer  content •  Recipient  lists •  Sender  idenCCes •  Scheduled  deliveries #delivered2012
  • 16. Webhooks Q:  What  are  Webhooks? A:  Webhooks  are  like  inverse  API  calls;  you  tell  us   where  the  data  needs  to  go,  we  send  it  there. WEB HOOK #delivered2012
  • 17. Event  No2fica2on  Webhook Receive notifications when SendGrid events happen POST •Processed •Opened •Dropped •Clicked Your  ApplicaCon  receives   •Delivered •Spam  Reported an  event  POST •Bounced •Unsubscribed (like  a  form  submit) #delivered2012
  • 18. Event  No2fica2on  Webhook What does an event notification look like? { "email":"john@example.com", "timestamp": 1322000095, "unique_arg":"some argument", "event":"delivered" } #delivered2012
  • 19. Event  No2fica2on  Webhook Q:  Why  would  I  want  to  use  the  event  webhook? A:  Use  it  to  enhance  your  exisCng  email   funcConality  and  gain  smart  customer  insight. (It’s a very reactive API) #delivered2012
  • 20. 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 #delivered2012
  • 21. Customer  Highlight thebirdy.com Answer  one  email  a  day,  and  track  what  you  spend.  Create   categories  by  tagging  your  purchases  like  #twiNer.  Super  simple. #delivered2012
  • 22. Inbound  Parse  Webhook 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 #delivered2012
  • 23. AddiGonal  APIs   Subuser  API •  Manage  and  control  subuser  accounts Reseller  API •  For  partners  who  want  to  integrate  their  pla]orm  with  SendGrid Mul2ple  Creden2als  API •  Add  new  API  keys  and  users  to  your  account #delivered2012
  • 24. Demo Time! http://github.com/theycallmeswift #delivered2012
  • 26. Resources • DocumentaCon:  hNp://docs.sendgrid.com/ • Official  Libraries:  hNps://github.com/sendgrid/ • Support:  hNp://support.sendgrid.com/ #delivered2012
  • 27. Swi3. @SwiftAlphaOne swift@sendgrid.com #delivered2012