Class: Vk::API::Wall::Methods::GetById
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Wall::Methods::GetById
- Defined in:
- lib/vk/api/wall/methods/get_by_id.rb
Overview
Returns a list of posts from user or community walls by their IDs.
Arguments collapse
-
#copy_history_depth ⇒ Integer
Sets the number of parent elements to include in the array 'copy_history' that is returned if the post is a repost from another wall.
-
#extended ⇒ Boolean
'1' — to return user and community objects needed to display posts; '0' — no additional fields are returned (default).
- #fields ⇒ Array
-
#posts ⇒ Array
User or community IDs and post IDs, separated by underscores.
Instance Method Summary collapse
- #initialize(arguments) ⇒ Wall::Methods::GetById constructor
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Wall::Methods::GetById
|
# File 'lib/vk/api/wall/methods/get_by_id.rb', line 15
|
Instance Method Details
#copy_history_depth ⇒ Integer
Returns Sets the number of parent elements to include in the array 'copy_history' that is returned if the post is a repost from another wall.
30 |
# File 'lib/vk/api/wall/methods/get_by_id.rb', line 30 attribute :copy_history_depth, API::Types::Coercible::Int.optional.default(2) |
#extended ⇒ Boolean
Returns '1' — to return user and community objects needed to display posts; '0' — no additional fields are returned (default).
28 |
# File 'lib/vk/api/wall/methods/get_by_id.rb', line 28 attribute :extended, API::Types::Form::Bool.optional.default(nil) |
#fields ⇒ Array
32 |
# File 'lib/vk/api/wall/methods/get_by_id.rb', line 32 attribute :fields, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default(nil) |
#posts ⇒ Array
Returns User or community IDs and post IDs, separated by underscores. Use a negative value to designate a community ID. Example:; "93388_21539,93388_20904,2943_4276,-1_1".
26 |
# File 'lib/vk/api/wall/methods/get_by_id.rb', line 26 attribute :posts, API::Types::Coercible::Array.member(API::Types::Coercible::String) |