コード例 #1
0
    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);
        }
    }
コード例 #2
0
ファイル: SendSMSController.cs プロジェクト: mariobot/twilio
 public ActionResult ListAddress()
 {
     var twilio = new TwilioRestClient(AccountSid, AuthToken);
       var options = new AddressListRequest();
       var listAddress = twilio.ListAddresses(options);
       return View(listAddress);
 }