twitterland 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +17 -2
- data/VERSION.yml +1 -1
- data/lib/twitterland/tweet_blocker.rb +1 -1
- metadata +1 -1
data/README.markdown
CHANGED
|
@@ -137,6 +137,23 @@ Including:
|
|
|
137
137
|
Twitterland::TweetBlocker.rate_limit
|
|
138
138
|
|
|
139
139
|
=> <Mash hourly_limit=100 remaining_hits=100 reset_time="2009-08-11 23:12:41 UTC" reset_time_in_seconds=2746>
|
|
140
|
+
|
|
141
|
+
### BackTweets
|
|
142
|
+
|
|
143
|
+
Get your api_key at [http://www.backtype.com/developers](http://www.backtype.com/developers)
|
|
144
|
+
|
|
145
|
+
#### Search
|
|
146
|
+
# Return tweet referencing a URL
|
|
147
|
+
results = Twitterland::BackTweets.search('http://squeejee.com', 'OU812')
|
|
148
|
+
results.tweets.size
|
|
149
|
+
=> 25
|
|
150
|
+
results.tweets.first.from_user
|
|
151
|
+
=> "euromarianne"
|
|
152
|
+
results.items_per_page
|
|
153
|
+
=> 25
|
|
154
|
+
results.total_results
|
|
155
|
+
=> 3301
|
|
156
|
+
|
|
140
157
|
|
|
141
158
|
### Source
|
|
142
159
|
[http://github.com/squeejee/twitterland/](http://github.com/squeejee/twitterland/)
|
|
@@ -147,5 +164,3 @@ Including:
|
|
|
147
164
|
### Copyright
|
|
148
165
|
Copyright (c) 2009 Squeejee. See LICENSE for details.
|
|
149
166
|
|
|
150
|
-
|
|
151
|
-
|
data/VERSION.yml
CHANGED
|
@@ -8,7 +8,7 @@ module Twitterland
|
|
|
8
8
|
#
|
|
9
9
|
# Twitterland::TweetBlocker.user('bradleyjoyce')
|
|
10
10
|
def self.user(username)
|
|
11
|
-
|
|
11
|
+
Mash.new(self.get("/username/#{username}.json")).user
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
# Report user as spammer
|