T
T
Tisso2015-06-17 14:27:33
In contact with
Tisso, 2015-06-17 14:27:33

How to work with video.save api vk?

I'm writing in Delphi x7
I need to add a video from YouTube. First I send
('GET',' https://api.vk.com/method/video.save?is_private=0&link= "'+(Edit3.Text)+'"&access_token='+token);
In edit3 Youtube link
In response comes upload_url and several parameters. The documentation says further that you need to contact the uploadurl, I do HTTPs.HTTPMethod('POST','aploadurl') in response, ok 200 comes. In VK, the video is defined as "not loaded yet".
Tried the same GET request, in response to the error {"error_code": 7, "error_msg": "no video found, check url"}
What is the error?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
ar4ebaldello, 2015-06-19
@ar4ebaldello

It is necessary to encode the string Edit3.Text for presentation in url, because it is a request parameter. Here they say how to do it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question