Class: Vk::API::Video::Methods::Add

Inherits:
Schema::Method show all
Defined in:
lib/vk/api/video/methods/add.rb

Overview

Adds a video to a user or community page.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Video::Methods::Add

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :target_id (Integer)

    identifier of a user or community to add a video to.; Use a negative value to designate a community ID.

  • :video_id (Integer)

    Video ID.

  • :owner_id (Integer)

    ID of the user or community that owns the video.; Use a negative value to designate a community ID.



# File 'lib/vk/api/video/methods/add.rb', line 15

Instance Method Details

#owner_idInteger

Returns ID of the user or community that owns the video.; Use a negative value to designate a community ID.

Returns:

  • (Integer)

    ID of the user or community that owns the video.; Use a negative value to designate a community ID.



29
# File 'lib/vk/api/video/methods/add.rb', line 29

attribute :owner_id, API::Types::Coercible::Int

#target_idInteger

Returns identifier of a user or community to add a video to.; Use a negative value to designate a community ID.

Returns:

  • (Integer)

    identifier of a user or community to add a video to.; Use a negative value to designate a community ID.



25
# File 'lib/vk/api/video/methods/add.rb', line 25

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

#video_idInteger

Returns Video ID.

Returns:

  • (Integer)

    Video ID.



27
# File 'lib/vk/api/video/methods/add.rb', line 27

attribute :video_id, API::Types::Coercible::Int