Blog Posts by Dan Theurer

  • Flickr loves JSON

    Cal just posted great news in the yws-flickr group: JSON support for all calls!

    we've just released support for all methods to optionally return JSON
    or serialized PHP responses. the documentation can be found here:

    if you find any problems, we'd love to hear about them (and fix them)
    as soon as possible. if you can think of any other output formats
    you'd find useful then feel free to suggest them and we'll see what we
    can do :)

    hopefully we'll be seeing a lot of you at tomorrow's Yahoo! Open Hack
    Day, hacking on the flickr APIs:


    Dan Theurer

    Read More »from Flickr loves JSON
  • getTime – Our First Utility Web Service

    getTime is a handy service for building AJAX applications and learning how to work with XML and web services. When called, getTime returns the current time on the Yahoo! server, in your choice of XML, serialized PHP, or JSON.

    The first application using getTime is the countdown timer on We're using the serialized PHP result, unserialze it and pull the value out of the array.

    $timeUrl = "";
    $ch = curl_init();
    curl_setopt( $ch, CURLOPT_URL, $timeUrl );
    curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
    $result = curl_exec($ch);
    $result = unserialize($result);
    $timestamp = $result['Result']['Timestamp'];

    Yes, this may be overkill ... :)

    Dan Theurer

    Read More »from getTime – Our First Utility Web Service
  • AJAX Maps API update – Version 3.4!

    Version 3.4 of the Yahoo! AJAX Maps comes with great additions that make it very tempting to upgrade, which is not required if you don't want to take advantage of the added functionality. The new features include polyline overlays, an option to export GeoRSS from a map, traffic overlays (which is already possible in the Flash version), and more.

    Interested? Have a look at the documentation or the Local blog.

    Dan Theurer

  • Security Best Practices – Better safe than sorry!

    The security section got retired in early 2009.

    We are happy to announce the latest addition to our Developer Central section. Hidden between various language-specific Developer Centers, the SDK, and the YUI Libraries, you?l find a new section: Security Best Practices.

    Security Best Practices includes useful information about writing secure applications for secure servers, such as how to protect your application against SQL injections, what needs to be done to prevent XSS or request forgeries, and more.

    Dan Theurer

  • Got Questions? We’ve got Answers!

    Yahoo! Answers today launched four Answers APIs. You can search for questions about anything, narrow your search down by category or user, and see full details of any question, including all the answers.

    In addition to XML and serialized PHP, the Answers APIs supply results in JSON format, so you can write proxy-free Web applications. Much more is online at the Developer Network, including our first API Explorer, so you can try things out right there on the site without writing a line of code.

    Dan Theurer


(15 Stories)