//初始化 核心sdk
new Aliyun\Core\Config();
$accessKeyId = '你的accessKeyId ';
$accessKeySecret = '你的 accessKeySecret';
$iClientProfile = Aliyun\Core\Profile\DefaultProfile::getProfile("cn-hangzhou", $accessKeyId, $accessKeySecret);
$client = new \Aliyun\Core\DefaultAcsClient($iClientProfile);
$request = new \Alicloud\Push\Request\V20160801\PushRequest();
//中间各种初始化 赋值操作
//详情看 vendor\wuheng\aliyun-open-api-push\Push\Request\V20160801\PushRequest.php
//里面的代码
$request->setAppKey('你的用用 appkey');
$request->setTitle('推送标题');
$request->setBody('推送内容');
//各种参数 赋值
//.......................................
//发送推送
$client->getAcsResponse($this->request);
-
Notifications
You must be signed in to change notification settings - Fork 0
80boys/wuheng-aliyun-open-api-push
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
aliyun-open-api-push 2.0 2016-08-01
Resources
Stars
Watchers
Forks
Packages 0
No packages published