跳转到主要内容
GET
/
api
/
v2
/
channels
/
platforms
获取所有平台元数据
curl --request GET \
  --url https://aitoearn.cn/api/v2/channels/platforms
{
  "code": 0,
  "message": "请求成功",
  "data": [
    {
      "platform": "douyin",
      "displayName": {
        "en-US": "string",
        "zh-CN": "string"
      },
      "logoUrl": "https://assets.aitoearn.cn/example.png",
      "authType": "oauth2",
      "editor": "none",
      "contentLimits": {
        "modes": [
          "article2"
        ],
        "maxTitleLength": 1,
        "maxBodyLength": 1,
        "maxTotalTextLength": 1,
        "maxMediaCount": 1,
        "maxImages": 1,
        "maxVideos": 1
      },
      "mediaRules": {
        "imageFormats": [
          "string"
        ],
        "videoFormats": [
          "string"
        ],
        "maxImageSize": 1,
        "maxVideoSize": 1,
        "minVideoDuration": 1,
        "maxVideoDuration": 1,
        "minImageWidth": 1,
        "minImageHeight": 1,
        "maxImageWidth": 1,
        "maxImageHeight": 1,
        "aspectRatio": {
          "min": 1,
          "max": 1
        }
      },
      "topic": {
        "supported": true,
        "nativeField": true,
        "maxCount": 1,
        "maxTotalLength": 1
      },
      "capabilities": {
        "auth": {
          "supported": true,
          "revoke": true,
          "selectableAccounts": true,
          "refreshAccountAccess": true
        },
        "publish": {
          "supported": true,
          "cancel": true,
          "update": true,
          "verify": true,
          "finalize": true,
          "scheduleByPlatform": true,
          "optionSources": true,
          "completionStrategy": "sync"
        },
        "analytics": {
          "account": true,
          "work": true
        },
        "engagement": {
          "comments": {
            "list": {},
            "create": {}
          },
          "functions": [
            {}
          ]
        },
        "work": {
          "listWorks": true,
          "listWorksPagination": {},
          "getLinkInfo": true,
          "getDetail": true,
          "verifyOwnership": true
        },
        "browse": {
          "search": true,
          "getDetail": true
        },
        "webhook": {
          "supported": true
        }
      },
      "optionSchema": {},
      "status": "hidden",
      "authInstructions": {
        "en-US": "string",
        "zh-CN": "string"
      }
    }
  ]
}

响应

200 - application/json

请求已被服务处理。业务是否成功以响应体 code === 0 为准。

code
integer
必填

业务状态码。0 表示成功,非 0 表示业务错误。

message
string
必填

响应消息。

data
object[]
requestId
string

请求 ID。

timestamp
integer

错误响应时间戳,Unix 毫秒。