]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Document API Key Option
authorstevenaw <sweerdenburg@gmail.com>
Wed, 26 Jan 2011 21:26:33 +0000 (16:26 -0500)
committerstevenaw <sweerdenburg@gmail.com>
Wed, 26 Jan 2011 21:26:33 +0000 (16:26 -0500)
plugins/lastfm/popcorn.lastfm.js

index fb54577295b3e31ff9f4e6e1761181a4107bd727..d7a095da8a260f25e97ee9381e900d9e4a81e9e9 100644 (file)
@@ -12,18 +12,20 @@ var lastFMcallback;
    * Artist is the name of who's LastFM information you wish to show
    * Target is the id of the document element that the images are
    *  appended to, this target element must exist on the DOM
+   * ApiKey is the API key registered with LastFM for use with their API
    * 
    * @param {Object} options
    *  
    * Example:
      var p = Popcorn('#video')
         .lastfm({
-          start:          5,                 // seconds, mandatory
-          end:            15,                // seconds, mandatory
-          artist:         'yacht',           // mandatory
-          target:         'lastfmdiv'        // mandatory
+          start:          5,                                    // seconds, mandatory
+          end:            15,                                   // seconds, mandatory
+          artist:         'yacht',                              // mandatory
+          target:         'lastfmdiv',                          // mandatory
+          apikey:         '1234567890abcdef1234567890abcdef'    // mandatory
         } )
-   *
+   *9268727cb4526b3d
    */
   Popcorn.plugin( "lastfm" , (function(){