Cdiscount / API-MarketPlace-SDK-PHP

15 stars 42 forks source link

`GetAllModelList` endpoint not working ! #39

Open zaza-dahmane opened 6 years ago

zaza-dahmane commented 6 years ago

I'm currently trying to get model list for all the categories, but it timeout. in cdiscount website I've found this:

Timeout on GetAllModelList method In progress Not defined use the GetModelList method

The solution would be to use the GetModelList method, but it also Timeout Do you know any other way to get all categories model list ?

yoandm commented 6 years ago

I saw it to. I need all the models too. Do you have any news about it ?

gregz1 commented 6 years ago

hello i just tried the getModelList Method and it seems to work well. Did you provide a category code as parameter ? you can test this method here : https://cdscntmkpapiwebapp.herokuapp.com/ProductManager/GetModelListRequest

yoandm commented 6 years ago

Yes ok for GetModelList but not for GetAllModelList (to get all the models). Thank you.

gregz1 commented 6 years ago

at the moment there is only one model available on Cdiscount Marketplace. it is returned several time in the GetAllModelList this the reason why it is systematically in timeout. At the moment if you need to have every Models you should call GetModelList for each category code provided by GetAllowedCategoryTree. In addition GetModelList provide additional informations according to the category provided.

yoandm commented 6 years ago

Only one model ? The same for all categories ? So we don't need to get every Model if there is only one ? I want to be sure to understand. Mandatories fields are not the same ? Thank you Greg.