可以通过 获取草稿箱中所有的草稿得到草稿 ID;调用本接口可以将临时草稿选为持久的代码模板。
POST https://api.q.qq.com/api/component/template/addtotemplate?component_access_token=TOKEN
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
component_access_token | String | 是 | 第三方平台令牌 component_access_token |
draft_id | String | 是 | 草稿 ID |
POST 数据示例:
{"draft_id":0}
参数 | 类型 | 说明 |
---|---|---|
errcode | Number | 返回码 |
errmsg | String | 错误信息 |
返回结果示例:
{"errcode":0,"errmsg":"ok"}
返回码 | 说明 |
---|---|
-1 | 系统繁忙 |