joelind-twitter 0.9.9
Sign up to get free protection for your applications and to get access to all the features.
- data/History +290 -0
- data/License +20 -0
- data/Notes +33 -0
- data/README.rdoc +19 -0
- data/Rakefile +40 -0
- data/VERSION.yml +5 -0
- data/examples/connect.rb +30 -0
- data/examples/friendship_existence.rb +13 -0
- data/examples/helpers/config_store.rb +38 -0
- data/examples/httpauth.rb +11 -0
- data/examples/ids.rb +13 -0
- data/examples/lists.rb +11 -0
- data/examples/oauth.rb +27 -0
- data/examples/search.rb +15 -0
- data/examples/timeline.rb +19 -0
- data/examples/tumblr.rb +9 -0
- data/examples/unauthorized.rb +16 -0
- data/examples/update.rb +11 -0
- data/examples/user.rb +5 -0
- data/lib/twitter/base.rb +390 -0
- data/lib/twitter/geo.rb +25 -0
- data/lib/twitter/httpauth.rb +53 -0
- data/lib/twitter/local_trends.rb +30 -0
- data/lib/twitter/oauth.rb +85 -0
- data/lib/twitter/request.rb +71 -0
- data/lib/twitter/search.rb +163 -0
- data/lib/twitter/trends.rb +55 -0
- data/lib/twitter.rb +156 -0
- data/test/fixtures/blocking.json +1632 -0
- data/test/fixtures/firehose.json +1 -0
- data/test/fixtures/follower_ids.json +1 -0
- data/test/fixtures/followers.json +1 -0
- data/test/fixtures/friend_ids.json +1 -0
- data/test/fixtures/friends_timeline.json +1 -0
- data/test/fixtures/friendship.json +1 -0
- data/test/fixtures/friendship_exists.json +1 -0
- data/test/fixtures/geo_place.json +1 -0
- data/test/fixtures/geo_reverse_geocode.json +1 -0
- data/test/fixtures/geo_reverse_geocode_granularity.json +1 -0
- data/test/fixtures/geo_reverse_geocode_limit.json +1 -0
- data/test/fixtures/geo_search.json +1 -0
- data/test/fixtures/geo_search_ip_address.json +1 -0
- data/test/fixtures/geo_search_query.json +1 -0
- data/test/fixtures/home_timeline.json +1 -0
- data/test/fixtures/ids.json +1 -0
- data/test/fixtures/list.json +1 -0
- data/test/fixtures/list_statuses.json +1 -0
- data/test/fixtures/list_statuses_1_1.json +1 -0
- data/test/fixtures/list_statuses_2_1.json +1 -0
- data/test/fixtures/list_subscriptions.json +1 -0
- data/test/fixtures/list_users.json +1 -0
- data/test/fixtures/lists.json +1 -0
- data/test/fixtures/memberships.json +1 -0
- data/test/fixtures/mentions.json +1 -0
- data/test/fixtures/not_found.json +1 -0
- data/test/fixtures/people_search.json +39 -0
- data/test/fixtures/rate_limit_exceeded.json +1 -0
- data/test/fixtures/report_spam.json +41 -0
- data/test/fixtures/retweet.json +1 -0
- data/test/fixtures/retweeted_by_me.json +1 -0
- data/test/fixtures/retweeted_to_me.json +1 -0
- data/test/fixtures/retweeters_of_tweet.json +166 -0
- data/test/fixtures/retweets.json +1 -0
- data/test/fixtures/retweets_of_me.json +1 -0
- data/test/fixtures/sample-image.png +0 -0
- data/test/fixtures/saved_search.json +7 -0
- data/test/fixtures/saved_searches.json +16 -0
- data/test/fixtures/search.json +1 -0
- data/test/fixtures/search_from_jnunemaker.json +1 -0
- data/test/fixtures/status.json +1 -0
- data/test/fixtures/status_show.json +1 -0
- data/test/fixtures/trends_available.json +253 -0
- data/test/fixtures/trends_current.json +1 -0
- data/test/fixtures/trends_current_exclude.json +1 -0
- data/test/fixtures/trends_daily.json +1925 -0
- data/test/fixtures/trends_daily_date.json +1 -0
- data/test/fixtures/trends_daily_exclude.json +1 -0
- data/test/fixtures/trends_location.json +57 -0
- data/test/fixtures/trends_weekly.json +1 -0
- data/test/fixtures/trends_weekly_date.json +1 -0
- data/test/fixtures/trends_weekly_exclude.json +1 -0
- data/test/fixtures/unauthorized.json +1 -0
- data/test/fixtures/update_profile_background_image.json +1 -0
- data/test/fixtures/update_profile_image.json +1 -0
- data/test/fixtures/user.json +1 -0
- data/test/fixtures/user_timeline.json +710 -0
- data/test/fixtures/users.json +1 -0
- data/test/test_helper.rb +47 -0
- data/test/twitter/base_test.rb +426 -0
- data/test/twitter/geo_test.rb +79 -0
- data/test/twitter/httpauth_test.rb +86 -0
- data/test/twitter/oauth_test.rb +127 -0
- data/test/twitter/request_test.rb +217 -0
- data/test/twitter/search_test.rb +208 -0
- data/test/twitter/trends_test.rb +112 -0
- data/test/twitter_test.rb +106 -0
- metadata +305 -0
@@ -0,0 +1,253 @@
|
|
1
|
+
[{
|
2
|
+
"url": "http://where.yahooapis.com/v1/place/23424803",
|
3
|
+
"placeType": {
|
4
|
+
"code": 12,
|
5
|
+
"name": "Country"
|
6
|
+
},
|
7
|
+
"woeid": 23424803,
|
8
|
+
"countryCode": "IE",
|
9
|
+
"name": "Ireland",
|
10
|
+
"country": "Ireland"
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"countryCode": "MX",
|
14
|
+
"country": "Mexico",
|
15
|
+
"url": "http://where.yahooapis.com/v1/place/23424900",
|
16
|
+
"name": "Mexico",
|
17
|
+
"placeType": {
|
18
|
+
"code": 12,
|
19
|
+
"name": "Country"
|
20
|
+
},
|
21
|
+
"woeid": 23424900
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"url": "http://where.yahooapis.com/v1/place/23424975",
|
25
|
+
"woeid": 23424975,
|
26
|
+
"placeType": {
|
27
|
+
"code": 12,
|
28
|
+
"name": "Country"
|
29
|
+
},
|
30
|
+
"countryCode": "GB",
|
31
|
+
"name": "United Kingdom",
|
32
|
+
"country": "United Kingdom"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"url": "http://where.yahooapis.com/v1/place/2358820",
|
36
|
+
"placeType": {
|
37
|
+
"code": 7,
|
38
|
+
"name": "Town"
|
39
|
+
},
|
40
|
+
"countryCode": "US",
|
41
|
+
"woeid": 2358820,
|
42
|
+
"name": "Baltimore",
|
43
|
+
"country": "United States"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"countryCode": "US",
|
47
|
+
"country": "United States",
|
48
|
+
"url": "http://where.yahooapis.com/v1/place/2514815",
|
49
|
+
"name": "Washington",
|
50
|
+
"placeType": {
|
51
|
+
"code": 7,
|
52
|
+
"name": "Town"
|
53
|
+
},
|
54
|
+
"woeid": 2514815
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"url": "http://where.yahooapis.com/v1/place/2367105",
|
58
|
+
"placeType": {
|
59
|
+
"code": 7,
|
60
|
+
"name": "Town"
|
61
|
+
},
|
62
|
+
"woeid": 2367105,
|
63
|
+
"countryCode": "US",
|
64
|
+
"name": "Boston",
|
65
|
+
"country": "United States"
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"country": "Brazil",
|
69
|
+
"url": "http://where.yahooapis.com/v1/place/455827",
|
70
|
+
"placeType": {
|
71
|
+
"code": 7,
|
72
|
+
"name": "Town"
|
73
|
+
},
|
74
|
+
"countryCode": "BR",
|
75
|
+
"name": "Sao Paulo",
|
76
|
+
"woeid": 455827
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"country": "United States",
|
80
|
+
"url": "http://where.yahooapis.com/v1/place/2459115",
|
81
|
+
"placeType": {
|
82
|
+
"code": 7,
|
83
|
+
"name": "Town"
|
84
|
+
},
|
85
|
+
"countryCode": "US",
|
86
|
+
"name": "New York",
|
87
|
+
"woeid": 2459115
|
88
|
+
},
|
89
|
+
{
|
90
|
+
"url": "http://where.yahooapis.com/v1/place/2487796",
|
91
|
+
"countryCode": "US",
|
92
|
+
"woeid": 2487796,
|
93
|
+
"name": "San Antonio",
|
94
|
+
"country": "United States",
|
95
|
+
"placeType": {
|
96
|
+
"code": 7,
|
97
|
+
"name": "Town"
|
98
|
+
}
|
99
|
+
},
|
100
|
+
{
|
101
|
+
"url": "http://where.yahooapis.com/v1/place/23424977",
|
102
|
+
"woeid": 23424977,
|
103
|
+
"placeType": {
|
104
|
+
"code": 12,
|
105
|
+
"name": "Country"
|
106
|
+
},
|
107
|
+
"countryCode": "US",
|
108
|
+
"name": "United States",
|
109
|
+
"country": "United States"
|
110
|
+
},
|
111
|
+
{
|
112
|
+
"url": "http://where.yahooapis.com/v1/place/23424768",
|
113
|
+
"woeid": 23424768,
|
114
|
+
"placeType": {
|
115
|
+
"code": 12,
|
116
|
+
"name": "Country"
|
117
|
+
},
|
118
|
+
"countryCode": "BR",
|
119
|
+
"name": "Brazil",
|
120
|
+
"country": "Brazil"
|
121
|
+
},
|
122
|
+
{
|
123
|
+
"url": "http://where.yahooapis.com/v1/place/2379574",
|
124
|
+
"placeType": {
|
125
|
+
"code": 7,
|
126
|
+
"name": "Town"
|
127
|
+
},
|
128
|
+
"countryCode": "US",
|
129
|
+
"woeid": 2379574,
|
130
|
+
"name": "Chicago",
|
131
|
+
"country": "United States"
|
132
|
+
},
|
133
|
+
{
|
134
|
+
"url": "http://where.yahooapis.com/v1/place/2471217",
|
135
|
+
"placeType": {
|
136
|
+
"code": 7,
|
137
|
+
"name": "Town"
|
138
|
+
},
|
139
|
+
"woeid": 2471217,
|
140
|
+
"countryCode": "US",
|
141
|
+
"name": "Philadelphia",
|
142
|
+
"country": "United States"
|
143
|
+
},
|
144
|
+
{
|
145
|
+
"countryCode": "US",
|
146
|
+
"country": "United States",
|
147
|
+
"url": "http://where.yahooapis.com/v1/place/2424766",
|
148
|
+
"name": "Houston",
|
149
|
+
"placeType": {
|
150
|
+
"code": 7,
|
151
|
+
"name": "Town"
|
152
|
+
},
|
153
|
+
"woeid": 2424766
|
154
|
+
},
|
155
|
+
{
|
156
|
+
"countryCode": "US",
|
157
|
+
"country": "United States",
|
158
|
+
"url": "http://where.yahooapis.com/v1/place/2442047",
|
159
|
+
"name": "Los Angeles",
|
160
|
+
"placeType": {
|
161
|
+
"code": 7,
|
162
|
+
"name": "Town"
|
163
|
+
},
|
164
|
+
"woeid": 2442047
|
165
|
+
},
|
166
|
+
{
|
167
|
+
"countryCode": "US",
|
168
|
+
"country": "United States",
|
169
|
+
"url": "http://where.yahooapis.com/v1/place/2487956",
|
170
|
+
"name": "San Francisco",
|
171
|
+
"placeType": {
|
172
|
+
"code": 7,
|
173
|
+
"name": "Town"
|
174
|
+
},
|
175
|
+
"woeid": 2487956
|
176
|
+
},
|
177
|
+
{
|
178
|
+
"url": "http://where.yahooapis.com/v1/place/23424775",
|
179
|
+
"woeid": 23424775,
|
180
|
+
"placeType": {
|
181
|
+
"code": 12,
|
182
|
+
"name": "Country"
|
183
|
+
},
|
184
|
+
"countryCode": "CA",
|
185
|
+
"name": "Canada",
|
186
|
+
"country": "Canada"
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"country": "United States",
|
190
|
+
"url": "http://where.yahooapis.com/v1/place/2357024",
|
191
|
+
"placeType": {
|
192
|
+
"code": 7,
|
193
|
+
"name": "Town"
|
194
|
+
},
|
195
|
+
"countryCode": "US",
|
196
|
+
"name": "Atlanta",
|
197
|
+
"woeid": 2357024
|
198
|
+
},
|
199
|
+
{
|
200
|
+
"url": "http://where.yahooapis.com/v1/place/2406080",
|
201
|
+
"countryCode": "US",
|
202
|
+
"woeid": 2406080,
|
203
|
+
"name": "Fort Worth",
|
204
|
+
"country": "United States",
|
205
|
+
"placeType": {
|
206
|
+
"code": 7,
|
207
|
+
"name": "Town"
|
208
|
+
}
|
209
|
+
},
|
210
|
+
{
|
211
|
+
"url": "http://where.yahooapis.com/v1/place/2388929",
|
212
|
+
"countryCode": "US",
|
213
|
+
"woeid": 2388929,
|
214
|
+
"name": "Dallas",
|
215
|
+
"country": "United States",
|
216
|
+
"placeType": {
|
217
|
+
"code": 7,
|
218
|
+
"name": "Town"
|
219
|
+
}
|
220
|
+
},
|
221
|
+
{
|
222
|
+
"countryCode": "US",
|
223
|
+
"country": "United States",
|
224
|
+
"url": "http://where.yahooapis.com/v1/place/2490383",
|
225
|
+
"name": "Seattle",
|
226
|
+
"placeType": {
|
227
|
+
"code": 7,
|
228
|
+
"name": "Town"
|
229
|
+
},
|
230
|
+
"woeid": 2490383
|
231
|
+
},
|
232
|
+
{
|
233
|
+
"countryCode": "GB",
|
234
|
+
"country": "United Kingdom",
|
235
|
+
"url": "http://where.yahooapis.com/v1/place/44418",
|
236
|
+
"name": "London",
|
237
|
+
"placeType": {
|
238
|
+
"code": 7,
|
239
|
+
"name": "Town"
|
240
|
+
},
|
241
|
+
"woeid": 44418
|
242
|
+
},
|
243
|
+
{
|
244
|
+
"url": "http://where.yahooapis.com/v1/place/1",
|
245
|
+
"placeType": {
|
246
|
+
"code": 19,
|
247
|
+
"name": "Supername"
|
248
|
+
},
|
249
|
+
"countryCode": null,
|
250
|
+
"woeid": 1,
|
251
|
+
"name": "Earth",
|
252
|
+
"country": ""
|
253
|
+
}]
|
@@ -0,0 +1 @@
|
|
1
|
+
{"trends":{"2009-05-18 20:53:51":[{"query":"#musicmonday","name":"#musicmonday"},{"query":"#newdivide","name":"#newdivide"},{"query":"\"New Divide\"","name":"New Divide"},{"query":"#3turnoffwords","name":"#3turnoffwords"},{"query":"#3hotwords","name":"#3hotwords"},{"query":"#ecomonday","name":"#ecomonday"},{"query":"#medievalmovies","name":"#medievalmovies"},{"query":"\"Star Trek\"","name":"Star Trek"},{"query":"#wolframalpha","name":"#wolframalpha"},{"query":"AT&T","name":"AT&T"}]},"as_of":1242680031}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"as_of":1242679796,"trends":{"2009-05-18 20:49:56":[{"query":"\"New Divide\"","name":"New Divide"},{"query":"\"Star Trek\"","name":"Star Trek"},{"query":"AT&T","name":"AT&T"},{"query":"\"Angels & Demons\"","name":"Angels & Demons"},{"query":"RIP","name":"RIP"},{"query":"Dollhouse","name":"Dollhouse"},{"query":"Ashes","name":"Ashes"},{"query":"\"Linkin Park\"","name":"Linkin Park"},{"query":"\"Memorial Day\" OR \"Green Day\"","name":"Memorial Day"},{"query":"Brazil","name":"Brazil"}]}}
|