Developer Network Home - Help

Yahoo! Developer Network blog: February 2006 Archives

« December 2005 | Main | May 2006 »

Web Services Archive

February 22, 2006

Announcing Release of Special Developers Edition of Yahoo! Widgets

With the release of the Yahoo! Widgets Developer SDK for Windows, developers can download one handy bundle with all of the tools they need to get started building great Widgets. This kit includes a streamlined version of the Widget Engine 3.0 installer plus additional documentation, a handy creation script and a cool new tutorial.

In the future this SDK will be your one-stop shop for future software updates and new developer resources to help you keep up to date with the latest advances in Widget technology. Pull it down today and take your Widget making to the next level, and keep an eye on the Widgets Workshop for new releases and updates.

Posted by ywsblog at 2:21 PM | Comments (1)

Yahoo! Releases Web Services Returning Serialized PHP and PHP Developer Center


Today we're launching our new PHP Developer Center and announcing that many of our web services now return serialized PHP. PHP developers will now be able to consume these web services even more easily than before.

Yahoo!'s Search, Maps, and Travel REST web services now return serialized PHP by simply adding the output=php parameter to any web services request.

For example, suppose you want to search for PHP-related podcasts and return the first five results using our Podcast Search service:

http://api.search.yahoo.com/AudioSearchService/ V1/podcastSearchappid=YahooDemo&query=PHP& results=5&output=php

The request above returns the results as serialized PHP. A simple PHP script can trivially parse the request using PHP's unserialize function which is built-in to all PHP4 and PHP5 implementations:

<?php
$request='http://api.search.yahoo.com/ AudioSearchService/V1/podcastSearch?appid=YahooDemo& query=PHP&results=5&output=php';
$result = file_get_contents($request);
$phparray = unserialize($result);

echo '<pre>';
print_r($phparray);
echo '</pre>';
?>

Or, perhaps you'd like to see a list of public trips to Australia using Yahoo!'s Travel web service:

<?php
$request='http://api.travel.yahoo.com/TripService/ V1/tripSearch?appid=YahooDemo& query=australia&results=10&output=php';
$result = file_get_contents($request);
$phparray = unserialize($result);
echo '<pre>';
print_r($phparray);
echo '</pre>';
?>

With this release, we're continuing to push out the standards for developer-friendliness with our web services offerings. For more information, and a complete list of Yahoo! developer APIs, check out the Yahoo! Developer Network web site.

Posted by ywsblog at 1:48 PM | Comments (4)

Copyright © 2008 Yahoo! Inc. All rights reserved.

Privacy Policy - Terms of Service - Copyright Policy - Job Openings