Sha256: b6fd5317f4d30dbf7304257083e482e544990fc5338a4f8db76f6753af7a9085
Contents?: true
Size: 579 Bytes
Versions: 5
Compression:
Stored size: 579 Bytes
Contents
#!/usr/bin/env ruby # -*- coding: utf-8 -*- # only 1.9.2 $LOAD_PATH << File.join(File.dirname(File.expand_path(__FILE__)), "../") require "lib/pupil" require "yaml" keygen = Pupil::Keygen.new({:consumer_key => "yIyK3TaGo5VJX7MdkS95g", :consumer_secret => "ukIvD6yqP8SNbFfaIqVNkqg08J33uvRvpGa1ktuRc"}) tokens = keygen.interactive pupil = Pupil.new tokens user = pupil.verify_credentials friends = pupil.friends_ids user.screen_name followers = pupil.followers_ids user.screen_name open("ff.yml", "w") do |f| f.puts({:friends => friends, :followers => followers}.to_yaml) end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
pupil-0.2.2 | samples/ff-dumper.rb |
pupil-0.2.1 | samples/ff-dumper.rb |
pupil-0.2.0 | samples/ff-dumper.rb |
pupil-0.1.5 | samples/ff-dumper.rb |
pupil-0.0.6 | samples/ff-dumper.rb |