Home  >  Article  >  php教程  >  ucloud发送短信的php sdk

ucloud发送短信的php sdk

WBOY
WBOYOriginal
2016-06-06 19:54:161378browse

在ucloud官方的版本中,只有python的sdk可供调用,现提供php的sdk发送短信 项目地址:https://github.com/newjueqi/ucloudsms 使用方法: (1)在config.php中加入下面的配置 把$_ucloud_public_key,$_ucloud_private_key 替换为相应的key (2)调用的方法如下 $

在ucloud官方的版本中,只有python的sdk可供调用,现提供php的sdk发送短信


项目地址:https://github.com/newjueqi/ucloudsms


 使用方法:
(1)在config.php中加入下面的配置
把$_ucloud_public_key,$_ucloud_private_key 替换为相应的key


(2)调用的方法如下


$ucloud=new ucloudsms();
$ucloud->sendSms("xxxxxxxx","hello"); //把"xxxxxxxx"替换为你的手机号


[文章作者]曾健生

[作者邮箱]h6k65@126.com

[作者QQ]190678908

[新浪微博] @newjueqi

[博客]http://blog.csdn.net/newjueqi

          http://blog.sina.com.cn/h6k65


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:PHP访问MySql数据库 初级篇Next article:PHP读写XML文件