Skip to content

Instantly share code, notes, and snippets.

View DanCanetti's full-sized avatar
:octocat:
Unlimited free private repos!

Daniel Canetti DanCanetti

:octocat:
Unlimited free private repos!
View GitHub Profile
@DanCanetti
DanCanetti / ajax_jsonp.js
Last active August 6, 2020 15:32 — forked from codingjester/ajax_jsonp.js
User JQuery with the Tumblr API & JSONP
// More explicit information + handling the result
$.ajax('https://api.tumblr.com/v2/blog/codingjester.tumblr.com/posts',
{
dataType:'jsonp',
data: {
limit : 1,
api_key : 'your_key'
},
success: function(posts) {
var postings = posts.response.posts;