Answer the question
In order to leave comments, you need to log in
How to log in when working with the VK API?
PHP script should silently pull the video preview.
To do this, the VK documentation suggests logging in to
vk.com/dev/auth_sites
And then getting pictures using
vk.com/dev/video.get
But this is f$$ not suitable.!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!
Using this method, you need to constantly log in
. And then allow access for the full extravaganza
. Can I somehow solve such a complex and dangerous task as getting a video preview?
Answer the question
In order to leave comments, you need to log in
Actually, you can do everything through get requests, I'm talking about authorization, you just need to sniff the packets and correctly fold the requests, or create a token by hand. Suto according to the subject, there is such a parameter as offline ( in rights ), it gives your token immortality (by the way, there is an example at the end). But think twice before using it.
Yes, for sure, I did it like this, I wrote a script on a computer (sverve) (I think I used ffmpeg) and poured them into the image hoster. Although you have found a more elegant way.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question