V
V
Vasily2017-02-06 16:41:55
In contact with
Vasily, 2017-02-06 16:41:55

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));

[error_code] => 129
[error_msg] => Invalid photo
vk technical support sends replies for the second year that the problem is in the queue for a solution.
Perhaps someone managed to make friends with the photos.saveMarketAlbumPhoto method with execute?
PS other methods work through execute, for example API.photos.getAlbums();

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question