Class: Vk::API::Users::Methods::GetFollowers

Inherits:
Schema::Method
  • Object
show all
Defined in:
lib/vk/api/users/methods/get_followers.rb

Overview

Returns a list of IDs of followers of the user in question, sorted by date added, most recent first.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Users::Methods::GetFollowers

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :user_id (Integer)

    User ID.

  • :offset (Integer)

    Offset needed to return a specific subset of followers.

  • :count (Integer)

    Number of followers to return.

  • :fields (Array, 'bdate')

    Profile fields to return. Sample values: 'nickname', 'screen_name', 'sex', 'bdate' (birthdate), 'city', 'country', 'timezone', 'photo', 'photo_medium', 'photo_big', 'has_mobile', 'rate', 'contacts', 'education', 'online'.;

  • :name_case (String)

    Case for declension of user name and surname:; 'nom' — nominative (default); 'gen' — genitive ; 'dat' — dative; 'acc' — accusative ; 'ins' — instrumental ; 'abl' — prepositional



# File 'lib/vk/api/users/methods/get_followers.rb', line 15

Instance Method Details

#countInteger

Returns Number of followers to return.

Returns:

  • (Integer)

    Number of followers to return.



31
# File 'lib/vk/api/users/methods/get_followers.rb', line 31

attribute :count, API::Types::Coercible::Int.optional.default(100)

#fieldsArray, 'bdate'

Returns Profile fields to return. Sample values: 'nickname', 'screen_name', 'sex', 'bdate' (birthdate), 'city', 'country', 'timezone', 'photo', 'photo_medium', 'photo_big', 'has_mobile', 'rate', 'contacts', 'education', 'online'.;.

Returns:

  • (Array, 'bdate')

    Profile fields to return. Sample values: 'nickname', 'screen_name', 'sex', 'bdate' (birthdate), 'city', 'country', 'timezone', 'photo', 'photo_medium', 'photo_big', 'has_mobile', 'rate', 'contacts', 'education', 'online'.;



33
# File 'lib/vk/api/users/methods/get_followers.rb', line 33

attribute :fields, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default(nil)

#name_caseString

Returns Case for declension of user name and surname:; 'nom' — nominative (default); 'gen' — genitive ; 'dat' — dative; 'acc' — accusative ; 'ins' — instrumental ; 'abl' — prepositional.

Returns:

  • (String)

    Case for declension of user name and surname:; 'nom' — nominative (default); 'gen' — genitive ; 'dat' — dative; 'acc' — accusative ; 'ins' — instrumental ; 'abl' — prepositional



35
# File 'lib/vk/api/users/methods/get_followers.rb', line 35

attribute :name_case, API::Types::Coercible::String.enum("nom", "gen", "dat", "acc", "ins", "abl").optional.default(nil)

#offsetInteger

Returns Offset needed to return a specific subset of followers.

Returns:

  • (Integer)

    Offset needed to return a specific subset of followers.



29
# File 'lib/vk/api/users/methods/get_followers.rb', line 29

attribute :offset, API::Types::Coercible::Int.optional.default(nil)

#user_idInteger

Returns User ID.

Returns:

  • (Integer)

    User ID.



27
# File 'lib/vk/api/users/methods/get_followers.rb', line 27

attribute :user_id, API::Types::Coercible::Int.optional.default(nil)