forked from sferik/twitter-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
44 lines (31 loc) · 1.08 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
= addicted to twitter
... a sweet little diddy that helps you twitter your life away
== Command Line Use
$ twitter
That will show the commands and each command will either run or show you the options it needs to run
$ twitter post "releasing my new twitter gem"
That will post a status update to your twitter
== Examples
Twitter::Base.new('your email', 'your password').update('watching veronica mars')
# or you can use post
Twitter::Base.new('your email', 'your password').post('post works too')
puts "Public Timeline", "=" * 50
Twitter::Base.new('your email', 'your password').timeline(:public).each do |s|
puts s.text, s.user.name
puts
end
puts '', "Friends Timeline", "=" * 50
Twitter::Base.new('your email', 'your password').timeline.each do |s|
puts s.text, s.user.name
puts
end
puts '', "Friends", "=" * 50
Twitter::Base.new('your email', 'your password').friends.each do |u|
puts u.name, u.status.text
puts
end
puts '', "Followers", "=" * 50
Twitter::Base.new('your email', 'your password').followers.each do |u|
puts u.name, u.status.text
puts
end