-
API错误码(应用、签名、模板) - 消息&短信 MSGSMS
MSGSMS.0054 Domain has no authority 域名没有权限。 请联系华为运营人员解决。 MSGSMS.0055 OMP create application is failed OMP创建应用失败。 请联系华为工程师分析解决。
-
发送短信API - 消息&短信 MSGSMS
E000510 The SMS fails to be sent. For details, see status. 短信发送失败,描述见参数status。 查看响应参数中的status确认发送失败的原因,修改后重新发送。
-
发送分批短信API - 消息&短信 MSGSMS
E000510 The SMS fails to be sent. For details, see status. 短信发送失败,描述见参数status。 查看响应参数中的status确认发送失败的原因,修改后重新发送。
-
Go - 消息&短信 MSGSMS
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 package main import ( "fmt" "net/url" "strings" ) func main() { upData := "
-
Go - 消息&短信 MSGSMS
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 package main import ( "fmt" "net/url" "strings" ) func main() { upData := "
-
认证鉴权 - 消息&短信 MSGSMS
全局级服务:全局级服务需要获取全局级别的Token,此时请求body中auth.scope的取值为domain。 调用本服务API需要项目级别的Token,即调用获取用户Token接口时,请求body中auth.scope的取值需要选择project,如下所示。
-
Python - 消息&短信 MSGSMS
smsMsgId: ', keyValues.get('smsMsgId')[0]); print('Failed status: ', status[0]); if __name__ == '__main__': # onSmsStatusReport
-
Python - 消息&短信 MSGSMS
将下列代码样例替换main.py文件内容即可。
-
C# - 消息&短信 MSGSMS
using System.Net; using System.IO; using APIGATEWAY_SDK; using System.Text; namespace DEMO { class Program { static void Main
-
构造请求 - 消息&短信 MSGSMS
将消息体加入后的请求如下所示,加粗的斜体字段需要根据实际值填写,其中username为用户名,********为用户的登录密码,domainname为用户所属的账号名称,xxxxxxxxxxxxxxxxxx为project的名称,如“cn-north-1”,获取方法请参见获取账号、
-
申请激活签名 - 消息&短信 MSGSMS
", "error_detail": "Signature status should be TO_BE_ACTIVATED." } 父主题: 短信签名API
-
C# - 消息&短信 MSGSMS
System.Net.Http; using System.Security.Cryptography; using System.Text; namespace msgsms_csharp_demo { class SendSms { static void Main
-
PHP - 消息&短信 MSGSMS
PHP_EOL; print 'Failed status: ' . $status . PHP_EOL; } } ?
-
Node.js - 消息&短信 MSGSMS
(failed_body); 接收上行短信 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 /*jshint esversion: 6 */ // 上行短信通知样例
-
Node.js - 消息&短信 MSGSMS
(failed_body); 接收上行短信 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 /*jshint esversion: 6 */ // 上行短信通知样例
-
PHP - 消息&短信 MSGSMS
PHP_EOL; print 'Failed status: ' . $status . PHP_EOL; } } ?
-
Java - 消息&短信 MSGSMS
private static final String AUTH_HEADER_VALUE = "WSSE realm=\"SDP\",profile=\"UsernameToken\",type=\"Appkey\""; public static void main
-
认证鉴权 - 消息&短信 MSGSMS
签名SDK与demo中,获取AK/SK之处,需要替换为从消息&短信服务Console中获取的Application Key、Application Secret;获取Endpoint/HOST之处,需要替换为APP接入地址;不涉及获取X-Project-Id、X-Domain-Id
-
Java - 消息&短信 MSGSMS
SendSms.class); public static final String UTF_8 = "UTF-8"; private static CloseableHttpClient client = null; public static void main
-
策略和授权项说明 - 消息&短信 MSGSMS
get GET /v2/{project_id}/msgsms/detail msgsms:service:getServicestatus √ × 添加联系人 msgsms:contacts:create 仅支持Console调用,API方式不支持 msgsms:service