Home > php教程 > php手册 > body text

ucloud发送短信的php sdk

WBOY
Release: 2016-06-06 19:54:16
Original
1416 people have browsed it

在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


Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template