Closed paradisaeidae closed 1 year ago
https://www.twilio.com/docs/stun-turn/api The Ruby api endpoint as described: token = @client.tokens.create(ttl: 3600) 'tokens' is no longer a method.
require 'rubygems' require 'twilio-ruby' # Find your Account SID and Auth Token at twilio.com/console # and set the environment variables. See http://twil.io/secure account_sid = ENV['TWILIO_ACCOUNT_SID'] auth_token = ENV['TWILIO_AUTH_TOKEN'] @client = Twilio::REST::Client.new(account_sid, auth_token) token = @client.tokens.create(ttl: 3600) puts token.username
eval error: undefined method `tokens' for #<Twilio::REST::Client:0x00007f0c3721dca8
So I've found the token here: For instance to gain some ice_servers: icy_one = @client.api.account.tokens.create.ice_servers
Issue Summary
https://www.twilio.com/docs/stun-turn/api The Ruby api endpoint as described: token = @client.tokens.create(ttl: 3600) 'tokens' is no longer a method.
Steps to Reproduce
Code Snippet
Exception/Log
Technical details: