当前位置:网站首页>云通信接口更新迭代——SUBMAIL API V4正式上线
云通信接口更新迭代——SUBMAIL API V4正式上线
2022-07-02 14:49:00 【SUBMAIL赛邮】
尊敬的 SUBMAIL 用户:
SUBMAIL API V4 现已正式上线,经过基于 API V3 的重构,API V4 带来重磅升级:
新版 API 吞吐量和处理性能提高了 10 倍,大幅提高了系统稳定性和运行效率。新版 API 提供更多丰富的产品接口功能,优化工作流,API 响应更迅捷。新版接口向下兼容,业务层 100% 兼容旧版 API。
旧版 API 接口进入过渡期,SUBMAIL 继续提供支持,确保正常运行。为了您的使用体验,请及时升级接口。
API V4 具体内容如下:
本次更新涉及产品
短信、国际短信、多媒体彩信(视频/图文)、语音、邮件、地址簿
如何升级?
URL:https://api-v4.mysubmail.com
从 API V3 升级至新版 API,请将原接口域名 api.mysubmail.com
更换为 api-v4.mysubmail.com
即可完成接口升级(仅短信、国际短信、多媒体彩信、语音、邮件、地址簿需更换)。
旧版接口 https://api.mysubmail.com/message/send
> 升级新版接口 https://api-v4.mysubmail.com/sms/send
。
新版接口同时支持 http
和 https
。
新特性
新增
yaml
返回码格式;新版本在原有的
xml
和json
返回码的基础上增加了yaml
格式返回码。要使用yaml
返回码,请在 API 接口的结尾使用.yaml
后缀;例:https://api-v4.mysubmail.com/service/timestamp.yaml
。新增 SHA256 数字签名模式。
新功能与接口变动
短信
新增接口
- 增加 REPORT 离线分析报告接口
sms/reports
(查看开发文档) - 增加群发接口
sms/batchsend
(查看开发文档)与sms/batchxsend
(查看开发文档) - 新版日志接口
sms/log
(查看开发文档) sms/send
(查看开发文档) 和sms/xsend
(查看开发文档) 单发接口支持 GET 方式提交数据
兼容性变动
- 移除了短信发送接口返回码中的
sms_credits
和transactional_sms_credits
短信余额参数;要获取当前余额请使用sms/balance
接口获取 - 模板 API
template/get
中add_date
和edit_date
现在使用时间戳返回
新增 CMPP 协议支持
SUBMAIL 短信开放 CMPP 协议接入。
CMPP 协议是中国移动通信互联网短信网关接口协议(china mobie peerto peer),SUBMAIL CMPP 协议基于中国移动短消息 CMPP V2 通讯协议( CMPP 接入文档)。
短信接口对比
其中 SMS/BatchSend 与 SMS/BatchXSend 为 V4 新增接口。
API | 特性 | 单次请求上线 | 效率 | 稳定性 | 即时性 | 点对点变量 |
---|---|---|---|---|---|---|
SMS/Send | 无需提前创建模板,根据提交的签名和内容自动创建模板 | 1个 | 高 | 低 | 高延迟 | √ |
SMS/XSend | 提交已创建并审核过的短信模板 ID,无需担心发送延迟问题 | 1个 | 低 | 高 | 低延迟 | √ |
SMS/MultiSend | SMS/Send 的一对多发送版本,即 1 条 API 请求发送多个号码 | 50个 | 高 | 低 | 高延迟 | √ |
SMS/MultiXSend | SMS/XSend 的一对多发送版本,即 1 条 API 请求发送多个号码 | 50-200个 | 低 | 高 | 低延迟 | √ |
SMS/BatchSend | SMS/Send 的批量群发版本,即 1 条 API 请求批量发送 | 10000个 | 高 | 低 | 高延迟 | × |
SMS/BatchXSend | SMS/XSend 的批量群发版本,即 1 条 API 请求批量发送 | 10000个 | 高 | 高 | 低延迟 | × |
国际短信
兼容性变动
- 移除了国际短信发送接口返回码中的
account_balance
余额参数;要获取当前余额请使用internationalsms/balance
接口获取 - 模板 API
template/get
中add_date
和edit_date
现在使用时间戳返回
新增 SMPP 协议支持
SUBMAIL 国际短信开放 SMPP 协议接入。
SMPP 协议基于 SMPP 3.4 通讯协议(查看 SMPP 接入文档)。
多媒体彩信
兼容性变动
- 移除了彩信发送接口返回码中的
money_account
余额参数;要获取当前余额请使用mms/balance
接口获取 - 模板 API
template/get
中add_date
和edit_date
现在使用时间戳返回
语音
兼容性变动
- 移除了语音呼叫接口返回码中的
money_account
余额参数;要获取当前余额请使用voice/balance
接口获取
在打造一站式云通信平台的路上,SUBMAIL 永不止步。在瞬息万变的市场竞争和突飞猛进的云计算发展中,唯有不断地升级迭代,才能任重致远。
我们时刻准备着, 及时解决您在使用中遇到的问题;我们无比期待着,您对于 API V4 提出宝贵的反馈和建议。
感谢您对 SUBMAIL 的支持!
SUBMAIL 赛邮云通信
2022 年 06 月 22 日
边栏推荐
- Chapter 3 of hands on deep learning - (1) linear regression is realized from scratch_ Learning thinking and exercise answers
- R and rstudio download and installation tutorial (super detailed)
- 什么是敏捷开发流程
- Changwan group rushed to Hong Kong stocks: the annual revenue was 289million, and Liu Hui had 53.46% voting rights
- [error record] error -32000 received from application: there are no running service protocol
- 人生的开始
- 宝宝巴士创业板IPO被终止:曾拟募资18亿 唐光宇控制47%股权
- What is agile development process
- [leetcode] 14. Préfixe public le plus long
- 伟立控股港交所上市:市值5亿港元 为湖北贡献一个IPO
猜你喜欢
QStyle实现自绘界面项目实战(二)
Timing / counter of 32 and 51 single chip microcomputer
OpenPose的使用
Eye of depth (III) -- determinant of matrix
绿竹生物冲刺港股:年期内亏损超5亿 泰格医药与北京亦庄是股东
【Leetcode】13. Roman numeral to integer
871. 最低加油次数
Configure ARP table entry restrictions and port security based on the interface (restrict users' private access to fool switches or illegal host access)
Connect Porsche and 3PL EDI cases
Dgraph: large scale dynamic graph dataset
随机推荐
IPtables中SNAT、DNAT和MASQUERADE的含义
Idea2021.1 installation tutorial
Use of openpose
What if the default browser cannot be set?
2322. Remove the minimum fraction of edges from the tree (XOR and & Simulation)
Sword finger offer 21 Adjust the array order so that odd numbers precede even numbers
社交元宇宙平台Soul冲刺港股:年营收12.8亿 腾讯是股东
Ap和F107数据来源及处理
AP and F107 data sources and processing
綠竹生物沖刺港股:年期內虧損超5億 泰格醫藥與北京亦莊是股東
Youzan won the "top 50 Chinese enterprise cloud technology service providers" together with Tencent cloud and Alibaba cloud [easy to understand]
Easy language ABCD sort
OpenPose的使用
dstat使用[通俗易懂]
Method of C language self defining function
Eye of depth (II) -- matrix and its basic operations
剑指 Offer 24. 反转链表
GeoServer:发布PostGIS数据源
Exploration of mobile application performance tools
traceroute命令讲解