C++对接语音通知示例

本文为您提供了C++语言版本的语音通知接口对接DEMO示例

//接口类型:互亿无线语音通知接口。
// 账户注册:请通过该地址开通账户 http://user.ihuyi.com/?AX7wLG
// 注意事项:
//(1)调试期间,请仔细阅读接口文档;
//(2)请使用APIID(查看APIID请登录用户中心->语音通知->帐户及签名设置->APIID)及 APIkey来调用接口;
//(3)该代码仅供接入互亿无线语音通知接口参考使用,客户可根据实际需要自行编写;

// DEMO仅作参考
#include  #include  #include  #include  #include  #include  #include  #include  #include  #include  #include  #include  #include   #define SA struct sockaddr #define MAXLINE 4096 #define MAXSUB  2000 #define MAXPARAM 2048 #define LISTENQ 1024  extern int h_errno;  int basefd; char *hostname = "http://api.vm.ihuyi.com"; char *send_sms_uri = "/webservice/voice.php?method=Submit&format=json";  /** * 发http post请求 */ ssize_t http_post(char *page, char *poststr) {     char sendline[MAXLINE + 1], recvline[MAXLINE + 1];     ssize_t n;     s
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值