平台列表
接口说明:返回已注册平台的元数据列表,包括展示名、logo、能力声明等
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"
}
}
]
}响应
请求已被服务处理。业务是否成功以响应体 code === 0 为准。
业务状态码。0 表示成功,非 0 表示业务错误。
响应消息。
Hide child attributes
Hide child attributes
平台
douyin, xhs, wxSph, KWAI, youtube, wxGzh, bilibili, twitter, tiktok, facebook, instagram, threads, pinterest, linkedin, google_business 平台 logo URL
授权类型
oauth2, browser, plugin, qrcode 编辑器类型
none, text, html 内容限制
Hide child attributes
Hide child attributes
支持的发布内容模式
article2, article, video 标题最大长度
正文最大长度
最终发布文本最大长度
媒体最大数量
图片最大数量
视频最大数量
媒体规则
Hide child attributes
Hide child attributes
图片格式
视频格式
图片最大字节数
视频最大字节数
视频最小秒数
视频最大秒数
图片最小宽度
图片最小高度
图片最大宽度
图片最大高度
平台操作能力
Hide child attributes
Hide child attributes
发布能力
Hide child attributes
Hide child attributes
是否支持服务端发布
是否支持取消平台侧发布
是否支持更新已发布内容
是否支持发布结果验证
是否支持发布后轮询或收尾
是否支持平台原生定时发布
是否支持动态发布选项
发布完成策略
sync, polling, media_finalize, webhook, user_handoff 互动能力
Hide child attributes
Hide child attributes
评论能力
Hide child attributes
Hide child attributes
评论列表能力
Hide child attributes
Hide child attributes
是否支持评论列表
评论列表分页能力
- Option 1
- Option 2
- Option 3
Hide child attributes
Hide child attributes
分页模式
cursor 默认数量
0 < x <= 9007199254740991最大数量
0 < x <= 9007199254740991是否支持上一页
评论列表参数
创建评论能力
Hide child attributes
Hide child attributes
是否支持创建评论
创建评论参数
Hide child attributes
Hide child attributes
平台支持的互动函数
Hide child attributes
Hide child attributes
互动函数名称
delete_comment, like, unlike, repost, undo_repost, quote, bookmark, remove_bookmark, hide_reply, unhide_reply, follow, unfollow 互动目标类型
work, comment, account 作品能力
Hide child attributes
Hide child attributes
是否支持账号作品列表
账号作品列表分页能力
- Option 1
- Option 2
- Option 3
Hide child attributes
Hide child attributes
分页模式
cursor 默认数量
0 < x <= 9007199254740991最大数量
0 < x <= 9007199254740991是否支持上一页
是否支持解析作品链接
是否支持作品详情
是否支持作品归属校验
发布选项 JSON Schema
平台状态
hidden, available, unavailable, coming_soon 空账号引导提示
Hide child attributes
Hide child attributes
默认发布选项
请求 ID。
错误响应时间戳,Unix 毫秒。
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"
}
}
]
}
