A
A
Alexey Solovyov2016-01-11 00:27:32
In contact with
Alexey Solovyov, 2016-01-11 00:27:32

photos.getMarketUploadServer stopped working. Does someone work?

With the parameter:
main_photo = 1
The URL for uploading a photo is returned, when sending a photo to which information is displayed:

  1. with photos_list parameter instead of photo
  2. without crop_data parameters . which, subsequently, does not allow adding a product using the market.add method (an error is thrown: One of the parameters specified was missing or invalid: invalid photo crop).

The error appeared on January 10 at 12:24 Moscow time, on January 9 everything worked correctly.
It was written to the support service, but when it is decided there, it is shrouded in fog ...
Page of the photos.getMarketUploadServer method

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Solovyov, 2016-01-11
@alekseysolo

The method has been corrected.

K
koder_ml9, 2017-02-03
@koder_ml9

Who has " missing or invalid: invalid photo crop ":
When calling photos.saveMarketPhoto , pass parameters to it: crop_data and crop_hash

V
Vasily, 2016-02-20
@xnscripter

From the API documentation, if you look at the photos.saveMarketPhoto method, the required parameters are: photo, server, hash.
But after successive calls to photos.getMarketUploadServer -> CURL uploading an image -> photos.saveMarketPhoto -> market.add with parameters owner_id, name, description, category_id, price, deleted, main_photo_id, photo_ids - a similar response comes from the API server: One of the parameters specified was missing or invalid: invalid photo crop.
In general, the strange behavior of the service, either the documentation incorrectly describes the functionality, or problems in the logic of the API server itself.
PS It seemed to me a strange decision to use different methods to get a server for loading / saving images, and in general a peremptory change in the names of the returned / transmitted fields.
Under Durov, there was no such thing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question