News Feed
Sections

News Archive


Community Events






Don't see your event here?
Let us know!


ThinkPHP Blog:
Accessing Nike+ data with PHP
0 comments :: posted Thursday May 15, 2008 @ 10:26:40
voice your opinion now!

On the ThinkPHP blog today, Stephanie Ehrling has posted about a method for PHP to take in the output of the Nike+ equipment and put it into a usable form.

There is no official API that allows you to use the raw data. Nevertheless the data are sent to the Flash via XML so there is a chance to use them. For PHP Rasmus Lerdorf himself has implemented a class to access these data. The class allows to authenticate a user and fetch the running data of a user in a XML-Format

She gives an example of it in action - simple creation of an object then a call with the username and password. Behind the scenes, the data is pulled in and dropped into a SimpleXML object that includes total distance, total calories burned and data on the most recent run.

tagged with: nikeplus data xml simplexml class resmuslerdorf



job conference releases framework application PHP5 zendframework book ajax security PEAR release example zend developer cakephp mysql database code package

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework