twttr 0.0.6 → 0.0.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/twttr/model/user.rb +14 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce5304b9106f2f665c6787d7e3ee22f83076712f8ee96b33f6b7615a85759dae
4
- data.tar.gz: bf914ca056645501d2f012900f76286cb9f0a18baa347618d3ef297f04c2c01e
3
+ metadata.gz: a0b322657f3a30ce0b0d95982d37f869bac57f5a388cd72bd5ec0674ffd280ec
4
+ data.tar.gz: f5a7ceef4eed89d1f62200c27e1a793474721c9dffc2abf074fb04372917541a
5
5
  SHA512:
6
- metadata.gz: 54d2b7ed3ab4bebd4a82fa58965456eee9c5c8896ca8ef29054578f81ce6500dc1906fa8361c85c1300fdf6e2e6631d95f175f17f2ebee60dd5eaab2ac1fba18
7
- data.tar.gz: 948a69e7cab9210b857526594131641565e44beeb50932a8967fef0a3c6ca794714ee9dd1f527f4ab277ea6caf3b27a539de817db17fc28fbc3487d45126193a
6
+ metadata.gz: 3d93cfe971f58080b87a2213c2a46249b931e89e192d9115287a61e78decc48893449f9c8803557b07abffdd457f09b71c96c68040a5de95cc4ef6fc06c81597
7
+ data.tar.gz: 940d45503a781eaf9efdb4ef246b23c386219ca0bdfc69b0d9f0e36cb6cec444f868d24e822307ba8e15c73a8a779cba6a9ea44bc5288e7f772f8d1d5ba8162a
@@ -15,6 +15,20 @@ module Twttr
15
15
  @client = client
16
16
  end
17
17
 
18
+ # GET /2/users/:id/followers
19
+ # https://developer.twitter.com/en/docs/twitter-api/users/follows/api-reference/get-users-id-followers
20
+ #
21
+ # Returns paginated list of users following user_id.
22
+ #
23
+ # @param max_results [Integer] Max number of results per peage.
24
+ # @param pagination_token [String] Initial page pagination token.
25
+ # @yield [Array<Twttr::Model::User>] User followers page.
26
+ # @yield [String,NilClass] Pagination token.
27
+ # @return [Array<Twttr::Model::User>] Follower Users.
28
+ def followers(max_results: nil, pagination_token: nil, &block)
29
+ client.followers(id, max_results: max_results, pagination_token: pagination_token, &block)
30
+ end
31
+
18
32
  # Forwards to Follows#following setting user_id to current user's id.
19
33
  #
20
34
  # GET /2/users/:id/following
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twttr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Decurnex