Created
October 31, 2011 02:12
-
-
Save hjst/1326758 to your computer and use it in GitHub Desktop.
Use jQuery to get a Pinboard tag for a given user.Pinboard uses the 'cb' callback method name in it's JSON.
This file contains 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
function GetPinboardTag(user, tag, count, handler) { | |
$.ajax({ | |
url:'http://feeds.pinboard.in/json/v1/u:'+user+'/t:'+tag+'?count='+count, | |
jsonp:"cb", | |
dataType:'jsonp', | |
success: handler | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment