Posts Tagged ‘blackberry’

Sending messages to BlackBerry Push API from PHP

<?php // Source: // http://supportforums.blackberry.com/t5/BlackBerry-Push-Development/Push-API-sample-code-needed/m-p/471216#M109 // create a new cURL resource $ch = curl_init(); $messageid = microtime(); $appid = ‘****-******************’; // Your App ID $password = ‘********’; // Your Pwd $data = ‘–mPsbVQo0a68eIL3OAxnm’. “\r\n” . ‘Content-Type: application/xml; charset=UTF-8’ . “\r\n\r\n” . ‘<?xml version=”1.0″?> <!DOCTYPE pap PUBLIC “-//WAPFORUM//DTD PAP 2.1//EN” “http://www.openmobilealliance.org/tech/DTD/pap_2.1.dtd”> <pap> <push-message push-id=”‘ . $messageid […]

 
Skip to toolbar