Class: Vk::API::Market::Methods::GetById

Inherits:
Schema::Method show all
Defined in:
lib/vk/api/market/methods/get_by_id.rb

Overview

Returns information about market items by their ids.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Market::Methods::GetById

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :item_ids (Array)

    Comma-separated ids list: \$1user id\$1_\$1item id\$1.; If an item belongs to a community -\$1community id\$1 is used. ; " 'Videos' value example: ; '-4363_136089719,13245770_137352259'"

  • :extended (Boolean)

    '1' – to return additional fields: 'likes, can_comment, car_repost, photos'. By default: '0'.



# File 'lib/vk/api/market/methods/get_by_id.rb', line 15

Instance Method Details

#extendedBoolean

Returns '1' – to return additional fields: 'likes, can_comment, car_repost, photos'. By default: '0'.

Returns:

  • (Boolean)

    '1' – to return additional fields: 'likes, can_comment, car_repost, photos'. By default: '0'.



26
# File 'lib/vk/api/market/methods/get_by_id.rb', line 26

attribute :extended, API::Types::Form::Bool.optional.default(nil)

#item_idsArray

Returns Comma-separated ids list: \$1user id\$1_\$1item id\$1.; If an item belongs to a community -\$1community id\$1 is used. ; " 'Videos' value example: ; '-4363_136089719,13245770_137352259'".

Returns:

  • (Array)

    Comma-separated ids list: \$1user id\$1_\$1item id\$1.; If an item belongs to a community -\$1community id\$1 is used. ; " 'Videos' value example: ; '-4363_136089719,13245770_137352259'"



24
# File 'lib/vk/api/market/methods/get_by_id.rb', line 24

attribute :item_ids, API::Types::Coercible::Array.member(API::Types::Coercible::String).constrained(max_size: 100)