Skip to content

Instantly share code, notes, and snippets.

@hadley

hadley/twilio.R Secret

Created March 25, 2015 04:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hadley/e6aadb2df97fc1a1e271 to your computer and use it in GitHub Desktop.
Save hadley/e6aadb2df97fc1a1e271 to your computer and use it in GitHub Desktop.
library(httr)
url <- sprintf("https://api.twilio.com/2010-04-01/Accounts/%s/Messages.XML", sid)
POST(url,
body = list(
From = "+15042520074",
To = "+658XXX",
Body = "Hi"
),
authenticate(sid, auth_token)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment