Hi all,
Sorry i'm a noob with getting this to work. We have a couple of hundred of external contacts in our purecloud and we've tasked one of our clerical people to add the fax numbers in to help with the workflow. I had invisioned being able to export all the contacts, add the fax numbers via a lookup table in excel, then importing them back in. Found theres a import, but no export.
Someone advised I could via the API, so I setup an OAuth app, with the grant type setup as client credentials and the rolls set to master admin.
I can request a token via a POST call to
https://login.mypurecloud.com.au/oauth/token and the body set to grant_type=client_credentials
when I try to call: api_response = api_instance.get_externalcontacts_contacts(page_size=999)
I get the error:
PureCloudPlatformClientV2.rest.ApiException: (401)
Reason: Unauthorized
HTTP response body: {"message":"Invalid login credentials.","code":"bad.credentials","status":401,"contextId":"f9aa9e82-fbd1-48f2-b0da-02bb243f8126","details":[],"errors":[]}
Any ideas why I'm getting the 401 error?
#Integrations#PlatformAdministration#SystemAdministration------------------------------
Andrew Casey
Benson Radiology
------------------------------