简体   繁体   English

通过Nexmo API将回调URL分配给短信号码

[英]Assign callback URL to the sms number via Nexmo API

I want to assign callback URL via Nexmo API. 我想通过Nexmo API分配回调URL。

I'm saying about this URL: 我说的是这个网址: Nexmo tting

I just buy the new SMS number via Nexmo API: Nexmo API docs: 'Buy number' . 我只是通过Nexmo API购买了新的SMS号码: Nexmo API docs:'Buy number' I'm using .NET for this, but the language doesn't matter. 我为此使用.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);

Then I want to assign to this just bought number the Callback URL. 然后,我想给这个刚购买的号码分配回叫URL。

I read the documentation, but didn't find anything about it. 我阅读了文档,但没有找到任何相关信息。 Is it possible to implement in the runtime? 是否可以在运行时实现?

Thanks. 谢谢。

I've found the HTTP request to update the Callback URL of the specified phone number. 我发现HTTP请求更新了指定电话号码的回调URL。

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} POST / number / update?api_key = {api_key}&api_secret = {api_secret}&country = {country}&msisdn = {msisdn}&moHttpUrl = {url}&moSmppSysType = {sysType}&voiceCallbackType = {type}&voiceCallbackValue = {value}&voiceStatusCallback = {stat }

Here you will find more information. 在这里您将找到更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM