I am starting with the Python SDK an have problems with the credentials.
I have used the tutorial für authorization with client credential. I get a token an can get the list of roles by using requests:
response = requests.get('https://api.mypurecloud.ie/api/v2/users', headers=requestHeaders)
But when i try to use the SDK like this:
"# Configure OAuth2 access token for authorization: PureCloud Auth"
PureCloudPlatformApiSdk.configuration.access_token = responseJson['access_token']
"# create an instance of the API class"
api_instance = PureCloudPlatformApiSdk.UsersApi()
api_response = api_instance.get_users(page_size=page_size, page_number=page_number, id=id, sort_order=sort_order, expand=expand)
I always get an error:
{"status":401,"code":"bad.credentials","message":"Invalid login credentials."}