gleuch-twitter_oauth 0.1.20 → 0.1.21
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/lib/twitter_oauth/friendships.rb +8 -4
- metadata +2 -2
@@ -1,13 +1,17 @@
|
|
1
1
|
module TwitterOAuth
|
2
2
|
class Client
|
3
3
|
|
4
|
-
def friends_ids(
|
5
|
-
|
4
|
+
def friends_ids(args={})
|
5
|
+
allowed = %w(page cursor)
|
6
|
+
args = args.reject{|k,v| !allowed.include?(k.to_s.downcase)}.map{|k,v| "#{k}=#{v}"}.join('&')
|
7
|
+
oauth_response = access_token.get("/friends/ids.json?#{args}")
|
6
8
|
JSON.parse(oauth_response.body)
|
7
9
|
end
|
8
10
|
|
9
|
-
def followers_ids(
|
10
|
-
|
11
|
+
def followers_ids(args={})
|
12
|
+
allowed = %w(page cursor)
|
13
|
+
args = args.reject{|k,v| !allowed.include?(k.to_s.downcase)}.map{|k,v| "#{k}=#{v}"}.join('&')
|
14
|
+
oauth_response = access_token.get("/followers/ids.json?#{args}")
|
11
15
|
JSON.parse(oauth_response.body)
|
12
16
|
end
|
13
17
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gleuch-twitter_oauth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Taylor
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
version: "1.15"
|
45
45
|
version:
|
46
46
|
description: twitter_oauth is a Ruby library for talking to twitter using the new oauth method.
|
47
|
-
email:
|
47
|
+
email: contact@gleuch.com
|
48
48
|
executables: []
|
49
49
|
|
50
50
|
extensions: []
|