api.tumblr.com/v2/user/like?reblog_key=mThpzZ4l&id=114337695805
api.tumblr.com/v2/user/like?reblog_key=mThpzZ4l?id=114337695805
Any help would be greatly appreciated..
Hello group!Curious if someone could help me out here as I am trying to create like/unlike functionality for each post item we have coming into a custom theme that is basically a tumblr aggregator.So we are pulling all our assets out of Tumblr via the API. That's working fine, no problem there. We have successfully created Reblog links. However, the following <a>nchor link patterns are not working for our "Like" / "Unlike" functionality. I have tried both.#1First try was this: http://www.tumblr.com/<command>/<oauthId>?id=<postId>This is what we have: http://www.tumblr.com/like/mThpzZ4l?id=114337695805This is what we get: Access Denied#2I have also tried this:
<a href="#like" title="Like" data-key="'reblog_key" data-id="post_id">Like</a>The behavior we get: The page refreshes, but a "Like" isn't registered within Tumblr.What am I missing? Is there some Javascript I need to put in that's hidden within a Tumblr script? From the API docs, the first attempt seemed the most straight forward, but I keep getting "Access Denied" no matter what values I test in the link. We are aware that Tumblr would like us to use their theme tags for this, but its not practical for what we are doing.Thanks ahead of time to anyone out there who helps me out!ThanksJohn
--
You received this message because you are subscribed to the Google Groups "Tumblr API Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tumblr-api+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
// Authenticate via OAuthvar tumblr = require('path to/tumblr.js');
var client = tumblr.createClient({ consumer_key:
consumer_key: 'MVfDczvR2DLvYQNylA7vknZ5MEZNttkWSYsA8ws9vhShs9sbxA', consumer_secret:consumer_secret: 'XXXXXXXXXX', token:token: 'ekE6WUS7hFGkuwVXyQxSs0bTFQ2y1647xzHoUuJs3c6z7wmOjh', token_secret:token_secret: 'XXXXXXXXXXXX'
});// Make the request
// ...});
$(this).switchClass("tumblrNotLiked","tumblrLiked");
It's a post request so it needs to go in the body of the request.
Hope this helps for future Tumblr integrations.
John