Skip to content

Commit

Permalink
Merge pull request #150 from knu/twitter_api_v1.1
Browse files Browse the repository at this point in the history
Update API endpoints to those of Twitter REST API v1.1.
  • Loading branch information
Hiroshi Nakamura committed May 21, 2014
2 parents 3a84430 + 9a092af commit 98577ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sample/oauth_twitter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
consumer_secret = 'EDIT HERE'

callback = ARGV.shift # can be nil for OAuth 1.0. (not 1.0a)
request_token_url = 'http://twitter.com/oauth/request_token'
oob_authorize_url = 'http://twitter.com/oauth/authorize'
access_token_url = 'http://twitter.com/oauth/access_token'
request_token_url = 'https://api.twitter.com/oauth/request_token'
oob_authorize_url = 'https://api.twitter.com/oauth/authorize'
access_token_url = 'https://api.twitter.com/oauth/access_token'

STDOUT.sync = true

Expand Down Expand Up @@ -58,4 +58,4 @@
gets

# Access to a protected resource. (DM)
puts client.get("http://twitter.com/direct_messages.json")
puts client.get("https://api.twitter.com/1.1/direct_messages.json")

0 comments on commit 98577ae

Please sign in to comment.