Updated on 2024-03-05 GMT+08:00

POST /ccmessaging/downloadFileStream

Description

User Accepting Files

Method

POST

URI

https://Domain Name/apiaccess/ccmessaging/downloadFileStream.For example,the domain name is service.besclouds.com.

Request

Table 1 Header Parameters

Seq.

Name

Type

Mandatory

Description

1

ccmessaging-token

string

True

ccmessagign-token generated by the applyToken interface

2

x-app-key

string

True

The same as app_key, which uniquely identifies a user,configuration on the API Fabric

3

Authorization

string

True

Authentication field. The value format is as follows: Bearer +AccessToken in the return values of the tokenByAKSK interface (there is a space after Bearer)

Table 2 Body Parameters

Seq.

Name

Type

Mandatory

Description

1

reqBody

7.1.1

True

Request body

Response

  • Status code: 200

    7.1.2

  • Status code: 400

    Incorrect request:Check the request path and parameters.

  • Status code: 401

    Unauthorized:1.Check whether you have purchased related services.2.Contact the customer service personnel to check the current status of your account.

  • Status code: 404

    Request not found: Check the request path.

  • Status code: 500

    Service failure:Check the values of the parameters in the request.

Error Code

None.

Message Example

  • Scene description:demo

    URL:

    Request Parameter:

    { "fileType": "jpg", "channel": "WEB", "fileId": "XXXXXXXXXXXXXXXX" }

    Response Parameter:

    { "fileStream": "/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wAARCAA9ADwDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcI" }