SlideShare a Scribd company logo
1 of 28
Look Who’s Talking




        Pablo Cantero
       @pablocantero
   http://pablocantero.com
                             28° GURU-SP - 09/03/2013
Why I started with it?
We had a problem
We needed a phone support 24x7 in case the
  website becomes unavailable and other
          possible urgent issues.
Solution
We decided to use a Communication as a Service (CaaS) to
register a fixed phone number in Brazil, which receives a call
     and redirects it to the developer on duty cellphone.
http://www.twilio.com
Why Twilio?

• No Contracts
• Pay as you go
• Simple and well documented API
Brazilian pricing

•   To receive a call = 1¢/minute

•   To make a call = 33¢/minute

•   To send a text: starts at =1.2¢/message

•   Fixed brazilian number = 3$/month

•   Fixed american number = 1$/month
Support Roulette
https://github.com/phstc/support-roulette
Plantão Elo7
Call me maybe




     WebRTC
gem “twilio-ruby”
account_sid	
  	
  	
  =	
  ENV["TWILIO_ACCOUNT_SID"]
auth_token	
  	
  	
  	
  =	
  ENV["TWILIO_AUTH_TOKEN"]
twiml_app_sid	
  =	
  ENV["TWILIO_TWIML_APP"]

capability	
  =	
  Twilio::Util::Capability.new	
  
account_sid,	
  auth_token

capability.allow_client_outgoing	
  twiml_app_sid
	
  
token	
  =	
  capability.generate
<ul	
  id="user-­‐list"	
  data-­‐token="<%=	
  token	
  %>">
<%	
  @users.each	
  do	
  |user|	
  %>
	
  	
  	
  	
  <li>
                	
  	
  <%=	
  user.name	
  %>	
  -­‐	
  
                	
  	
  <a	
  href="#"	
  rel="phone-­‐number">
                        	
  	
  <%=	
  user.name	
  %>
                	
  	
  </a>
                </li>
<%	
  end	
  %>
</ul>
<ul	
  id="user-­‐list"	
  data-­‐token="eyJ0...">
	
  	
  <li>
	
  	
  	
  	
  	
  Pablo	
  Cantero
	
  	
  	
  	
  	
  <a	
  href="#"	
  rel="phone-­‐number">
	
  	
  	
  	
  	
  	
  	
  +551199...
	
  	
  	
  	
  	
  </a>
	
  	
  	
  </li>
</ul>
<script src="//static.twilio.com/libs/twiliojs/1.1/twilio.min.js"></script>
$	
  -­‐>
	
  	
  Twilio.Device.setup	
  $("#user-­‐list").data	
  "token"
	
  
	
  	
  $("a[rel=phone-­‐number]").on	
  "click",	
  (e)	
  -­‐>
	
  	
  	
  	
  e.preventDefault()

	
  	
  	
  	
  if	
  Twilio.Device.status()	
  !=	
  "ready"
	
  	
  	
  	
  	
  	
  Twilio.Device.disconnectAll()
	
  	
  	
  	
  	
  	
  return

	
  	
  	
  	
  $this	
  =	
  $	
  e.target
	
  	
  	
  	
  Twilio.Device.connect	
  $this.text()
$(function(){

	
  	
  Twilio.Device.setup($("#user-­‐list").data("token"));
	
  
	
  	
  $("a[rel=phone-­‐number]").on("click",	
  function(e){

	
  	
  	
  	
  e.preventDefault();

	
  	
  	
  	
  if(Twilio.Device.status()	
  !==	
  "ready"){
	
  	
  	
  	
  	
  	
  Twilio.Device.disconnectAll();
	
  	
  	
  	
  	
  	
  return;
	
  	
  	
  	
  }

	
  	
  	
  	
  $this	
  =	
  $(e.target);

	
  	
  	
  	
  Twilio.Device.connect($this.text());
	
  	
  });

});
Other examples
Twilio + Monit =
Pingdom Mingdom
https://gist.github.com/phstc/5044114
#	
  /etc/monitrc
	
  
check	
  host	
  localhost	
  with	
  address	
  127.0.0.1
	
  	
  if	
  failed	
  port	
  8080
	
  	
  	
  	
  with	
  timeout	
  15	
  seconds
	
  	
  	
  	
  then
	
  	
  	
  	
  exec	
  "ruby	
  /usr/bin/notify-­‐site-­‐is-­‐down.rb'"
#	
  /usr/bin/notify-­‐site-­‐is-­‐down.rb
	
  
require	
  "rubygems"
require	
  "twilio-­‐ruby"
	
  
account_sid	
  =	
  ENV["TWILIO_ACCOUNT_SID"]
auth_token	
  	
  =	
  ENV["TWILIO_AUTH_TOKEN"]
	
  
@client	
  =	
  Twilio::REST::Client.new(account_sid,	
  
auth_token)
	
  
@client.account.SMS.messages.create(
	
  	
  from:	
  "+5511…",
	
  	
  to:	
  "+5511…",
	
  	
  body:	
  "Houston	
  we	
  have	
  a	
  problem,	
  the	
  website	
  is	
  
down."
)
SMS Forwarding

<Response>
	
  	
  <Sms	
  from="+5511.."	
  to="+5511...">
	
  	
  	
  	
  Hello	
  World
	
  	
  </Sms>
</Response>
Twimlets
                          https://www.twilio.com/labs/twimlets

Twimlets are tiny web applications that implement basic voice and text functionality. Think
                        of them as "Widgets" in the web world.
Apps which talk
•   Alerts & Notifications

•   Rewards

•   Reminders

•   System administration

•   Sales Automation

•   Bike Sampa

•   Identity Verification

•   Security token

•   Support Roulette ;)
Thank you

     Pablo Cantero
    @pablocantero
http://pablocantero.com

More Related Content

What's hot

What's hot (15)

WEC Content Elements API
WEC Content Elements APIWEC Content Elements API
WEC Content Elements API
 
Mojolicious: what works and what doesn't
Mojolicious: what works and what doesn'tMojolicious: what works and what doesn't
Mojolicious: what works and what doesn't
 
LAMP_TRAINING_SESSION_8
LAMP_TRAINING_SESSION_8LAMP_TRAINING_SESSION_8
LAMP_TRAINING_SESSION_8
 
HTML5 Web Messaging
HTML5 Web MessagingHTML5 Web Messaging
HTML5 Web Messaging
 
Ben Bridts - $ aws help
Ben Bridts -  $ aws helpBen Bridts -  $ aws help
Ben Bridts - $ aws help
 
Blog Hacks 2011
Blog Hacks 2011Blog Hacks 2011
Blog Hacks 2011
 
Api pain points
Api pain pointsApi pain points
Api pain points
 
Tutorial
TutorialTutorial
Tutorial
 
PHP - RAQ (Rarely Asked Questions!)
PHP - RAQ (Rarely Asked Questions!)PHP - RAQ (Rarely Asked Questions!)
PHP - RAQ (Rarely Asked Questions!)
 
[PL] Jak nie zostać "programistą" PHP?
[PL] Jak nie zostać "programistą" PHP?[PL] Jak nie zostać "programistą" PHP?
[PL] Jak nie zostać "programistą" PHP?
 
Hack this site
Hack this siteHack this site
Hack this site
 
API Pain Points (PHPNE)
API Pain Points (PHPNE)API Pain Points (PHPNE)
API Pain Points (PHPNE)
 
fb-researchの舞台裏No.2~技術編~(HatchUp主催 渋谷Facebookアプリ勉強会)
fb-researchの舞台裏No.2~技術編~(HatchUp主催 渋谷Facebookアプリ勉強会)fb-researchの舞台裏No.2~技術編~(HatchUp主催 渋谷Facebookアプリ勉強会)
fb-researchの舞台裏No.2~技術編~(HatchUp主催 渋谷Facebookアプリ勉強会)
 
Intro to Silex
Intro to SilexIntro to Silex
Intro to Silex
 
自社サービスのAPIをOAuth2対応にして公開した
自社サービスのAPIをOAuth2対応にして公開した自社サービスのAPIをOAuth2対応にして公開した
自社サービスのAPIをOAuth2対応にして公開した
 

Viewers also liked

Nota seminar kesempurnaan solat
Nota seminar kesempurnaan solatNota seminar kesempurnaan solat
Nota seminar kesempurnaan solat
Imran
 
Segmintation
SegmintationSegmintation
Segmintation
Ahmad rub
 
Презентація на семінар для грантерів, 10-11 квітня 2014
Презентація на семінар для грантерів, 10-11 квітня 2014Презентація на семінар для грантерів, 10-11 квітня 2014
Презентація на семінар для грантерів, 10-11 квітня 2014
Olena Ursu
 
програма е урядування львів
програма е урядування львівпрограма е урядування львів
програма е урядування львів
Olena Ursu
 
положение о конкурсе учебных кабинетов
положение о конкурсе учебных кабинетовположение о конкурсе учебных кабинетов
положение о конкурсе учебных кабинетов
Demanessa
 
customer journey
customer journeycustomer journey
customer journey
Ahmad rub
 
Mgsdp for ualrc 13 09 2012
Mgsdp for ualrc 13 09 2012Mgsdp for ualrc 13 09 2012
Mgsdp for ualrc 13 09 2012
Olena Ursu
 
Akhlaq warga muhammadiyah
Akhlaq warga muhammadiyahAkhlaq warga muhammadiyah
Akhlaq warga muhammadiyah
Raraz Augusta
 
византия
византиявизантия
византия
Demanessa
 

Viewers also liked (20)

Nota seminar kesempurnaan solat
Nota seminar kesempurnaan solatNota seminar kesempurnaan solat
Nota seminar kesempurnaan solat
 
Ukr 2.part ii of ccs ppt with allimi (06.07.2015)
Ukr 2.part ii of ccs ppt with allimi (06.07.2015)Ukr 2.part ii of ccs ppt with allimi (06.07.2015)
Ukr 2.part ii of ccs ppt with allimi (06.07.2015)
 
Saoirse B
Saoirse BSaoirse B
Saoirse B
 
easter
eastereaster
easter
 
หนึ่ง
หนึ่งหนึ่ง
หนึ่ง
 
Are resumesdead
Are resumesdeadAre resumesdead
Are resumesdead
 
Placemaking Conference: Walkable Cities
Placemaking Conference: Walkable CitiesPlacemaking Conference: Walkable Cities
Placemaking Conference: Walkable Cities
 
Segmintation
SegmintationSegmintation
Segmintation
 
Annual-Report-RTB-2014
Annual-Report-RTB-2014Annual-Report-RTB-2014
Annual-Report-RTB-2014
 
Презентація на семінар для грантерів, 10-11 квітня 2014
Презентація на семінар для грантерів, 10-11 квітня 2014Презентація на семінар для грантерів, 10-11 квітня 2014
Презентація на семінар для грантерів, 10-11 квітня 2014
 
програма е урядування львів
програма е урядування львівпрограма е урядування львів
програма е урядування львів
 
положение о конкурсе учебных кабинетов
положение о конкурсе учебных кабинетовположение о конкурсе учебных кабинетов
положение о конкурсе учебных кабинетов
 
customer journey
customer journeycustomer journey
customer journey
 
Mgsdp for ualrc 13 09 2012
Mgsdp for ualrc 13 09 2012Mgsdp for ualrc 13 09 2012
Mgsdp for ualrc 13 09 2012
 
Docs
DocsDocs
Docs
 
Akhlaq warga muhammadiyah
Akhlaq warga muhammadiyahAkhlaq warga muhammadiyah
Akhlaq warga muhammadiyah
 
византия
византиявизантия
византия
 
Cs3 3
Cs3 3Cs3 3
Cs3 3
 
Welcome
WelcomeWelcome
Welcome
 
Milagro Tequila Cocktail Recipes
Milagro Tequila Cocktail RecipesMilagro Tequila Cocktail Recipes
Milagro Tequila Cocktail Recipes
 

Similar to Look Who's Talking

[CB16] Esoteric Web Application Vulnerabilities by Andrés Riancho
[CB16] Esoteric Web Application Vulnerabilities by Andrés Riancho[CB16] Esoteric Web Application Vulnerabilities by Andrés Riancho
[CB16] Esoteric Web Application Vulnerabilities by Andrés Riancho
CODE BLUE
 
Lets have some fun with twilio open tok
Lets have some fun with   twilio open tokLets have some fun with   twilio open tok
Lets have some fun with twilio open tok
mirahman
 
Real time voice call integration - Confoo 2012
Real time voice call integration - Confoo 2012Real time voice call integration - Confoo 2012
Real time voice call integration - Confoo 2012
Michael Peacock
 
Ruby on Rails For Java Programmers
Ruby on Rails For Java ProgrammersRuby on Rails For Java Programmers
Ruby on Rails For Java Programmers
elliando dias
 

Similar to Look Who's Talking (20)

Phone calls and sms from php
Phone calls and sms from phpPhone calls and sms from php
Phone calls and sms from php
 
[CB16] Esoteric Web Application Vulnerabilities by Andrés Riancho
[CB16] Esoteric Web Application Vulnerabilities by Andrés Riancho[CB16] Esoteric Web Application Vulnerabilities by Andrés Riancho
[CB16] Esoteric Web Application Vulnerabilities by Andrés Riancho
 
Tech campmemphis slides_post_session
Tech campmemphis slides_post_sessionTech campmemphis slides_post_session
Tech campmemphis slides_post_session
 
Lets have some fun with twilio open tok
Lets have some fun with   twilio open tokLets have some fun with   twilio open tok
Lets have some fun with twilio open tok
 
CI/CD on Windows-Based Environments - Noam Shochat, eToro - DevOpsDays Tel Av...
CI/CD on Windows-Based Environments - Noam Shochat, eToro - DevOpsDays Tel Av...CI/CD on Windows-Based Environments - Noam Shochat, eToro - DevOpsDays Tel Av...
CI/CD on Windows-Based Environments - Noam Shochat, eToro - DevOpsDays Tel Av...
 
Petr Dvořák: Mobilní webové služby pohledem iPhone developera
Petr Dvořák: Mobilní webové služby pohledem iPhone developeraPetr Dvořák: Mobilní webové služby pohledem iPhone developera
Petr Dvořák: Mobilní webové služby pohledem iPhone developera
 
- Webexpo 2010
- Webexpo 2010- Webexpo 2010
- Webexpo 2010
 
The Future of the Web - Cold Front conference 2016
The Future of the Web - Cold Front conference 2016The Future of the Web - Cold Front conference 2016
The Future of the Web - Cold Front conference 2016
 
The Future of Progressive Web Apps - View Source conference, Berlin 2016
The Future of Progressive Web Apps - View Source conference, Berlin 2016The Future of Progressive Web Apps - View Source conference, Berlin 2016
The Future of Progressive Web Apps - View Source conference, Berlin 2016
 
Mojolicious - Perl Framework for the Real-Time Web (Lightning Talk)
Mojolicious - Perl Framework for the Real-Time Web (Lightning Talk)Mojolicious - Perl Framework for the Real-Time Web (Lightning Talk)
Mojolicious - Perl Framework for the Real-Time Web (Lightning Talk)
 
Simple callcenter platform with PHP
Simple callcenter platform with PHPSimple callcenter platform with PHP
Simple callcenter platform with PHP
 
Real time voice call integration - Confoo 2012
Real time voice call integration - Confoo 2012Real time voice call integration - Confoo 2012
Real time voice call integration - Confoo 2012
 
How to Integrate Text and Phone Messaging with your Website
How to Integrate Text and Phone Messaging with your WebsiteHow to Integrate Text and Phone Messaging with your Website
How to Integrate Text and Phone Messaging with your Website
 
Practical PHP by example Jan Leth-Kjaer
Practical PHP by example   Jan Leth-KjaerPractical PHP by example   Jan Leth-Kjaer
Practical PHP by example Jan Leth-Kjaer
 
Writing a slack chatbot seattle
Writing a slack chatbot seattleWriting a slack chatbot seattle
Writing a slack chatbot seattle
 
Smashing the stats for fun (and profit)
Smashing the stats for fun (and profit)Smashing the stats for fun (and profit)
Smashing the stats for fun (and profit)
 
Payments On Rails
Payments On RailsPayments On Rails
Payments On Rails
 
My app is secure... I think
My app is secure... I thinkMy app is secure... I think
My app is secure... I think
 
Api
ApiApi
Api
 
Ruby on Rails For Java Programmers
Ruby on Rails For Java ProgrammersRuby on Rails For Java Programmers
Ruby on Rails For Java Programmers
 

Recently uploaded

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Recently uploaded (20)

04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 

Look Who's Talking

  • 1. Look Who’s Talking Pablo Cantero @pablocantero http://pablocantero.com 28° GURU-SP - 09/03/2013
  • 2. Why I started with it?
  • 3. We had a problem We needed a phone support 24x7 in case the website becomes unavailable and other possible urgent issues.
  • 4.
  • 5.
  • 6. Solution We decided to use a Communication as a Service (CaaS) to register a fixed phone number in Brazil, which receives a call and redirects it to the developer on duty cellphone.
  • 8. Why Twilio? • No Contracts • Pay as you go • Simple and well documented API
  • 9. Brazilian pricing • To receive a call = 1¢/minute • To make a call = 33¢/minute • To send a text: starts at =1.2¢/message • Fixed brazilian number = 3$/month • Fixed american number = 1$/month
  • 11.
  • 13. Call me maybe WebRTC
  • 15. account_sid      =  ENV["TWILIO_ACCOUNT_SID"] auth_token        =  ENV["TWILIO_AUTH_TOKEN"] twiml_app_sid  =  ENV["TWILIO_TWIML_APP"] capability  =  Twilio::Util::Capability.new   account_sid,  auth_token capability.allow_client_outgoing  twiml_app_sid   token  =  capability.generate
  • 16. <ul  id="user-­‐list"  data-­‐token="<%=  token  %>"> <%  @users.each  do  |user|  %>        <li>    <%=  user.name  %>  -­‐      <a  href="#"  rel="phone-­‐number">    <%=  user.name  %>    </a> </li> <%  end  %> </ul>
  • 17. <ul  id="user-­‐list"  data-­‐token="eyJ0...">    <li>          Pablo  Cantero          <a  href="#"  rel="phone-­‐number">              +551199...          </a>      </li> </ul>
  • 19. $  -­‐>    Twilio.Device.setup  $("#user-­‐list").data  "token"      $("a[rel=phone-­‐number]").on  "click",  (e)  -­‐>        e.preventDefault()        if  Twilio.Device.status()  !=  "ready"            Twilio.Device.disconnectAll()            return        $this  =  $  e.target        Twilio.Device.connect  $this.text()
  • 20. $(function(){    Twilio.Device.setup($("#user-­‐list").data("token"));      $("a[rel=phone-­‐number]").on("click",  function(e){        e.preventDefault();        if(Twilio.Device.status()  !==  "ready"){            Twilio.Device.disconnectAll();            return;        }        $this  =  $(e.target);        Twilio.Device.connect($this.text());    }); });
  • 22. Twilio + Monit = Pingdom Mingdom https://gist.github.com/phstc/5044114
  • 23. #  /etc/monitrc   check  host  localhost  with  address  127.0.0.1    if  failed  port  8080        with  timeout  15  seconds        then        exec  "ruby  /usr/bin/notify-­‐site-­‐is-­‐down.rb'"
  • 24. #  /usr/bin/notify-­‐site-­‐is-­‐down.rb   require  "rubygems" require  "twilio-­‐ruby"   account_sid  =  ENV["TWILIO_ACCOUNT_SID"] auth_token    =  ENV["TWILIO_AUTH_TOKEN"]   @client  =  Twilio::REST::Client.new(account_sid,   auth_token)   @client.account.SMS.messages.create(    from:  "+5511…",    to:  "+5511…",    body:  "Houston  we  have  a  problem,  the  website  is   down." )
  • 25. SMS Forwarding <Response>    <Sms  from="+5511.."  to="+5511...">        Hello  World    </Sms> </Response>
  • 26. Twimlets https://www.twilio.com/labs/twimlets Twimlets are tiny web applications that implement basic voice and text functionality. Think of them as "Widgets" in the web world.
  • 27. Apps which talk • Alerts & Notifications • Rewards • Reminders • System administration • Sales Automation • Bike Sampa • Identity Verification • Security token • Support Roulette ;)
  • 28. Thank you Pablo Cantero @pablocantero http://pablocantero.com