Giter Site home page Giter Site logo

Comments (12)

seejohnrun avatar seejohnrun commented on August 17, 2024

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!

from pytumblr.

peoplecallmefrancois avatar peoplecallmefrancois commented on August 17, 2024

I am doing that. Maybe my oauth token and oath are wrong?

from pytumblr.

seejohnrun avatar seejohnrun commented on August 17, 2024

Could be - how are you getting the token & secret?
An easy way is to check out the API console at: https://api.tumblr.com/console and use the keys from there

from pytumblr.

peoplecallmefrancois avatar peoplecallmefrancois commented on August 17, 2024

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.

from pytumblr.

codingjester avatar codingjester commented on August 17, 2024

You cannot get the followers or number of a blog you do not own or belong to, @peoplecallmefrancois.

from pytumblr.

peoplecallmefrancois avatar peoplecallmefrancois commented on August 17, 2024

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! 👍

from pytumblr.

peoplecallmefrancois avatar peoplecallmefrancois commented on August 17, 2024

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

from pytumblr.

codingjester avatar codingjester commented on August 17, 2024

Sure. We're probably also going to create an interactive console so that
will walk you through the 3-legged oauth process.

On Tue, Jul 16, 2013 at 11:22 AM, peoplecallmefrancois <
[email protected]> wrote:

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 https://github.com/codingjester @seejohnrunhttps://github.com/seejohnrun


Reply to this email directly or view it on GitHubhttps://github.com//issues/12#issuecomment-21049483
.

John Bunting

Simplicity is prerequisite for reliability
--Edsger W. Dijkstra

from pytumblr.

seejohnrun avatar seejohnrun commented on August 17, 2024

API console links to individual projects on github links coming soon

from pytumblr.

avtavgen avatar avtavgen commented on August 17, 2024

have the same proble, after passing OAuth deteils still have this output:
{
"meta": {
"status": 401,
"msg": "Not Authorized"
},
"response": []
}

from pytumblr.

codingjester avatar codingjester commented on August 17, 2024

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.

from pytumblr.

peoplecallmefrancois avatar peoplecallmefrancois commented on August 17, 2024

Oh ok, thanks, @codingjester , I just assumed that Tumblr's followers system worked similar to Twitter's.

from pytumblr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.