Search code examples
apiuploadvk

How to upload video via the VK api


I am new at VK api.
I want to upload video via the VK API. I cannot get sample codes in my investigation in google.

Can anyone give me sample code.


Solution

  • First you need to get http-url to upload video using this API method.

    Then you should make a POST-request containing field with "video_file" which will contain your video file in binary mode. Then you should call video.save method to save changes and get video_id