Skip to content

Instantly share code, notes, and snippets.

@marr
Created February 2, 2011 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marr/808545 to your computer and use it in GitHub Desktop.
Save marr/808545 to your computer and use it in GitHub Desktop.
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