composer require wujie/youmeng
<?php
$config = new \Youmeng\Config\Config([
'appKey' => '',
'masterSecret' => '',
'retryNum' => 1,//失败重试次数
'production_mode' => 'true'
]);
<?php
$comMessage = (new \Youmeng\Push\CommonMessage())
->setTitle("")
->setDesc("")
->setMessageType(\Youmeng\Push\Message::TYPE_CUSTOMIZE_CAST)
->setMessageData($alidateId)
->setOtherParams([]);
$sendRequest = new \Youmeng\Request\SendRequest($config);
$data = $sendRequest->androidMessage($signId, $comMessage);
<?php
(new \Youmeng\Request\StatusRequest($config))->status($taskId);
<?php
(new \Youmeng\Request\CancelRequest($config))->cancel($taskId);
<?php
(new \Youmeng\Request\UpdateRequest($config))->update($content);