c# - Twilio Test Credentials: WaitingForActivation when I try to purchase a number? -
i have next code:
public void purchasenumber(string username, string phonenumber) { var twilio = new twiliorestclient(accountsid, authtoken); var options = new phonenumberoptions { voiceurl = "", phonenumber = "+15005550006" }; var number = twilio.addincomingphonenumber(options); console.writeline(number.id); // sid not available return; }
two issues - number.sid
not available, samples display, , number.status
shows "waitingforactivation". doing wrong?
update: happens 'unavailable' number, not 'valid , available' one. usage of magic numbers available trial accounts? am using sid , token https://www.twilio.com/user/account/developer-tools/test-credentials
page.
this happens if alter 1 of characters of sid - seems sid invalid, despite grabbing straight off of /developer-tools
page.
final update - because using prerelease version of twilio nuget package. uninstalled , installed non-prerelease version , sid
became available , started working.
final update - because using prerelease version of twilio nuget package. uninstalled , installed non-prerelease version , sid became available , started working.
c# twilio
No comments:
Post a Comment