Android Push - Aurora Push

WBOY
Release: 2016-07-25 08:50:35
Original
861 people have browsed it
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.                        
  13.                         print_r($res);
  14.                         exit();       
复制代码


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!