码迷,mamicode.com
首页 > 移动开发 > 详细

Android推送之极光推送

时间:2015-01-17 18:11:30      阅读:199      评论:0      收藏:0      [点我收藏+]

标签:

Android推送之极光推送

[1].[代码] Android推送之极光推送 跳至 [1]

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
include(‘jpush.php‘);
            $n_title   ‘123ios‘;
            $n_content ‘123ios123ios123ios123ios123ios123ios‘;  
 
            $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‘=>$n_content));       
            $obj = new jpush($masterSecret,$appkeys);           
            $res = $obj->send($sendno, 4, $receiver_value, 1, $msg_content, $platform);     
             
            print_r($res);
            exit();

Android推送之极光推送

标签:

原文地址:http://blog.csdn.net/u014311064/article/details/42805279

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!