-3

I am trying to access the phone number on an account in C# with:

var twilio = new TwilioRestClient(AccountSid, AuthToken);    
var account = twilio.GetAccount();

But I can seem to find the Phone Numbers on the account in there.

Any help would be appreciated.

Kara
  • 6,115
  • 16
  • 50
  • 57
  • any details will be really helpfull. What is GetAccount method doing? how do you want to get phone number? – Ehsan Aug 19 '13 at 17:43

1 Answers1

0

Twilio evangelist here.

To get the phone numbers of an account you use the ListIncomingPhoneNumbers method:

var result = twilio.ListIncomingPhoneNumbers();
var numbers = result.IncomingPhoneNumbers;

There a number of different overloads for this method, depending on what you need to do.

Hope that helps.

Devin Rader
  • 10,260
  • 1
  • 20
  • 32