gleuch-twitter_oauth 0.1.20 → 0.1.21

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,17 @@
1
1
  module TwitterOAuth
2
2
  class Client
3
3
 
4
- def friends_ids(page=1)
5
- oauth_response = access_token.get("/friends/ids.json?page=#{page}")
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(page=1)
10
- oauth_response = access_token.get("/followers/ids.json?page=#{page}")
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.20
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: moomerman@gmail.com contact@gleuch.com
47
+ email: contact@gleuch.com
48
48
  executables: []
49
49
 
50
50
  extensions: []