Coretex
|
Inherits NetworkManagerBase.
Public Member Functions | |
NetworkResponse | authenticate (self, str username, str password, bool storeCredentials=True) |
NetworkResponse | authenticateWithStoredCredentials (self) |
Subclass of NetworkManagerBase intended to be used by a normal user. Contains functionality related to user and authenticating as a normal user.
Definition at line 25 of file network_manager.py.
NetworkResponse coretex.networking.network_manager.NetworkManager.authenticate | ( | self, | |
str | username, | ||
str | password, | ||
bool | storeCredentials = True |
||
) |
Authenticates user with provided credentials Parameters ---------- username : str Coretex.ai username password : str Coretex.ai password storeCredentials : bool If true credentials will be stored in User object for reuse Returns ------- NetworkResponse -> NetworkResponse object containing the full response info Example ------- >>> from coretex.networking import networkManager \b >>> response = networkManager.authenticate(username = "dummy@coretex.ai", password = "123456") >>> if response.hasFailed(): print("Failed to authenticate")
Definition at line 58 of file network_manager.py.
NetworkResponse coretex.networking.network_manager.NetworkManager.authenticateWithStoredCredentials | ( | self | ) |
Authenticates user with credentials stored inside User object Returns ------- NetworkResponse -> NetworkResponse object containing the full response info Raises ------ ValueError -> if credentials are not found
Definition at line 91 of file network_manager.py.