通过 Nexmo API 将回调 URL 分配给短信号码
Assign callback URL to the sms number via Nexmo API
我想通过 Nexmo API 分配回调 URL。
我说的是这个 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。
我阅读了文档,但没有找到任何相关信息。是否可以在运行时实现?
谢谢。
我找到了更新指定 phone 号码的回调 URL 的 HTTP 请求。
POST
/number/update?api_key={api_key}&api_secret={api_secret}&country={country}&msisdn={msisdn}&moHttpUrl={url}&moSmppSysType={sysType}&voiceCallbackType={type}&voiceCallbackValue={value}&voiceStatusCallback={status}
Here您会找到更多信息。
我想通过 Nexmo API 分配回调 URL。
我说的是这个 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。
我阅读了文档,但没有找到任何相关信息。是否可以在运行时实现?
谢谢。
我找到了更新指定 phone 号码的回调 URL 的 HTTP 请求。
POST /number/update?api_key={api_key}&api_secret={api_secret}&country={country}&msisdn={msisdn}&moHttpUrl={url}&moSmppSysType={sysType}&voiceCallbackType={type}&voiceCallbackValue={value}&voiceStatusCallback={status}
Here您会找到更多信息。