BlackBerry BES Push example code (PHP)

Source: Internet
Author: User
Tags curl

The standard BES Push example code provided by RIM is based on java/domino/asp. There is no official example code for PHP.

2013 Update: BES 10/bds 10 for BlackBerry 10 Mobile Enterprise Push:

Create a new CURL resource
$ch = Curl_init ();

$data = ' subject= '. $entityData->get (' Ticket_title '). ' &id= '. $entityData->get (' Ticket_no '). ' &content= '. $entityData->get (' description '). ' &status= '. $entityData->get (' Ticketstatus '). ' &author=jiang yang&createdtime=2013 ';

Set URL and other appropriate options
curl_setopt ($ch, Curlopt_url, "http://bes101.acmehq.springworks.info:9080 /push? destination=user02@acmehq.springworks.info&port=myapplicationid_ddemo&requesturi=/");
curl_setopt ($ch, Curlopt_header, true);
curl_setopt ($ch, Curlopt_useragent, "BlackBerry Push Service sdk/1.0");
curl_setopt ($ch, curlopt_http_version, curl_http_version_1_1);
curl_setopt ($ch, Curlopt_post, 1);
curl_setopt ($ch, Curlopt_postfields, $data);
curl_setopt ($ch, Curlopt_verbose, true);

Grab URL and pass it to the browser
curl_exec ($ch);

Close CURL resource, with free up system
curl_close ($ch);



2011, BES 5.0 to the BlackBerry OS 5/6/7 Enterprise push

, is based on the reference 1 simplified and can be pushed through BES emulator data to the BlackBerry Emulator client program ECL Sample Client (client code reference the last two links).


 


Reference:

1) BES Push

http://supportforums.blackberry.com/t5/BlackBerry-Push-Development/Push-API-sample-code-needed/td-p/468267

2 BIS Push

Http://us.blackberry.com/devjournals/resources/journals/jan_2005/push_me.jsp#Download_The_Source


3 ECL Java Push example: What is-sample applications demonstrating BlackBerry push technology:emergency contact List

To push an emergency contacts List to a BlackBerry smartphone configure a Browser Channel push with the emergency List. A test application has been created and can is referred to the This article:db-00442.


4) demonstration and analysis of BES push application example


5 PHP Curl Library Introduction, use case

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.