Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #9003
Closed
Open
Issue created May 31, 2013 by Trac@tracbot

Twitter example uses deprecated 1.0 API

Our example for reading Twitter feeds uses the 1.0 version of the Twitter API. This API has now been deprecated and queries fail with...

{"errors": [{
  "message": "The Twitter REST API v1 is no longer
              active. Please migrate to API v1.1.
              https://dev.twitter.com/docs/api/1.1/overview.",
  "code": 68
}]}

This causes our example to fail with...

atagar@morrigan:~/Desktop/stem$ python twitter_script 
Traceback (most recent call last):
  File "twitter_script", line 39, in <module>
    print "%i. %s" % (index + 1, tweet["created_at"])
TypeError: string indices must be integers

Patches welcome for migrating the example to the 1.1 API!

Trac:
Username: ovnicraft

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking