handsome开放接口
小于 1 分钟TypechoHandsome高级功能主题
警告
在 上支持
本节介绍handsome对外可用的开放接口。
时光机
发送时光机
Post 请求
POST /
Content - Type: multipart/form-data
{
"action": "send_talk", // 固定值
"content": "test", // 时光机发送的内容,不为空
"time_code": "xxx", // 时光机编码,不为空
"msg_type": "text" // 文本类型,具体说明见下表格:mixed_post / image / location / mixed_talk/ text / link
"cid": 11, // 时光机页面cid,当 msg_type 不为mixed_post,此子段不为空
"mid": 222, // 分类 mid,当 msg_type 为 mixed_post,此字段不为空
"token": "weixin", // 接口调用来源:crx/weixin/weChat/shortcuts/edge_crx/firfox_crx/crx,
}
msg_type | 说明 |
---|---|
mixed_post | 会使用 content 字段的内容发布文章 |
image | 将 content 字段的图片地址上传到服务器上,并且将图片发布到时光机 |
text | 会使用 content 字段的内容发布到时光机 |
link | 解析 content 的 link 为链接卡片,并发布到时光机 |
- 返回值
// 1 表示成功
// -2 传入信息缺失
// -3 身份验证失败
字符串