Last active
August 29, 2015 14:25
-
-
Save jonahglover/4922e2f798084254b1d8 to your computer and use it in GitHub Desktop.
Retrieving a Twilio Capability Token
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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