Answer the question
In order to leave comments, you need to log in
How to process vk api methods through php cron?
Every day of the week, the database with users is updated:
at the input I have their id and id of their posts on the wall, I want to write to the database the number of likes on these posts by cron
, that is:
sql fetch and compose a string with id to query the vk api method
further (this is what needs to be redone for php cron) analogue on open api: (respectively, after initialization)
VK.Api.call("wall.getById", {posts: строка-с-idклиентов_id-их-записей}, function(r) {
тут всё просто и понятно
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question