Skip to content

Instantly share code, notes, and snippets.

@jonahglover
Last active August 29, 2015 14:25
Show Gist options
  • Save jonahglover/4922e2f798084254b1d8 to your computer and use it in GitHub Desktop.
Save jonahglover/4922e2f798084254b1d8 to your computer and use it in GitHub Desktop.
Retrieving a Twilio Capability Token
capability = Twilio::Util::Capability.new TWILIO_SID, TWILIO_AUTH_TOKEN
capability.allow_client_outgoing(APP_SID)
token = capability.generate
render :json => { :token => token }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment