Updated on 2025-11-13 GMT+08:00

Obtaining a Resource File

Function

This interface is invoked to obtain the multimedia message file stream sent by an agent to a user.

Usage Description

  • Prerequisites

    The agent has sent an MT multimedia message to the user.

Interface Authentication

The authentication mode is the same as that described in Web Channel Interface Authentication.

Interface Prototype

Table 1 Interface prototype description

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

Table 2 Request parameter description

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: */*