Interested in the question of how to attach a document as a graffiti without any programs, but perhaps with an API for PHP or in another way?
I know off topic, but I just don’t know where to turn.
Interested in the question of how to attach a document as a graffiti without any programs, but perhaps with an API for PHP or in another way?
I know off topic, but I just don’t know where to turn.
Found a solution, everything is loaded via the API. We upload_url first: https://api.vk.com/method/docs.getUploadServer?access_token=token
Now that we have upload_url , we upload a png image onto it using the POST method with the type=graffiti parameter passed.
As a result, we get the id of the document, which we can attach in messages or comments, and if we need to save it to our documents, we will use the docs.save method.
Source: https://ru.stackoverflow.com/questions/758548/
All Articles