brynq-sdk-zoho 1.0.0__tar.gz → 1.0.2__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-1.0.0 → brynq_sdk_zoho-1.0.2}/PKG-INFO +1 -1
- {brynq_sdk_zoho-1.0.0 → brynq_sdk_zoho-1.0.2}/brynq_sdk/zoho/extract_zoho_desk.py +3 -3
- {brynq_sdk_zoho-1.0.0 → brynq_sdk_zoho-1.0.2}/brynq_sdk/zoho/upload_zoho_desk.py +2 -2
- {brynq_sdk_zoho-1.0.0 → brynq_sdk_zoho-1.0.2}/brynq_sdk_zoho.egg-info/PKG-INFO +1 -1
- {brynq_sdk_zoho-1.0.0 → brynq_sdk_zoho-1.0.2}/setup.py +1 -1
- {brynq_sdk_zoho-1.0.0 → brynq_sdk_zoho-1.0.2}/brynq_sdk/zoho/__init__.py +0 -0
- {brynq_sdk_zoho-1.0.0 → brynq_sdk_zoho-1.0.2}/brynq_sdk_zoho.egg-info/SOURCES.txt +0 -0
- {brynq_sdk_zoho-1.0.0 → brynq_sdk_zoho-1.0.2}/brynq_sdk_zoho.egg-info/dependency_links.txt +0 -0
- {brynq_sdk_zoho-1.0.0 → brynq_sdk_zoho-1.0.2}/brynq_sdk_zoho.egg-info/not-zip-safe +0 -0
- {brynq_sdk_zoho-1.0.0 → brynq_sdk_zoho-1.0.2}/brynq_sdk_zoho.egg-info/requires.txt +0 -0
- {brynq_sdk_zoho-1.0.0 → brynq_sdk_zoho-1.0.2}/brynq_sdk_zoho.egg-info/top_level.txt +0 -0
- {brynq_sdk_zoho-1.0.0 → brynq_sdk_zoho-1.0.2}/setup.cfg +0 -0
|
@@ -4,7 +4,7 @@ import pandas as pd
|
|
|
4
4
|
from typing import Union, List
|
|
5
5
|
import requests
|
|
6
6
|
import json
|
|
7
|
-
from brynq_sdk.
|
|
7
|
+
from brynq_sdk.brynq import BrynQ
|
|
8
8
|
|
|
9
9
|
basedir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
10
10
|
sys.path.append(basedir)
|
|
@@ -17,11 +17,11 @@ class ExtractZohoDesk(BrynQ):
|
|
|
17
17
|
For the full documentation, see: https://avisi-apps.gitbook.io/tracket/api/
|
|
18
18
|
"""
|
|
19
19
|
super().__init__()
|
|
20
|
-
self.headers = self.
|
|
20
|
+
self.headers = self._get_authentication(label=label)
|
|
21
21
|
self.base_url = "https://desk.zoho.com/api/v1/"
|
|
22
22
|
self.payload = {}
|
|
23
23
|
|
|
24
|
-
def
|
|
24
|
+
def _get_authentication(self, label):
|
|
25
25
|
"""
|
|
26
26
|
Get the credentials for the Tracket API from BrynQ, with those credentials, get the access_token for Tracket.
|
|
27
27
|
Return the headers with the access_token.
|
|
@@ -17,10 +17,10 @@ class UploadZohoDesk(BrynQ):
|
|
|
17
17
|
For the full documentation, see: https://avisi-apps.gitbook.io/tracket/api/
|
|
18
18
|
"""
|
|
19
19
|
super().__init__()
|
|
20
|
-
self.headers = self.
|
|
20
|
+
self.headers = self._get_authentication(label=label)
|
|
21
21
|
self.base_url = "https://desk.zoho.com/api/v1/"
|
|
22
22
|
|
|
23
|
-
def
|
|
23
|
+
def _get_authentication(self, label):
|
|
24
24
|
"""
|
|
25
25
|
Get the credentials for the Traket API from BrynQ, with those credentials, get the access_token for Tracket.
|
|
26
26
|
Return the headers with the access_token.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|