Answer the question
In order to leave comments, you need to log in
Why doesn't the photos.saveMarketAlbumPhoto method work?
The photos.saveMarketAlbumPhoto vk API method does not work if it is called via the execute method.
- I get the server url - photos.getMarketAlbumUploadServer
- I upload photos with curl
- I prepare parameters and pass them in different ways:
$param = array(
"group_id" => vk_gid,
"photo" => $data->photo,
"server" => $data->server,
"hash" => $data->hash
);
// Не работает
print_r($pack->execute('return API.photos.saveMarketAlbumPhoto('.json_encode($param).');'));
// Работает
print_r($pack->send('photos.saveMarketAlbumPhoto', $param));
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