I guess twitter, tumblr, linkedin and yahoo used same oauth method and api implementation. I use pyTwitterAPI base code to implement tumblr rest API and still work but with little additional parameter.
Tumblr is yahoo like API implementation as we know tumblr was acquired by yahoo :-) so if it's worked with tumblr, it's also will work with yahoo API :D
The main different with twitter API call is tumblr add api_key parameter which is consumer key. So if I want to call tumblr rest API, I must pass api_key=MY_CONSUMER_KEY in api url.
ex:
http://api.tumblr.com/v2/blog/scipsy.tumblr.com/info?api_key=fuiKNFp9vQFvjLNvx4sUwti4Yb5yGutBN4Xh10LXZhhRKjWlV4
Most of tumblr api call need base hostname as parameter. For example my tumblr domain is http://xyzmind.tumblr.com, so I need to call it with http://api.tumblr.com/v2/blog/xyzmind.blogspot.com/info?api_key=fuiKNFp9vQFvjLNvx4sUwti4Yb5yGutBN4Xh10LXZhhRKjWlV4. It's also work with tumblr custom domain :D
You can grab my python tumblr API implementation from my github repository https://github.com/amru-rosyada/pyTumblrAPI
Let me know if something wrong, may you want to contribute with my project.
No comments:
Post a Comment