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