MCPcopy
hub / github.com/spaceandtimefdn/SxT-Python-SDK / auth_idexists

Method auth_idexists

src/spaceandtime/sxtbaseapi.py:517–526  ·  view source on GitHub ↗

-------------------- Calls and returns data from API: auth/idexists, which returns True if the User_ID supplied exists, False if not. Returns: bool: Success flag (True/False) indicating the api call worked as expected. object: Response informa

(self, user_id:str )

Source from the content-addressed store, hash-verified

515
516
517 def auth_idexists(self, user_id:str ):
518 """--------------------
519 Calls and returns data from API: auth/idexists, which returns True if the User_ID supplied exists, False if not.
520
521 Returns:
522 bool: Success flag (True/False) indicating the api call worked as expected.
523 object: Response information from the Space and Time network, as list or dict(json).
524 """
525 success, rtn = self.call_api('auth/idexists/{id}', False, SXTApiCallTypes.GET, path_parms={'id':user_id})
526 return success, rtn if success else [rtn]
527
528
529 def auth_keys(self):

Callers 1

existsMethod · 0.80

Calls 1

call_apiMethod · 0.95

Tested by

no test coverage detected