跳转到主要内容
POST
/
v1
/
files
/
download_links
Get File Download Links
curl --request POST \
  --url https://files.uqpaytech.com/api/v1/files/download_links \
  --header 'Content-Type: application/json' \
  --header 'x-auth-token: <api-key>' \
  --data '
{
  "file_ids": [
    "b3d9d2d5-4c12-4946-a09d-953e82sed2b0",
    "b3d9d2d5-4c12-4946-a09d-953e82sed2b1",
    "b3d9d2d5-4c12-4946-a09d-953e82sed2b2"
  ]
}
'
{
  "files": [
    {
      "file_id": "b3d9d2d5-4c12-4946-a09d-953e82sed2b0",
      "file_type": "png",
      "file_name": "example.png",
      "size": 123456,
      "url": "https://files.uqpaytech.com/api/v1/files/b3d9d2d5-4c12-4946-a09d-953e82sed2b0"
    }
  ],
  "absent_files": [
    "b3d9d2d5-4c12-4946-a09d-953e82sed2b1",
    "b3d9d2d5-4c12-4946-a09d-953e82sed2b2"
  ]
}

Documentation Index

Fetch the complete documentation index at: https://developers-sandbox.uqpaytech.com/llms.txt

Use this file to discover all available pages before exploring further.

授权

x-auth-token
string
header
必填

Token used to request APIs

请求头

x-on-behalf-of
string

The value set to the connected account's ID. More information at List Connected Accounts

请求体

application/json
file_ids
string<uuid>[]
必填

List of file IDs to retrieve download links for.

示例:
[
"b3d9d2d5-4c12-4946-a09d-953e82sed2b0",
"b3d9d2d5-4c12-4946-a09d-953e82sed2b1",
"b3d9d2d5-4c12-4946-a09d-953e82sed2b2"
]

响应

200 - application/json

OK - Successfully get file download links.

files
object[]

List of files with their download links.

absent_files
string<uuid>[]

List of file IDs that were requested but could not be found.

示例:
[
"b3d9d2d5-4c12-4946-a09d-953e82sed2b1",
"b3d9d2d5-4c12-4946-a09d-953e82sed2b2"
]