Skip to content
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

How to implement "login with twitter?" #629

Open
fluffy-critter opened this issue Aug 17, 2019 · 0 comments
Open

How to implement "login with twitter?" #629

fluffy-critter opened this issue Aug 17, 2019 · 0 comments

Comments

@fluffy-critter
Copy link

Hi, python-twitter seems pretty comprehensive from a code standpoint, but the docs leave out a bunch of key details. In particular, how to actually provide a login flow for a "login with Twitter" mechanism.

When I register an app I only have a client_key/client_secret, and while I can figure out from other examples how to get an access_token_key/access_token_secret through a CLI/PIN flow, I have no idea how to use python-twitter to get them via web callback. Basically, what's missing from any of the examples I can find online:

  1. How to generate the Twitter login URL (with the oauth_token/callback/etc.)
  2. How to use the results of the callback to get the access token so that I can do the other things with the (well-documented) API

Are there any examples out there, and could those be added to the docs?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant