# Function Description

According to the matching resources in the template assets

# Request

# Request example

GET /material/match/resource HTTPS
Host: <host>
Content-Type: application/json
Authorization: <AuthString>
Cache-Control: 'no-cache'

# Request Headers

Name Description Type Mandatory
Authorization User token information string true

# Request Parameters

Name Description Type Required
jsonUrl Information file link for template material string yes

# Request Body

none

# Response

# Response Header

No special response header

# Response Body

{
  "code": 0,
  "enMsg": "success",
  "msg": "成功",
  "data": [
    {
      "projectId": null,
      "mediaType": 3,
      "id": 17051,
      "title": "pexels-stock-image",
      "description": "",
      "duration": 5000,
      "coverUrl": "https://d1dy753lo9i1og.cloudfront.net/editor/2022/08/22/image/67c50b8021304fe6951e9244cdc778dc/67c50b8021304fe6951e9244cdc778dc-cover.jpg",
      "uuid": "aaa213d5b08440aa88afd0c00beba8a8",
      "userId": 1,
      "jobId": 30704,
      "status": 1,
      "m3u8Url": "https://d1dy753lo9i1og.cloudfront.net/editor/2022/08/22/image/67c50b8021304fe6951e9244cdc778dc/67c50b8021304fe6951e9244cdc778dc.m3u8",
      "leftChannelUrl": "",
      "rightChannelUrl": "",
      "alphaM3u8Url": "",
      "alphaUrl": "",
      "isDir": 0,
      "width": 1200,
      "height": 627,
      "url": "https://d1dy753lo9i1og.cloudfront.net/image/2022/8/23/7790a7bb-be6c-4110-9003-6e90680fa79b.jpg",
      "singleSliceUrl": "",
      "updateAt": 1661236225000,
      "fileSize": 168476,
      "thumbnails": null,
      "thumbnailInfo": {
        "interval": 1000,
        "urlPrefix": "https://d1dy753lo9i1og.cloudfront.net/editor/2022/08/22/image/67c50b8021304fe6951e9244cdc778dc/67c50b8021304fe6951e9244cdc778dc",
        "extension": "jpg"
      },
      "ancestorFolderPath": "/root_1",
      "isPublic": 0,
      "mutliFileInfo": null,
      "reverseInfo": null
    },
    ...
  ]
}
name description type value description (null value means the front end is not used)
projectId project id of the resource int non-0 means the project id is associated
mediaType type of resource int 1-3
id id of the resource int 0-MAXINT, 0 is the default value
title The name of the resource string Non-empty means the name of the resource is set
description The description of the resource string Non-empty means the description of the resource is set
duration The duration of the resource, in milliseconds int 0-MAXINT, 0 is the default value
coverUrl the cover link of the resource string non-empty means the transcoded cover address
uuid uuid of the resource string unique string of length 32
userId The user id of the resource int 0-MAXINT, 0 is the default value
jobId The task id of the resource int 0-MAXINT, 0 is the default value, indicating that the resource is not assigned a task
status task status of the resource int 0-5
m3u8Url The m3u8 link of the resource string Non-empty means the transcoded m3u8 address
leftChannelUrl left channel link of the resource string non-empty means left channel address after transcoding
rightChannelUrl the right channel link of the resource string non-empty means the transcoded right channel address
alphaM3u8Url resource's m3u8 link with alpha channel string non-null means the transcoded m3u8 address with channel
alphaUrl Resource link with alpha channel generated after resource transcoding string Non-null means the transcoded resource address with channel
isDir Is it a serialized resource with a directory int 0-1
width The width of the image or video resource int 0-MAXINT, 0 is the default value
height The height of the image or video resource int 0-MAXINT, 0 is the default value
url link to the resource string non-empty means the resource address has been set
singleSliceUrl The resource link of the whole slice generated after resource transcoding string Non-empty means that the whole slice resource has been generated
updateAt The update timestamp of the resource, in milliseconds long Non-null means the timestamp has been set
fileSize resource file size, in bytes int non-zero means the file size has been set
thumbnails Thumbnail information of the resource in the form of an array array Non-empty means that the thumbnail information has been set
thumbnailInfo Thumbnail information for the resource in the form of an object object Non-null means that the thumbnail information is set
interval The time interval of resource thumbnails, in milliseconds int Non-zero means the time interval has been set
urlPrefix The prefix of the resource's thumbnail link, without timestamp and format string Non-empty means the resource link prefix has been set
extension The format suffix of the resource's thumbnail string Non-empty means that the thumbnail format suffix has been set
ancestorFolderPath resource upload path string non-empty means resource upload path has been set
isPublic Whether the resource is public int 0-1
mutliFileInfo Sequence diagram resource information object Reserved item, not set yet
reverseInfo Resource information after transcoding and reverse playback object Reserved item, not set yet

Failure response body:

{
  "code": -1,
  "enMsg": "failed",
  "msg": "失败"
}