twitter_api 0.1.6 → 0.1.7
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.
- checksums.yaml +4 -4
- data/lib/twitter_api.rb +12 -1
- data/lib/twitter_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3a67ce81cdbbb4d5714557f404539124fee74384
|
|
4
|
+
data.tar.gz: 5d1dd8387cf1a6217e44630ecce299bb1c113b8e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 894d40db517a17d21ffbb0455e91ffde5ba25d3804873bdbd6dfb573051549c0d05934e567cbfb9b28a72e1e995806fa3a6dabdfa61f356f8d4386f4c1eb0e18
|
|
7
|
+
data.tar.gz: e9c4abbdf540cf90cc1440035147d7b87709fc1e5a7fbb595de13f7c9604f1f9af9336c06257f90ff4d1e30be43432376919328092fea98fc3fc280454d63a43
|
data/lib/twitter_api.rb
CHANGED
|
@@ -99,6 +99,16 @@ module TwitterAPI
|
|
|
99
99
|
super
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
+
# GET favorites/list
|
|
103
|
+
# {https://dev.twitter.com/rest/reference/get/favorites/list}
|
|
104
|
+
#
|
|
105
|
+
# @param params [Hash] Parameters
|
|
106
|
+
# @return [TwitterAPI::Response]
|
|
107
|
+
def favorites_list(params)
|
|
108
|
+
resource_url = 'https://api.twitter.com/1.1/favorites/list.json'
|
|
109
|
+
get(resource_url, params)
|
|
110
|
+
end
|
|
111
|
+
|
|
102
112
|
# GET geo/id/:place_id
|
|
103
113
|
# {https://dev.twitter.com/rest/reference/get/geo/id/place_id}
|
|
104
114
|
#
|
|
@@ -108,7 +118,7 @@ module TwitterAPI
|
|
|
108
118
|
resource_url = "https://api.twitter.com/1.1/geo/id/#{params['place_id']}.json"
|
|
109
119
|
get(resource_url, params)
|
|
110
120
|
end
|
|
111
|
-
|
|
121
|
+
|
|
112
122
|
# GET search/tweets
|
|
113
123
|
# {https://dev.twitter.com/rest/reference/get/search/tweets}
|
|
114
124
|
#
|
|
@@ -186,6 +196,7 @@ module TwitterAPI
|
|
|
186
196
|
|
|
187
197
|
# Initializes a Response object.
|
|
188
198
|
#
|
|
199
|
+
# @param res [Net::HTTPResponse]
|
|
189
200
|
# @param res [StringIO]
|
|
190
201
|
# @param res [Tempfile]
|
|
191
202
|
# @return [TwitterAPI::Response]
|
data/lib/twitter_api/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: twitter_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Naoki Iwasawa
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-04-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: simple_oauth
|