Class: Vk::API::Photos::Methods::GetMarketUploadServer

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

Overview

Returns the server address for market photo upload.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :group_id (Integer)

    Community ID.

  • :main_photo (Boolean)

    '1' if you want to upload the main item photo.

  • :crop_x (Integer)

    X coordinate of the crop left upper corner.

  • :crop_y (Integer)

    Y coordinate of the crop left upper corner.

  • :crop_width (Integer)

    Width of the cropped photo in px.


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

Instance Method Details

#crop_widthInteger

Returns Width of the cropped photo in px.

Returns:

  • (Integer)

    Width of the cropped photo in px.


35
# File 'lib/vk/api/photos/methods/get_market_upload_server.rb', line 35

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

#crop_xInteger

Returns X coordinate of the crop left upper corner.

Returns:

  • (Integer)

    X coordinate of the crop left upper corner.


31
# File 'lib/vk/api/photos/methods/get_market_upload_server.rb', line 31

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

#crop_yInteger

Returns Y coordinate of the crop left upper corner.

Returns:

  • (Integer)

    Y coordinate of the crop left upper corner.


33
# File 'lib/vk/api/photos/methods/get_market_upload_server.rb', line 33

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

#group_idInteger

Returns Community ID.

Returns:

  • (Integer)

    Community ID.


27
# File 'lib/vk/api/photos/methods/get_market_upload_server.rb', line 27

attribute :group_id, API::Types::Coercible::Int

#main_photoBoolean

Returns '1' if you want to upload the main item photo.

Returns:

  • (Boolean)

    '1' if you want to upload the main item photo.


29
# File 'lib/vk/api/photos/methods/get_market_upload_server.rb', line 29

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