[tor-bugs] #9003 [Stem]: Twitter example uses deprecated 1.0 API

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Jul 12 18:45:48 UTC 2013

#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


 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
 you'll be redirected to the app settings page which will have the
 consumer_key & consumer_secret. The access tokens can be generated there

 2. I am sorry, I need to improve on my documentation skills. Tweepy is a
 python library for creating twitter apps. Source -
 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

More information about the tor-bugs mailing list