Answer the question
In order to leave comments, you need to log in
How to add a video to the user/group list using Vkontakte api?
Hey!
I'm trying to add a video to a user/group list. vk.com/dev/video.add
video_id I take from someone else's video. Throws an error: "Permission to perform this action is denied".
The application has enough rights to work with video!
How do I add someone else's video to myself? Does it have to be downloaded and re-uploaded?
Answer the question
In order to leave comments, you need to log in
I figured it out, passed my owner_id and you need the owner of the video.
The programming language doesn't matter.
An example of how I do it in python.
# Получаю из аттача к посту id видео
vid = attachment['video']['vid']
# Добавление видео
req_url = "https://api.vk.com/method/video.add"
params = urllib.urlencode({'owner_id' : group_gid, 'video_id': vid, 'access_token': self.access_token})
response = urllib2.urlopen(req_url, params)
response = json.loads(response.read())
# Ну и тут получаю Permission to perform this action is denied
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question