-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unauthorized Error - Get The Number of Followers That A Blog Has #12
Comments
When you instantiate your client, you can pass the OAuth details like so (from the README): client = pytumblr.TumblrRestClient(
'<consumer_key>',
'<consumer_secret>',
'<oauth_token>',
'<oauth_secret>',
) That should get you all set - let me know if you end up with more questions! |
I am doing that. Maybe my oauth token and oath are wrong? |
Could be - how are you getting the token & secret? |
Thanks! I never knew you could do that (it's quite useful), I was just following some instructions I found somewhere online. So now, I can get the number of followers for my blog. Does Tumblr allow me to get the number of followers of a blog other than mine? Because I still get errors when I try to get the number of followers, for example, that notoriousgifs.tumblr.com has. |
You cannot get the followers or number of a blog you do not own or belong to, @peoplecallmefrancois. |
Oh ok, thanks for the confirmation, I just had thought that maybe it was like Twitter in the followers sense (number of followers is public). Thanks for your help, and in the process I also got to know about the API console! 👍 |
Oh, a possible enhancement, maybe add a link to the API console to the readme, so it is easy for noobs like me to get it configured properly. @codingjester @seejohnrun |
Sure. We're probably also going to create an interactive console so that On Tue, Jul 16, 2013 at 11:22 AM, peoplecallmefrancois <
John Bunting Simplicity is prerequisite for reliability |
API console links to individual projects on github links coming soon |
have the same proble, after passing OAuth deteils still have this output: |
Are you trying to access a blog that you have access to? You can't see the followers or number of followers for say, my blog with your app keys without me authorizing your app. |
Oh ok, thanks, @codingjester , I just assumed that Tumblr's followers system worked similar to Twitter's. |
This is the JSON response, when I use this library to get the followers of a blog.
{'meta': {'status': 401, 'msg': 'Not Authorized'}, 'response': []}
This is what I use to call it:
#client is declared elsewhere tumblr_followers = json.loads(json.dumps(client.followers('good')))
print tumblr_followers
I am able to use the library for getting Blog Posts, I was just wondering how I could get the total number of followers of a blog, since apparently I am not authorized to get this info? Thanks.
Francois
After reading some documentation, it turns out you need OAuth, I'm still relatively new to Python, how do I make an OAuth request to Tumblr? I have the OAuth Consumer Key/Secret/API Key/Secret.
Thanks for the help in advance.
The text was updated successfully, but these errors were encountered: