Created
          February 2, 2011 22:01 
        
      - 
      
- 
        Save marr/808545 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var baseurl = "http://api.flickr.com/services/rest/?"; | |
| $(document).ready (function () { | |
| $(function () { | |
| apiKey var = "XXX"; | |
| var secret = "XXX"; | |
| var method = "flickr.auth.getFrob"; | |
| var hash = $. md5 (secret + "api_key" apiKey + "formatjsonjsoncallbackfmethod" + method); | |
| var url = baseurl + "method =" + method + "& api_key =" apiKey + + "& api_sig =" + hash + "& format = json & jsoncallback = f"; | |
| $.ajax ({url: url, dataType: "script", type: "GET ", cache: true, callback:null, data: null}); | |
| }); | |
| }); | |
| var f = function (data) | |
| { | |
| alert (data.frob._content); | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment