Android推送之极光推送
- include('jpush.php');
- $n_title = '123ios';
- $n_content = '123ios123ios123io s123ios123ios123ios';
-
- $appkeys='48dabb0655de51355ff7536c';
- $masterSecret='80cb449b8e137f411ede3d45';
- $sendno = 4;
- $receiver_value = '';
- $platform = 'android,ios' ;
-
- $msg_content = json_encode(array('n_builder_id'=>0, 'n_title'=>$n_title,コンテンツ'=>$n_content));
- $obj = new jpush($masterSecret,$appkeys);
- $res = $obj->send($sendno, 4, $receiver_value, 1, $msg_content, $platform);
-
- print_r($res);
- exit();
复制代
|