V
V
Vladimir Pal2013-12-13 11:10:54
API
Vladimir Pal, 2013-12-13 11:10:54

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

2 answer(s)
V
Vladimir Pal, 2013-12-13
@chegivara

I figured it out, passed my owner_id and you need the owner of the video.

V
Vladimir Pal, 2013-12-13
@chegivara

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 question

Ask a Question

731 491 924 answers to any question