Android推送之极光推送




  1. include('jpush.php');
  2. $n_title = '123ios';
  3. $n_content = '123ios123ios123ios123ios123ios123ios';
  4. $appkeys='48dabb0655de51355ff7536c';
  5. $masterSecret='80cb449b8e137f411ede3d45';
  6. $sendno = 4;
  7. $receiver_value = '';
  8. $platform = 'android,ios' ;
  9. $msg_content = json_encode(array('n_builder_id'=>0, 'n_title'=>$n_title, 'n_content'=>$n_content));
  10. $obj = new jpush($masterSecret,$appkeys);
  11. $res = $obj->send($sendno, 4, $receiver_value, 1, $msg_content, $platform);
  12. print_r($res);
  13. exit();
复制代码


09-17 13:36