Obtaining Token Information
Prerequisites
- The agent has signed in.
Description
After an agent signs in, a temporary token needs to be obtained as the password for softphone number registration in the multi-account unified authentication scenario.
Interface Method
The request method must be set to POST. This interface supports only the POST method.
URI
https://ip:port/agentgateway/resource/onlineagent/{agentid}/logininfo
In the URL, ip indicates the IP address of the CC-Gateway server, and port indicates the HTTPS port number of the CC-Gateway server.
No. |
Parameter |
Data Type |
Mandatory (Yes/No) |
Description |
---|---|---|---|---|
1 |
agentid |
String |
True |
Agent ID. The value ranges from 101 to 59999. |
Method Name in Logs
loginInfo
Request Description
- Message header
Table 2 Parameters in the request message header No.
Parameter
Value Type
Mandatory (Yes/No)
Description
1
Content-Type
String
True
Coding mode of the message body. The default value is application/json; charset=UTF-8.
2
Guid
String
True
GUID returned by the sign-in interface during static authentication (AUTHMODE is set to 1) or GUID returned by the polling event query interface during dynamic authentication (AUTHMODE is set to 2).
Response Description
No. |
Parameter |
Value Type |
Description |
---|---|---|---|
1 |
message |
String |
Description. |
2 |
retcode |
String |
Error code. The options are as follows:
For details, see Error Codes. |
3 |
result |
object |
Object in the returned result after a successful query. For details about the parameters of this object, see Table 4. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot