News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

ThinkPHP Blog:
Accessing Nike+ data with PHP
May 15, 2008 @ 10:26:40

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.

0 comments voice your opinion now!
nikeplus data xml simplexml class resmuslerdorf


blog comments powered by Disqus

Similar Posts

Konstantin's Blog: The Twitter OAuth PHP Class Gets Even Better

Developer.com: PHP 5 OOP - Protecting Data With Visibility

David Sklar\'s Blog: Parsing Reasonably-sized HTTP Responses

Nick Halstead's Blog: Making a TAG Cloud out of Zend_Cache

Phil Sturgeon's Blog: PHP Format abstraction with a simple class


Community Events





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


symfony community conference bugfix zendserver framework developer introduction podcast laravel language series library opinion deployment release interview list api tips

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