M
M
Millerish2016-06-24 18:50:47
Python
Millerish, 2016-06-24 18:50:47

How to upload a link with pictures in VK API?

Good afternoon!
I need to publish a post in vk using api and so that information would be pulled up from the page indicated in the description.
I'm trying to pass it through the attachments attribute, just insert a link in the body of the post ( nnmclub.to/forum/viewtopic.php?t=1028933) or refer to the image (' assets.nnm-club.ws/forum/image.php?link=http ://s01... ') - the only result of adding a link as text:
bc07bcf036f2421ea588682ffba86a8d.png
How to download a post preview or at least a picture (without uploading to the VK server first) using api?
The request as a whole looks like this:

r = ' https://api.vk.com/method/wall.post?attachments= ' + ' nnmclub.to/forum/viewtopic.php?t=1028933 ' + '&owner_id=-' + self.id_group_l.text () + '&publish_date=' + str(data) + '&message=' + text + '&version=' + '5.52' + '&access_token=' + self.access_token
r = requests.get(r)
r = r.json ()

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Вячеслав, 2016-06-24
@Millerish

Без загрузки на сервер-никак

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question