filters in orders by product

This commit is contained in:
2023-11-16 03:28:36 +03:00
parent cba9d37cdb
commit 57bb4fd5e4
3 changed files with 11 additions and 5 deletions

View File

@@ -19,10 +19,10 @@ class SiproClient:
self.initialized = True
logger_instance.info('SiproClient successfully initialized')
def method(self, http_method: str, method: str, data: dict = None, raw=False):
def method(self, http_method: str, method: str, data: dict = None, raw=False, params: dict = None):
url = self.api_url + '/assemblr' + method
headers = {'Authorization': self.token}
response = requests.request(http_method, url, headers=headers, json=data)
response = requests.request(http_method, url, headers=headers, json=data, params=params)
if raw:
return response
return response.json()