Answer the question
In order to leave comments, you need to log in
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:
Answer the question
In order to leave comments, you need to log in
Who has " missing or invalid: invalid photo crop ":
When calling photos.saveMarketPhoto , pass parameters to it: crop_data and crop_hash
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 questionAsk a Question
731 491 924 answers to any question