Skip to content
Snippets Groups Projects

Add OneShot and OneShotCatalog resources

Merged Daniel Palomar requested to merge feat/add-one-shot-catalog-resource into master
Files
5
@@ -18,11 +18,11 @@ class OneShotCatalog:
self.one_shots = [OneShot(**product) for product in one_shots]
@classmethod
def search(cls, product_code, lang="ca"):
def search(cls, code="21IVA", product_code="", lang="ca"):
headers = {"Accept-Language": lang}
response_data = Client().get(
"{}".format(cls._url_path),
params={"product_code": product_code},
cls._url_path,
params={"code": code, "product_code": product_code},
extra_headers=headers,
)
Loading