FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [View Raw Code]   [Original HTTPS Page]

jpush-api-php-client/doc/grouppush.md at master · jpush/jpush-api-php-client · GitHub

Repository navigation

Latest commit

 

History

History
28 lines (20 loc) · 530 Bytes
  1. jpush-api-php-client
  2. doc

grouppush.md

File metadata and controls

28 lines (20 loc) · 530 Bytes

JPush Group Push

获取 Group Key 和 Group Master Secret

$group_key = 'xxxx';
$group_master_secret = 'xxxx';

初始化

注:Group Key 需拼接 'group-' 使用

$client = new \JPush\Client('group-' . $group_key, $group_master_secret);

简单群组推送

$client->push()
    ->setPlatform('all')
    ->addAllAudience()
    ->setNotificationAlert('Hello, JPush')
    ->send();

Example


Back | FazBrowse Home | New Git URL