Class: Vk::API::Photos::Methods::GetMarketUploadServer
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Photos::Methods::GetMarketUploadServer
- Defined in:
- lib/vk/api/photos/methods/get_market_upload_server.rb
Overview
Returns the server address for market photo upload.
Arguments collapse
-
#crop_width ⇒ Integer
Width of the cropped photo in px.
-
#crop_x ⇒ Integer
X coordinate of the crop left upper corner.
-
#crop_y ⇒ Integer
Y coordinate of the crop left upper corner.
-
#group_id ⇒ Integer
Community ID.
-
#main_photo ⇒ Boolean
‘1’ if you want to upload the main item photo.
Instance Method Summary collapse
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Photos::Methods::GetMarketUploadServer
|
# File 'lib/vk/api/photos/methods/get_market_upload_server.rb', line 15
|
Instance Method Details
#crop_width ⇒ Integer
Returns 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_x ⇒ Integer
Returns 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_y ⇒ Integer
Returns 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) |