Created
July 31, 2015 06:05
-
-
Save sasamijp/09f45d44331455a52e18 to your computer and use it in GitHub Desktop.
show tweet url by status_id
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- encoding:utf-8 -*- | |
require 'twitter' | |
class Const | |
CONSUMER_KEY = '' | |
CONSUMER_SECRET = '' | |
ACCESS_TOKEN = '' | |
ACCESS_TOKEN_SECRET = '' | |
end | |
rest = Twitter::REST::Client.new do |config| | |
config.consumer_key = Const::CONSUMER_KEY | |
config.consumer_secret = Const::CONSUMER_SECRET | |
config.access_token = Const::ACCESS_TOKEN | |
config.access_token_secret = Const::ACCESS_TOKEN_SECRET | |
end | |
puts rest.status(gets.chomp , options={}).url |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment