brynq-sdk-zoho 2.0.3__tar.gz → 2.0.4__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.
- {brynq_sdk_zoho-2.0.3 → brynq_sdk_zoho-2.0.4}/PKG-INFO +1 -1
- {brynq_sdk_zoho-2.0.3 → brynq_sdk_zoho-2.0.4}/brynq_sdk_zoho/extract_zoho_desk.py +3 -2
- {brynq_sdk_zoho-2.0.3 → brynq_sdk_zoho-2.0.4}/brynq_sdk_zoho/upload_zoho_desk.py +2 -1
- {brynq_sdk_zoho-2.0.3 → brynq_sdk_zoho-2.0.4}/brynq_sdk_zoho.egg-info/PKG-INFO +1 -1
- {brynq_sdk_zoho-2.0.3 → brynq_sdk_zoho-2.0.4}/setup.py +1 -1
- {brynq_sdk_zoho-2.0.3 → brynq_sdk_zoho-2.0.4}/brynq_sdk_zoho/__init__.py +0 -0
- {brynq_sdk_zoho-2.0.3 → brynq_sdk_zoho-2.0.4}/brynq_sdk_zoho.egg-info/SOURCES.txt +0 -0
- {brynq_sdk_zoho-2.0.3 → brynq_sdk_zoho-2.0.4}/brynq_sdk_zoho.egg-info/dependency_links.txt +0 -0
- {brynq_sdk_zoho-2.0.3 → brynq_sdk_zoho-2.0.4}/brynq_sdk_zoho.egg-info/not-zip-safe +0 -0
- {brynq_sdk_zoho-2.0.3 → brynq_sdk_zoho-2.0.4}/brynq_sdk_zoho.egg-info/requires.txt +0 -0
- {brynq_sdk_zoho-2.0.3 → brynq_sdk_zoho-2.0.4}/brynq_sdk_zoho.egg-info/top_level.txt +0 -0
- {brynq_sdk_zoho-2.0.3 → brynq_sdk_zoho-2.0.4}/setup.cfg +0 -0
|
@@ -20,6 +20,7 @@ class ExtractZohoDesk(BrynQ):
|
|
|
20
20
|
self.headers = self._get_authentication(label=label)
|
|
21
21
|
self.base_url = "https://desk.zoho.com/api/v1/"
|
|
22
22
|
self.payload = {}
|
|
23
|
+
self.timeout = 3600
|
|
23
24
|
|
|
24
25
|
def _get_authentication(self, label):
|
|
25
26
|
"""
|
|
@@ -156,9 +157,9 @@ class ExtractZohoDesk(BrynQ):
|
|
|
156
157
|
This function helps the API calls to do a single call in one function
|
|
157
158
|
:return:
|
|
158
159
|
"""
|
|
159
|
-
response = requests.request("GET", url, headers=self.headers, data=self.payload)
|
|
160
|
+
response = requests.request("GET", url, headers=self.headers, data=self.payload, timeout=self.timeout)
|
|
160
161
|
if response.status_code == 401:
|
|
161
|
-
response = requests.request("GET", url, headers=self.headers, data=self.payload)
|
|
162
|
+
response = requests.request("GET", url, headers=self.headers, data=self.payload, timeout=self.timeout)
|
|
162
163
|
if response.status_code == 200:
|
|
163
164
|
df = response.json()
|
|
164
165
|
if 'data' in df:
|
|
@@ -19,6 +19,7 @@ class UploadZohoDesk(BrynQ):
|
|
|
19
19
|
super().__init__()
|
|
20
20
|
self.headers = self._get_authentication(label=label)
|
|
21
21
|
self.base_url = "https://desk.zoho.com/api/v1/"
|
|
22
|
+
self.timeout = 3600
|
|
22
23
|
|
|
23
24
|
def _get_authentication(self, label):
|
|
24
25
|
"""
|
|
@@ -45,5 +46,5 @@ class UploadZohoDesk(BrynQ):
|
|
|
45
46
|
:param payload: dict
|
|
46
47
|
"""
|
|
47
48
|
url = f"{self.base_url}tickets/{ticket_id}/timeEntry/{time_entry_id}"
|
|
48
|
-
response = requests.request("PATCH", url, headers=self.headers, data=json.dumps(payload))
|
|
49
|
+
response = requests.request("PATCH", url, headers=self.headers, data=json.dumps(payload), timeout=self.timeout)
|
|
49
50
|
return response
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|