Skip to content

Instantly share code, notes, and snippets.

@hjst
Created October 31, 2011 02:12
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 hjst/1326758 to your computer and use it in GitHub Desktop.
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.
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