Legacy Dev Forum Posts

 View Only

Sign Up

Metodo ApiClient getAuthentication no encontrado en SDK 50.1.0 Java

  • 1.  Metodo ApiClient getAuthentication no encontrado en SDK 50.1.0 Java

    Posted 06-05-2025 19:20

    tavoskt | 2018-11-30 14:53:42 UTC | #1

    I want to start with the pureCloud chat, but when I try to find the getAuthentication method, I can not find it in the ApiClient class. I think maybe that method is no longer used?. This is using JAVA language


    tim.smith | 2018-11-30 15:27:43 UTC | #2

    I'm not sure what you're trying to accomplish. Why do you expect the getAuthentication method to exist and what are you expecting it to do?

    If you're trying to implement web chat, please refer to the Web Chat documentation. If you're trying to use the Java SDK, please refer to the Java SDK documentation, which covers authentication methods.


    tavoskt | 2018-11-30 19:33:04 UTC | #3

    From my application I want to chat with a purecloud agent. The app is being developed in java - mulesoft. In the documentation it mentions the class ApiClient.getAuthentication, but it is not found in the Class. :neutral_face:


    tim.smith | 2018-11-30 19:33:40 UTC | #4

    Can you link me to the documentation you're referring to?


    tavoskt | 2018-11-30 19:54:46 UTC | #5

    https://developer.mypurecloud.com/api/rest/client-libraries/java/latest/ConversationsApi.html#postChats

    Maybe I'm wrong, I'm new to this. I intend to complete the chat service with a purecloud agent. Please can you tell me if it is possible to do that. Thank you


    tim.smith | 2018-11-30 20:03:48 UTC | #6

    Ah, I hadn't noticed those examples are incorrect. Follow the authentication examples in the SDK docs I linked above.

    I'm not sure what kind of integration you're building, but be aware that there aren't currently APIs that allow you to actually send and receive chat messages. The API you linked to is for 3rd party chat routing only. There is a project to release an API for chat, but that won't be released until Q1 next year. If you're trying to ACD route PureCloud chats to agents, you have to use the web-based web chat that I linked to above.


    tavoskt | 2018-12-04 17:45:59 UTC | #7

    Hi Tim, Good Day, I started using the API, but I want to send a message, where I can get CommunicationID? Thanks


    tim.smith | 2018-12-04 18:34:01 UTC | #8

    What API resource are you trying to use? I don't have enough context to guess since there's a few thousand to choose from.


    tavoskt | 2018-12-04 19:04:15 UTC | #9

    Sorry, I'm working on the API "3rd party chat routing", but I want to POST - Send message. My question is Where I can find CommunicationID? ¿What is the process to send for the send message in the API "3rd party chat routing"?. I do not understand, some parameters I can not find, like the one I mentioned. Thank´s Tim :)


    tim.smith | 2018-12-04 20:08:00 UTC | #10

    Are you using POST /api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages? In this context, a message is an ACD routed SMS message.

    There aren't currently chat APIs, so you can't send messages in a chat via API.


    system | 2019-01-04 20:08:02 UTC | #11

    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: 4079