Sha256: c9a3f5390e449b8a16dc8db65260a892b0919f42e44bab69aa76166109c96d3c

Contents?: true

Size: 1.72 KB

Versions: 1

Compression:

Stored size: 1.72 KB

Contents

# frozen_string_literal: true
require 'vk/api/methods'

module Vk
  module API
    class Photos < Vk::Schema::Namespace
      module Methods
        # Returns information about photos by their IDs.
        class GetById < Schema::Method
          # @!group Properties

          self.open = true
          self.method = 'photos.getById'

          # @method initialize(arguments)
          #   @param [Hash] arguments
          #   @option arguments [Array] :photos IDs separated with a comma, that are IDs of users who posted photos and IDs of photos themselves with an underscore character between such IDs. To get information about a photo in the group album, you shall specify group ID instead of user ID. Example:; "1_129207899,6492_135055734, ; -20629724_271945303"
          #   @option arguments [Boolean] :extended '1' — to return additional fields; '0' — (default)
          #   @option arguments [Boolean] :photo_sizes '1' — to return photo sizes in a
          #   @return [Photos::Methods::GetById]

          # @!group Arguments

          # @return [Array] IDs separated with a comma, that are IDs of users who posted photos and IDs of photos themselves with an underscore character between such IDs. To get information about a photo in the group album, you shall specify group ID instead of user ID. Example:; "1_129207899,6492_135055734, ; -20629724_271945303"
          attribute :photos, API::Types::Coercible::Array.optional
          # @return [Boolean] '1' — to return additional fields; '0' — (default)
          attribute :extended, API::Types::Bool.optional
          # @return [Boolean] '1' — to return photo sizes in a
          attribute :photo_sizes, API::Types::Bool.optional
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vk-0.99.5.53.alpha lib/vk/api/photos/methods/get_by_id.rb