static void Main(string[] args) { // Find your Account Sid and Auth Token at twilio.com/user/account string AccountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; string AuthToken = "your_auth_token"; var twilio = new TwilioRestClient(AccountSid, AuthToken); var token = twilio.CreateToken(3600); Console.WriteLine(token.Username); }
private Token GetIceServers() { TwilioRestClient client = new TwilioRestClient(Credentials.AccountSid, Credentials.AuthToken); return client.CreateToken(); }