E
E
elisey4742015-01-01 13:05:42
linux
elisey474, 2015-01-01 13:05:42

How to upload a photo to the wall through VK api?

here is my script:

curl "https://api.vk.com/method/photos.getWallUploadServer.xml?group_id=xxxxxxx&v=5.37&access_token=xxxxxxxx" -o dwlsrc.txt
dwlsrc=`xmlstarlet sel -t -m '//upload_url[1]' -v . -n <dwlsrc.txt`
echo $dwlsrc
curl -F "[email protected]/home/user/folder/photo.jpg" $dwlsrc

however crashes: Security Breach2
is that what's wrong?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artur Atnagulov, 2016-01-07
@atnartur

The process of uploading photos is written in the documentation .
However, the documentation is not so transparent. There, in some places you need to think specifically in order to understand what actually needs to be done. Here is an example of my implementation of uploading a photo and posting to a wall.

A
Alexey Akulovich, 2016-01-12
@AterCattus

It's still described...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question