Sha256: 627f0f9c1404f9790794651c2192327cceb0aaee4e0c6cfd60c7f3dbeab3affc
Contents?: true
Size: 310 Bytes
Versions: 2
Compression:
Stored size: 310 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require 'tw' if ARGV.empty? STDERR.puts "ruby #{$0} image.jpg" STDERR.puts "ruby #{$0} image.jpg USERNAME" exit 1 end icon, user = ARGV client = Tw::Client.new client.auth user File.open icon do |f| puts 'upload success' if Twitter.update_profile_image f end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tw-0.2.6 | samples/update_profile_image.rb |
tw-0.2.5 | samples/update_profile_image.rb |