Playground
選一個公開介面,填好參數,看到產生的 curl 指令;按 Send 在瀏覽器裡直接試一下。Beta 期間公開閘道的 CORS 還沒全開,呼叫如果被瀏覽器擋住,請把產生的 curl 複製到本地終端執行。
AssetService.UploadAsset
上傳資產
身分使用者組織憑證OAuth 2.0API KeyScopescreative:write
project_idstring所属项目 ID。
filenamestring原始文件名。
content_typestringMIME 類型,例如 "image/png"、"video/mp4"。
datastring文件二进制数据。
metadataobject扩展元数据。
陣列(JSON)—— 直接貼 JSON 陣列。
wechat_mp_credentialsobject微信公众号 API 调用凭证。 当 server 需要把素材上传到微信公众号素材库时必填(图片 / 视频 / 缩略图)。 详见 WechatMpCredentials 设计说明(types.proto)。
app_idstring微信公众号 AppID(形如 "wxbd099e0f2e27cca4",18 位)。
app_secretstring微信公众号 AppSecret(32 位十六进制)。**敏感字段,禁止落日志**。
curl -X POST 'https://api.appforges.com/v1/creative/assets' \
-H 'Content-Type: application/json' \
-d '{
}'此介面需要鑑權。把上方的鑑權方式從「不鑑權」切到 OAuth 2.0 Bearer 或 API Key 後再送。
還沒傳送請求。
本 tab 內還沒有呼叫紀錄。