[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #9003 [Stem]: Twitter example uses deprecated 1.0 API
#9003: Twitter example uses deprecated 1.0 API
-----------------------+----------------------------------------------------
Reporter: ovnicraft | Owner: atagar
Type: defect | Status: needs_review
Priority: minor | Milestone:
Component: Stem | Version:
Keywords: website | Parent:
Points: | Actualpoints:
-----------------------+----------------------------------------------------
Changes (by ashishnitinpatil):
* status: needs_information => needs_review
Comment:
1. The keys & secrets can be obtained by signing up on dev.twitter.com (if
you don't have an account, you need to create one on twitter first) & then
creating an application. After the app creation (filling the form on
dev.twitter.com/apps/new),
you'll be redirected to the app settings page which will have the
consumer_key & consumer_secret. The access tokens can be generated there
itself.
2. I am sorry, I need to improve on my documentation skills. Tweepy is a
python library for creating twitter apps. Source -
https://github.com/tweepy/tweepy
Unfortunately, the deprecation of API 1.0 forces us to use OAuth, hence
I've used tweepy. I actually skipped everything that was unnecessary so
that the example can be kept as simple & readable as possible. Finally, as
you might've guessed, I forgot to import tweepy. I need to improve on
verifying too.
So, we can not provide a tutorial using urllib anymore.
And, dont forget to "import tweepy".
Sorry for the mess-up. This bug shouldn't have been there in the first
place if I had showed more courage on oauth. Won't happen again! :)
Learning is fun!
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/9003#comment:9>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs