Class: Vk::API::Photos::Methods::GetOwnerPhotoUploadServer

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

Overview

Returns an upload server address for a profile or community photo.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :owner_id (Integer)

    identifier of a community or current user.; ; "Note that community id must be negative.; 'owner_id=1' – user; 'owner_id=-1' – community; "



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

Instance Method Details

#owner_idInteger

Returns identifier of a community or current user.; ; "Note that community id must be negative.; 'owner_id=1' – user; 'owner_id=-1' – community; ".

Returns:

  • (Integer)

    identifier of a community or current user.; ; "Note that community id must be negative.; 'owner_id=1' – user; 'owner_id=-1' – community; "



23
# File 'lib/vk/api/photos/methods/get_owner_photo_upload_server.rb', line 23

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