(endpoint: str, json: dict | None = None)
| 106 | |
| 107 | |
| 108 | def getsync(endpoint: str, json: dict | None = None): |
| 109 | try: |
| 110 | req = requests.get(f'{sd_url}{endpoint}', json=json, verify=False, auth=authsync()) # pylint: disable=missing-timeout |
| 111 | res = resultsync(req) |
| 112 | return res |
| 113 | except Exception as err: |
| 114 | log.error({ 'session': err }) |
| 115 | return {} |
| 116 | |
| 117 | |
| 118 | async def post(endpoint: str, json: dict | None = None): |
no test coverage detected