18/09
2016
Wallogit.com
2017 © Pedro Peláez
Sohu SendCloud PHP SDK
, (*1)
composer require widuu/sendcloud:@dev
//自己的API_User和API_KEY
define('API_USER','ttchina_ses');
define('API_KEY','7Ag7e2JzMp36E9pq');
require 'vendor/autoload.php';
// 获取用户信息
$userinfo = Sendcloud\User::get_userinfo();
print_r($userinfo);
// 获取API User
// 参数为空默认为1 0(触发), 1(批量)
$api_user = Sendcloud\User::get_apiuser();
print_r($api_user);
// 域名查询
// 0 测试域名 1 正常域名
$domain = Sendcloud\User::get_domain();
print_r($domain);
如果你使用的ThinkPHP,你可以直接将,Sendcloud文件夹放到Thinkphp\Library下使用。, (*2)
git checkout -b my-new-feature)git commit -am 'Added some feature')git push origin my-new-feature)my-new-feature 分支下发起 Pull Requestblog地址:http://www.widuu.com, (*3)
新浪微博:http://weibo.com/widuu, (*4)