Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 530 Bytes

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