Watch 1 Star 1 Fork 0

Ethan_chan / umeng-pushPHPApache-2.0

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
友盟推送 swoole协程版 spread retract

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

友盟推送 swoole协程版

调用示例

IOS

    use ethan\lib\Android;
    use ethan\lib\Ios;
    use ethan\UpushFactory;

    $sign =""; //推送签名名称
    $token =''; //友盟token
    $appkey =""; 
    $secret ="";
    $result = UpushFactory::getInstance($appkey,$secret)->push(new Ios(),$token,$sign,[
        "subtitle"=>"副标题",
        "title"=>"标题",
        "body"=>"内容"
    ],[
        //自定义的字段
         "type"=>"xx", 
         "value"=>"xxx" ,
     ]);

Andriod

    use ethan\lib\Android;
    use ethan\lib\Ios;
    use ethan\UpushFactory;

    $sign ="";
    $token ="";
    $appkey ="";
    $secret ="";
    $result = UpushFactory::getInstance($appkey,$secret)->push(new Android(),$token,$sign,
    [
       "subtitle"=>"副标题",
       "title"=>"标题",
       "body"=>"内容"
    ],[
        //自定义的字段
         "type"=>"xx", 
         "value"=>"xxx" 
    ]);

Comments ( 0 )

Sign in for post a comment

PHP
1
https://gitee.com/ethan_chan_admin/umeng-push.git
git@gitee.com:ethan_chan_admin/umeng-push.git
ethan_chan_admin
umeng-push
umeng-push
master

Search

231008 48f1a665 1899542 231017 9a6720c6 1899542