标签:
Android推送之极光推送
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 ();
|
标签:
原文地址:http://blog.csdn.net/u014311064/article/details/42805279