• Register
  • Log In
  • Home
  • Quick Start
    • Configurator
    • Download YUI 3
  • Documentation
    • User Guides
    • Examples
    • API Docs
    • Environments
    • Tutorials
  • Community
    • Gallery
    • Blog
    • Forums
    • YUI Theater
    • Calendar
  • Contribute
    • YUI on GitHub »
    • File a Ticket
    • View Tickets
    • Dashboard
  • Other Projects
    • Shifter »
    • Yogi »
    • YUI 2
    • YUI Doc »
    • YUI Test
    • YUI Website
    • YUI Compressor »
    • YUI Builder »
    • YUI PHP Loader
    • Grid Builder »
    • Skin Builder »
  • YUI
  • >
  • Community
  • >
  • Gallery

Gallery

Modules

  • Home
  • Featured
  • Popular
  • New
  • All

Documentation

  • Yogi Documentation
  • Shifter Documentation
  • Developer Guide
  • Module Setup

Tag Cloud

Context Navigation

    YUI Library is not responsible for bugs or support with this module. It is available as a free service. For support please contact the module owner with the provided links.

    Flickr API (gallery-flickr-api) on cdn

    Last Updated: 02/17/11
    + 0 -

    Eric Gelinas

    YUI Contributor

    Featured Item

    Created: 01/14/11
    Last CDN Push: 02/16/11
    Build Tag: gallery-2011.02.16-20-31
    Project: YUI 3
    License: YUI BSD
    YUI Version: 3.3.0
    Free for use.
    Module Image

    This gallery module is designed to make requests to the Flickr API as simple as possible. This module is in use on the Flickr Photo page.

    • Tags:
    • standardpixel
    • flickr
    • api
    • io
    • Download
    • Docs
    • Homepage
    • Bugs
    • Source
    • Example
    • Forum
    • History

    This is a simple example of getting an array of photos from the 'flickr.panda.getPhotos' api method.

    For more information on this method visit:
    http://www.flickr.com/services/api/flickr.panda.getPhotos.html

    We will need to provide the "callMethod" function with the following arguments for this example:

    • api_key*: (Required) Your API application key. One can be obtained through the Flickr App Garden

    • panda_name*: (Required) The name of the panda to ask for photos from. We will be using "ling ling"
    • extras*: (Optional) A comma-delimited list of extra information to fetch for each returned record. We will be using "license, date_taken, and owner_name"
    • per_page* (Optional) Number of photos to return per page. We will request 50 results.
    • page* (Optional) The page of results to return. We will request page 1

    Code Sample

    <script src="http://yui.yahooapis.com/3.3.0/build/yui/yui-min.js"></script>
    YUI({
        //Last Gallery Build of this module
        gallery: 'gallery-2011.02.16-20-31'
    }).use('gallery-flickr-api', function(Y) {
     
      Y.flickrAPI.callMethod('flickr.panda.getPhotos',
        {
          api_key: 'your_api_key',
          panda_name: 'ling ling',
          extras: 'license, date_taken, owner_name',
          per_page: 50,
          page:1,
        },
        {
          success : function(response_object) {
            //Success Code
          },
          failure : function(response_object) {
            //Failure Code
          }
        });
     
    });

    Forum Posts

    Subject Author Date
    triggering calls on events paolo nesti poggi 04/12/11
    Re: triggering calls on events paolo nesti poggi 04/13/11

    © 2006-2013 Yahoo! Inc. All rights reserved.
    All code on this site is licensed under the BSD License unless stated otherwise.
    About This Site · Security Contact Info