跳转到主要内容
POST
Reference example

请求规范

  • 方法与路径: POST /apis/v1/social/files
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/social/files
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

此操作不另收费。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
accountId
string
必填

One of your social accounts (acc_...).

Pattern: ^acc_[0-9A-Za-z]{22}$
contentType
string
必填
name
string
必填
Maximum string length: 255
url
string<uri>
必填
convertTo
enum<string>

Google Drive only: import the bytes as a Docs, Sheets or Slides file (a text or Office file becomes an editable document). OneDrive answers 400.

可用选项:
application/vnd.google-apps.document,
application/vnd.google-apps.spreadsheet,
application/vnd.google-apps.presentation
parentId
string

Target folder; the root when omitted.

响应

The stored file

data
object

A file or folder in a connected Google Drive or OneDrive. Ids are the provider's own.