Python Forum
Callback URL for twitter app
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Callback URL for twitter app
#1
I'm trying to create my first twitter app and ran to a wall that is called a callback url/
on twitter website this is an explanation:
https://developer.twitter.com/en/docs/ba...lback-urls

But that doesn't tell me much. Do you have any idea how this url should look like? I don't see it on my developer.twitter.com dashboard.

Should I have my own personal web site?

this is how basic code should look but I need to creat app first
from twitter import Twitter, OAuth

t = Twitter(auth=OAuth(<Access Token>,<Access Token Secret>, <Consumer Key>,<Consumer Secret>))
pythonTweets = t.search.tweets(q = "#python")
print(pythonTweets)
Reply
#2
found this video (uses django, but should be similar if you are using Flask).
https://www.youtube.com/watch?v=uJ6p1ibNOdk

and for Flask: https://flask-dance.readthedocs.io/en/la...itter.html
Reply
#3
Thank you, I had no idea that I need flask or django for this sort of stuff. Since I never touched it I think I will just skip this chapter. Well, maybe one day twitter account will be of use to me. :)
Reply
#4
I have been programming (was my profession) for a long time. Seems I have to learn a new package or at least concept just about every day! But, I can also say that is what has made it so interesting!
Reply
#5
Still, framework is not a joke. I would have to focus on one for at least couple of months...that would bring me to web developing field. I have limited time for learning python and have to focus on one thing.
Reply
#6
Generally, these are if you're pretending to be someone else. Like, you open a link to Twitter (with a callback url), and then whoever's using your app will log into Twitter using whatever their credentials are. Once they're done, they'll be redirected to your callback url with some sort of short-term access token which you then use with the api, to make calls for that particular user.

The whole point of this, is allowing random third party apps (like what you're making) access user data, without ever having access to that user's login/password.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How do I scrape profile information from Twitter People search results? asdad 0 729 Nov-29-2022, 10:25 AM
Last Post: asdad
  Is it possible to write a python script to block twitter feeds? cubangt 0 866 Apr-07-2022, 04:14 PM
Last Post: cubangt
  Reducing JSON character count in Python for a Twitter Bot johnmitchell85 2 51,307 Apr-28-2021, 06:08 PM
Last Post: johnmitchell85
  How to update component props every time when a Dash callback returns? sguzunov 0 2,529 Jul-27-2020, 07:11 AM
Last Post: sguzunov
  update imhow in callback from pyaudio markB 0 2,340 May-28-2020, 06:01 PM
Last Post: markB
  Twitter follower network gugatcgwgf 2 2,052 May-06-2020, 10:29 AM
Last Post: gugatcgwgf
  Appending a list in a class from a callback function snizbatch 5 3,712 Sep-01-2019, 06:27 AM
Last Post: snizbatch
  Twitter listen script, dynamic search value? quitte74 0 1,878 Nov-01-2018, 01:09 PM
Last Post: quitte74
  Twitter extracts on analytics tab parthi1705 3 3,213 May-28-2018, 05:26 AM
Last Post: parthi1705
  Why is basic Twitter Connectivity So Difficult? Not sure what I'm doing wrong. Oliver 0 1,882 Mar-10-2018, 12:38 PM
Last Post: Oliver

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020