Skip to content

Instantly share code, notes, and snippets.

View FredrikL's full-sized avatar
👽

Fredrik Leijon FredrikL

👽
View GitHub Profile
@FredrikL
FredrikL / make_token.rb
Created May 8, 2012 19:00 — forked from mirakui/make_token.rb
To get twitter/oauth access token
require 'twitter_oauth'
print 'Consumer Key> '
consumer_key = gets.chomp
print 'Consumer Secret> '
consumer_secret = gets.chomp
t = TwitterOAuth::Client.new(
:consumer_key => consumer_key,
#!/usr/bin/env ruby
# Command line util for acquiring a one-off Twitter OAuth access token
# Based on http://blog.beefyapps.com/2010/01/simple-ruby-oauth-with-twitter/
require 'rubygems'
require 'oauth'
puts <<EOS
Set up your application at https://twitter.com/apps/ (as a 'Client' app),