-------------------- Calls and returns data from API: auth/keys (get), which returns all keys for a valid token. Returns: bool: Success flag (True/False) indicating the api call worked as expected. object: Response information from the Space a
(self)
| 527 | |
| 528 | |
| 529 | def auth_keys(self): |
| 530 | """-------------------- |
| 531 | Calls and returns data from API: auth/keys (get), which returns all keys for a valid token. |
| 532 | |
| 533 | Returns: |
| 534 | bool: Success flag (True/False) indicating the api call worked as expected. |
| 535 | object: Response information from the Space and Time network, as list or dict(json). |
| 536 | """ |
| 537 | success, rtn = self.call_api('auth/keys', True, SXTApiCallTypes.GET) |
| 538 | return success, rtn if success else [rtn] |
| 539 | |
| 540 | |
| 541 | def auth_addkey(self, user_id:str, public_key:str, challange_token:str, signed_challange_token:str, scheme:str = "ed25519"): |