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 addresses = twilio.ListAddresses(); foreach (var address in addresses.Addresses) { Console.WriteLine(address.FriendlyName); } }
public ActionResult ListAddress() { var twilio = new TwilioRestClient(AccountSid, AuthToken); var options = new AddressListRequest(); var listAddress = twilio.ListAddresses(options); return View(listAddress); }