脚本宝典收集整理的这篇文章主要介绍了使用php问题代理推送通知,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
<?PHP include("config.PHP"); $args = http_build_query(array( 'certPassword' => 'XXXXXXXX','cert' => 'http://kyven.co.za/mibrand/certificate/XXXX.p12','PRoduction' => false,'device' => null,'packageName' => 'za.co.bonyelo.mibrand','email' => 'kyri88@gmail.COM','tyPE' => 1,'auth' => 'XXXXXXXXXXXXXXXXXXXXXXXXXX','body' => 'test')); $opts = array('http' => array( 'method' => 'POST','header' => 'Content-type: application/x-www-form-urlencoded','content' => $args ) ); $context = stream_context_create($opts); $response = file_get_contents("https://codename- one.appspot.com/sendPushMessage",false,$context); die(json_encode($response)); ?>
<?PHP include("config.PHP"); $args = http_build_query(array('token' => 'XXXXXXXXXXXXXXXXXXX','certPassword' => 'XXXXXXXX','cert' => 'http://XXXXXXX/XXXXX/XXXXX/Certificates.p12','device' => 'cn1-ios-XXXXXXXXXXXXXXXXXXXXXXXX','email' => 'kyri88@gmail.com','auth' => 'XXXXXXXXXXX','body' => 'EAT MY BALLS')); $opts = array('http' => array( 'method' => 'POST','content' => $args ) ); $context = stream_context_create($opts); $response = file_get_contents("https://push.codenameone.com/push/push",$context); die(json_encode($response)); ?>
以上是脚本宝典为你收集整理的使用php问题代理推送通知全部内容,希望文章能够帮你解决使用php问题代理推送通知所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。