【发布时间】:2015-05-22 06:58:49
【问题描述】:
我想通过 Nexmo API 分配回调 URL。
我说的是这个网址:
我只是通过 Nexmo API 购买新的短信号码:Nexmo API docs: 'Buy number'。 我为此使用 .NET,但语言无关紧要。
var client = new WebClient();
client.Headers[HttpRequestHeader.ContentType] = "application/x-www-form-urlencoded";
string ApiBuyUrl = "http://rest.nexmo.com/number/buy";
string ApiBuyParams = "api_key={0}&api_secret={1}&country={2}&msisdn={3}";
// params assignment
string buyResultString = client.UploadString(ApiBuyUrl, apiBuyParams);
然后我想将回调 URL 分配给这个刚购买的号码。
我阅读了文档,但没有找到任何相关信息。是否可以在运行时实现?
谢谢。
【问题讨论】: