amocrm-api-wrapper 0.0.18__tar.gz → 0.0.20__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: amocrm-api-wrapper
3
- Version: 0.0.18
3
+ Version: 0.0.20
4
4
  Summary: Amocrm api wrapper v4
5
5
  Home-page: https://github.com/bzdvdn/amocrm-api-wrapper
6
6
  Author: bzdvdn
@@ -1225,6 +1225,7 @@ get_catalog_custom_fields = client.update_catalog_custom_field('<catalog_id>', [
1225
1225
 
1226
1226
  ### changelog
1227
1227
 
1228
+ - 0.0.18 - add filter_ids get_leads and \_get_entities method
1228
1229
  - 0.0.12 - add entity notes methods, rename updatecustomers_segments_custom_fields -> update_customers_segments_custom_fields
1229
1230
 
1230
1231
 
@@ -1213,4 +1213,5 @@ get_catalog_custom_fields = client.update_catalog_custom_field('<catalog_id>', [
1213
1213
 
1214
1214
  ### changelog
1215
1215
 
1216
+ - 0.0.18 - add filter_ids get_leads and \_get_entities method
1216
1217
  - 0.0.12 - add entity notes methods, rename updatecustomers_segments_custom_fields -> update_customers_segments_custom_fields
@@ -79,7 +79,7 @@ class BaseClient(object):
79
79
  if closed_from:
80
80
  filter_query["filter[closed_at][from]"] = closed_from
81
81
  if closed_to:
82
- filter_query["filter[closed_at][to]"] = created_to
82
+ filter_query["filter[closed_at][to]"] = closed_to
83
83
  filter_query.update({f"filter[{k}]": v for k, v in filters.items()})
84
84
  return filter_query
85
85
 
@@ -3485,7 +3485,7 @@ class BaseClient(object):
3485
3485
  }
3486
3486
  }
3487
3487
  """
3488
- url = f"{self.crm_url}/{entity_type}/custom_fields"
3488
+ url = f"{self.crm_url}/api/v4/{entity_type}/custom_fields"
3489
3489
  return self._send_api_request("post", url, custom_fields)
3490
3490
 
3491
3491
  def create_leads_custom_fields(self, custom_fields: list) -> dict:
@@ -3558,7 +3558,7 @@ class BaseClient(object):
3558
3558
  }
3559
3559
  }
3560
3560
  """
3561
- url = f"{self.crm_url}/{entity_type}/custom_fields"
3561
+ url = f"{self.crm_url}/api/v4/{entity_type}/custom_fields"
3562
3562
  return self._send_api_request("patch", url, custom_fields)
3563
3563
 
3564
3564
  def update_leads_custom_fields(self, custom_fields: list) -> dict:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: amocrm-api-wrapper
3
- Version: 0.0.18
3
+ Version: 0.0.20
4
4
  Summary: Amocrm api wrapper v4
5
5
  Home-page: https://github.com/bzdvdn/amocrm-api-wrapper
6
6
  Author: bzdvdn
@@ -1225,6 +1225,7 @@ get_catalog_custom_fields = client.update_catalog_custom_field('<catalog_id>', [
1225
1225
 
1226
1226
  ### changelog
1227
1227
 
1228
+ - 0.0.18 - add filter_ids get_leads and \_get_entities method
1228
1229
  - 0.0.12 - add entity notes methods, rename updatecustomers_segments_custom_fields -> update_customers_segments_custom_fields
1229
1230
 
1230
1231
 
@@ -9,7 +9,7 @@ def read(f):
9
9
 
10
10
  setup(
11
11
  name="amocrm-api-wrapper",
12
- version="0.0.18",
12
+ version="0.0.20",
13
13
  packages=find_packages(exclude=("tests",)),
14
14
  install_requires=[
15
15
  "requests",