Create convsersation

I want to make the Conversation from the Java SDK.
I have been proceeding the verification using following source code but I failed making the Conversation.

Please let me know the way to specify the ID of Queue to use the Conversation on the PostConversationsCallRequest and the user ID who does the Conversation.

Source Code
try {
ApiClient apiClient = ApiClient.Builder.standard().withBasePath("https://api.mypurecloud.jp").build();

    /* OAuth Authenticate */
    apiClient.authorizeClientCredentials(clientId, clientSecret);
    Configuration.setDefaultApiClient(apiClient);

    /* create conversation parameter */
    CallCommand body = new CallCommand();

    body.callNumber("0312345678");
    PostConversationsCallRequest arg = new PostConversationsCallRequest();
    arg.setBody(body);

    /* create conversation */
    new ConversationsApi().postConversationsCall(arg);

} catch (Exception e) {
e.printStackTrace();
System.exit(1);
}

Good Regards. Tommy

If you're trying to place an outbound call, use postConversationsCalls (with an s).

Thank you for your reply.

I checked the CreateConversationsCalls Parameters, but there was no Parameter to specify the the user id who made the call.

I want to know how to specify the user id in Grant Type(Client Credentials).

Good Regards Tommy.

Only users can make calls; client credentials cannot. You will need to implement a user-based form of authorization for your app (implicit, access token, or SAML2 bearer).

Thank you for your reply.

I fully understood.
I change the design of OAuth.

Good Regards Tommy.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.