The SetUserToken() function uses your client_id and client_secret to get a techUserToken. You can find the SetUserToken() function in the auth.py file.
Function structure:
SetUserToken(clientID: str, clientSECRET: str) -> str:
Function inputs:
clientID(string, should be in the form of hostTenant-appName-appVersion, e.g. exapleTenant-exampleApp-v0.0.1-1234567)clientSECRET(string)
PLEASE NOTE: don't get confused with
userTenantandhostTenant. Unless the app, that is granting your credentials (clientID&clientSECRET) is running on a different tenant than the one you want to access, youruserTenant=hostTenant. Visit the MindSphere Documentation for more information.
Example output:
Info: this function was run and tested on python version 3.10.8
