000sorrow000 | 2024-05-27 13:01:16 UTC | #1
Hi, I'd like to automate the process of uploading a contactlist CSV file by creating a java service. I can make a POST call to https://apps.mypurecloud.com/uploads/v2/contactlist, but this call needs an access token in the header (Bearer). My question is....can I get the token through OAuth 2 authentication with a client credentials grant type? What permissions does the client need? Thanks a lot.
000sorrow000 | 2024-05-31 12:44:15 UTC | #2
@tim.smith @Jerome.Saint-Marc Can you help me with my question ? Thanks a lot
tim.smith | 2024-05-31 13:25:49 UTC | #3
Hello, you can find documentation for the upload process here: https://developer.genesys.cloud/routing/outbound/uploadcontactlists. There are no specific permissions documented.
000sorrow000 | 2024-05-31 14:42:26 UTC | #4
Thanks for the reply. In the javascript example I found https://github.com/MyPureCloud/developercenter-tutorials/blob/master/upload-contacts/javascript/index.html , a loginImplicitGrant() (user context) is done. I need to use loginClientCredentialsGrant() , I don't have a user context, but I have a java service. Will this work with a loginClientCredentialsGrant() too? Thanks a lot
tim.smith | 2024-05-31 14:55:14 UTC | #5
That's not documented either way. What error are you getting when using client credentials?
000sorrow000 | 2024-05-31 15:40:20 UTC | #6
Hi Tim, I haven't done a test yet, I'm in the design phase of the java service. The goal was to first understand whether the http call needs a user context or not. Thanks a lot.
system | 2024-07-01 15:40:15 UTC | #7
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 26480