Class: Vk::API::Photos::Methods::GetUploadServer

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

Overview

Returns the server address for photo upload.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Photos::Methods::GetUploadServer

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :album_id (Integer)

    Album ID.

  • :group_id (Integer)

    ID of community that owns the album (if the photo will be uploaded to a community album).


# File 'lib/vk/api/photos/methods/get_upload_server.rb', line 15

Instance Method Details

#album_idInteger

Returns Album ID.

Returns:

  • (Integer)

    Album ID.


24
# File 'lib/vk/api/photos/methods/get_upload_server.rb', line 24

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

#group_idInteger

Returns ID of community that owns the album (if the photo will be uploaded to a community album).

Returns:

  • (Integer)

    ID of community that owns the album (if the photo will be uploaded to a community album).


26
# File 'lib/vk/api/photos/methods/get_upload_server.rb', line 26

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