Class: Vk::API::Likes::Methods::GetList
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Likes::Methods::GetList
- Defined in:
- lib/vk/api/likes/methods/get_list.rb
Overview
Returns a list of IDs of users who added the specified object to their 'Likes' list.
Arguments collapse
-
#count ⇒ Integer
Number of user IDs to return (maximum '1000').; Default is '100' if 'friends_only' is set to '0'; otherwise, the default is '10' if 'friends_only' is set to '1'.;.
-
#extended ⇒ Boolean
Specifies whether extended information will be returned.; '1' — to return extended information about users and communities from the 'Likes' list; '0' — to return no additional information (default).
-
#filter ⇒ String
Filters to apply:; 'likes' — returns information about all users who liked the object (default); 'copies' — returns information only about users who told their friends about the object.
-
#friends_only ⇒ Boolean
Specifies which users are returned:; '1' — to return only the current user's friends; '0' — to return all users (default).
-
#item_id ⇒ Integer
Object ID.
-
#offset ⇒ Integer
Offset needed to select a specific subset of users.
-
#owner_id ⇒ Integer
ID of the user, community, or application that owns the object.
-
#page_url ⇒ String
URL of the page where the is installed.
- #skip_own ⇒ Boolean
-
#type ⇒ String
; Object type:; 'post' — post on user or community wall; 'comment' — comment on a wall post; 'photo' — photo; 'audio' — audio; 'video' — video; 'note' — note; 'photo_comment' — comment on the photo; 'video_comment' — comment on the video; 'topic_comment' — comment in the discussion; 'sitepage' — page of the site where the is installed.
Instance Method Summary collapse
- #initialize(arguments) ⇒ Likes::Methods::GetList constructor
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Likes::Methods::GetList
|
# File 'lib/vk/api/likes/methods/get_list.rb', line 15
|
Instance Method Details
#count ⇒ Integer
Returns Number of user IDs to return (maximum '1000').; Default is '100' if 'friends_only' is set to '0'; otherwise, the default is '10' if 'friends_only' is set to '1'.;.
48 |
# File 'lib/vk/api/likes/methods/get_list.rb', line 48 attribute :count, API::Types::Coercible::Int.optional.default(nil) |
#extended ⇒ Boolean
Returns Specifies whether extended information will be returned.; '1' — to return extended information about users and communities from the 'Likes' list; '0' — to return no additional information (default).
44 |
# File 'lib/vk/api/likes/methods/get_list.rb', line 44 attribute :extended, API::Types::Form::Bool.optional.default(nil) |
#filter ⇒ String
Returns Filters to apply:; 'likes' — returns information about all users who liked the object (default); 'copies' — returns information only about users who told their friends about the object.
40 |
# File 'lib/vk/api/likes/methods/get_list.rb', line 40 attribute :filter, API::Types::Coercible::String.optional.default(nil) |
#friends_only ⇒ Boolean
Returns Specifies which users are returned:; '1' — to return only the current user's friends; '0' — to return all users (default).
42 |
# File 'lib/vk/api/likes/methods/get_list.rb', line 42 attribute :friends_only, API::Types::Form::Bool.optional.default(nil) |
#item_id ⇒ Integer
Returns Object ID. If 'type' is set as 'sitepage', 'item_id' can include the 'page_id' parameter value used during initialization of the .
36 |
# File 'lib/vk/api/likes/methods/get_list.rb', line 36 attribute :item_id, API::Types::Coercible::Int.optional.default(nil) |
#offset ⇒ Integer
Returns Offset needed to select a specific subset of users.
46 |
# File 'lib/vk/api/likes/methods/get_list.rb', line 46 attribute :offset, API::Types::Coercible::Int.optional.default(nil) |
#owner_id ⇒ Integer
Returns ID of the user, community, or application that owns the object. If the 'type' parameter is set as 'sitepage', the application ID is passed as 'owner_id'. Use negative value for a community id. If the 'type' parameter is not set, the 'owner_id' is assumed to be either the current user or the same application ID as if the 'type' parameter was set to 'sitepage'.; ;.
34 |
# File 'lib/vk/api/likes/methods/get_list.rb', line 34 attribute :owner_id, API::Types::Coercible::Int.optional.default(nil) |
#page_url ⇒ String
Returns URL of the page where the is installed. Used instead of the 'item_id' parameter.
38 |
# File 'lib/vk/api/likes/methods/get_list.rb', line 38 attribute :page_url, API::Types::Coercible::String.optional.default(nil) |
#skip_own ⇒ Boolean
50 |
# File 'lib/vk/api/likes/methods/get_list.rb', line 50 attribute :skip_own, API::Types::Form::Bool.optional.default(nil) |
#type ⇒ String
Returns ; Object type:; 'post' — post on user or community wall; 'comment' — comment on a wall post; 'photo' — photo; 'audio' — audio; 'video' — video; 'note' — note; 'photo_comment' — comment on the photo; 'video_comment' — comment on the video; 'topic_comment' — comment in the discussion; 'sitepage' — page of the site where the is installed.
32 |
# File 'lib/vk/api/likes/methods/get_list.rb', line 32 attribute :type, API::Types::Coercible::String |