Sha256: 9f5c51021fc623071f37aef2a0c8c73bde1d2ad2b062fc18ad586485ddc018de
Contents?: true
Size: 652 Bytes
Versions: 7
Compression:
Stored size: 652 Bytes
Contents
$:.unshift File.join(File.dirname(__FILE__), '..', '..', '..', 'lib') $:.unshift File.join(File.dirname(__FILE__), '..', '..', '..') require 'connfu' require 'examples/provisioning/setup' ARGV.length < 1 and ( puts "Please include as argument the api_key" exit ) api_key = ARGV.shift channel = if ARGV.length < 1 "" else ARGV.shift end application = Connfu::Provisioning::Application.new(api_key, CONNFU_ENDPOINT) begin puts application.get_twitter_channel(channel) rescue Exception => ex puts "There was an error:" puts "Exception message: #{ex.message}" end
Version data entries
7 entries across 7 versions & 1 rubygems