Obtaining a Resource File
Function
This interface is invoked to obtain the multimedia message file stream sent by an agent to a user.
Interface Authentication
The authentication mode is the same as that described in Web Channel Interface Authentication.
Interface Prototype
|
Method |
GET |
|
|---|---|---|
|
URL |
https://{IP address}:{Port number}/social/on/{adapter}/resource/{channelId}/{resourceId} |
{IP address}:{Port number} indicates the IP address and port number of the NSLB exposed externally. {adapter} indicates the adapter name. {channelId} indicates the channel ID. {resourceId} indicates the resource ID. |
Request Parameters
|
Parameter |
Mandatory or Not |
Type |
Description |
|---|---|---|---|
|
channelId |
Yes |
String |
Channel ID. |
|
resourceId |
Yes |
String |
Resource ID. |
|
thumbnail |
No |
Boolean |
Whether to use thumbnails. |
Response Parameters
The response is the requested resource stream.
Example
- Request
GET /social/on/whatsapp/resource/202105102694809992/1030766076377116674 host: 10.10.10.2:18446 connection: Keep-Alive x-forwarded-for: 10.10.10.3, 10.10.10.4 x-real-ip: 10.10.10.5 content-length: 401 remote-host: 10.10.10.6 user-agent: java/socket accountkey: ************* content-type: application/json; charset=utf-8 cookie: JSESSION*****#*#*****3 accept: */*
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