feat: new handies for ozon
This commit is contained in:
		
							
								
								
									
										8
									
								
								external/marketplace/ozon/core.py
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								external/marketplace/ozon/core.py
									
									
									
									
										vendored
									
									
								
							@@ -25,7 +25,7 @@ class OzonMarketplaceApi(BaseMarketplaceApi):
 | 
			
		||||
        return "https://api-seller.ozon.ru"
 | 
			
		||||
 | 
			
		||||
    async def get_products(self, data: dict) -> dict:
 | 
			
		||||
        method = '/v2/product/list'
 | 
			
		||||
        method = '/v3/product/list'
 | 
			
		||||
        response = await  self._method('POST', method, json=data)
 | 
			
		||||
        return response
 | 
			
		||||
 | 
			
		||||
@@ -36,7 +36,9 @@ class OzonMarketplaceApi(BaseMarketplaceApi):
 | 
			
		||||
            data = {
 | 
			
		||||
                'limit': limit,
 | 
			
		||||
                'last_id': last_id,
 | 
			
		||||
 | 
			
		||||
                'filter':{
 | 
			
		||||
                    'visibility': 'ALL',
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
            response = await self.get_products(data)
 | 
			
		||||
            if not response:
 | 
			
		||||
@@ -54,7 +56,7 @@ class OzonMarketplaceApi(BaseMarketplaceApi):
 | 
			
		||||
                break
 | 
			
		||||
 | 
			
		||||
    async def get_products_info(self, data: dict) -> dict:
 | 
			
		||||
        method = '/v2/product/info/list'
 | 
			
		||||
        method = '/v3/product/info/list'
 | 
			
		||||
        response = await self._method('POST', method, json=data)
 | 
			
		||||
        return response
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user