API 接口

API Docs

post
listofmain

https://api.st.link/angelia/listofmain
获取首页列表
Request
Response
Headers
Content-Type
required
string
application/json
Body Parameters
userid
required
string
用户id
page
required
string
页码
200: OK
Cake successfully retrieved.
{
"errcode": 0,
"timestamp": 1560167195,
"nickname": "拿铁加不加糖",
"avatar": "A0ADA632-A317-451F-BB2C-47411853A147",
"msg": [
{
"code": "9e026c0870d511e9a0253a8dfd6ffffa",
"message": "我怎么感觉自己有点愤青呢,只有我一个是这样的吗?",
"link": "https://www.v2ex.com/t/572389",
"timestamp": 1560165522,
"msgid": "8102fec28b7111e9a8df3ac4a5e9570d",
"name": "V2EX",
"note": "24小时热门",
"cover": "EE47A4AB-8A6F-4C81-8F14-C44BD98A38EC",
"star": false
},
{
"code": "ETYF6C",
"message": "thisisatest",
"link": "",
"timestamp": 1560164811,
"msgid": "d932a9c88b6f11e981ab36a0653f5bee",
"name": "御用测试机器人",
"note": "备注是个好东西",
"cover": "EE5870A8-FA9B-4353-84B3-16B58BCFF696",
"star": false
}
],
"page": 0,
"stars": [
"f51b7d74749811e9a1726246bf7677e8",
"63a478b87b1f11e99c06163e9efa77c7"
]
}
CURL
curl -X POST \
https://api.st.link/angelia/listofmain \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"userid": "BC431A0F-XXXX-XXXX-XXXX-2081F5A13348",
"page": 0
}'

post
stars

https://api.st.link/angelia/stars
获取收藏列表
Request
Response
Headers
Content-Type
required
string
application/json
Body Parameters
userid
required
string
用户id
page
required
string
页码
200: OK
{
"errcode": 0,
"timestamp": 1560167594,
"msg": [
{
"msgid": "b3c85cec841b11e9aebfcee61cb2dfad",
"message": "在《我的世界》里从零打造一台计算机有多难?复旦本科生大神花费了一年心血",
"link": "https://mp.weixin.qq.com/s?__biz=MzI5NDY1MjQzNA%3D%3D&mid=2247489611&idx=1&sn=f637a350824ea40de76fa178de941895",
"timestamp": 1559359879
},
{
"msgid": "b1dd9bae841b11e996549a6635ae3638",
"message": "你用 Python 做过什么有趣的数据挖掘项目?",
"link": "https://mp.weixin.qq.com/s?__biz=MzI5NDY1MjQzNA%3D%3D&mid=2247489611&idx=5&sn=1ea21465b14e8f7464d616307f4900f3",
"timestamp": 1559359871
}
],
"page": 0
}
CURL
curl -X POST \
https://api.st.link/angelia/stars \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"userid": "BC431A0F-XXXX-XX-XXXX-2081F5A13348",
"page": 0
}'

post
history

https://api.st.link/angelia/history
获取机器人历史记录
Request
Response
Headers
Content-Type
required
string
application/json
Body Parameters
userid
required
string
用户id
code
required
string
机器码
page
required
string
页码
200: OK
{
"errcode": 0,
"timestamp": 1560171384,
"code": "9e026c0870d511e9a0253a8dfd6ffffa",
"isfollow": true,
"ismybot": true,
"ismute": false,
"name": "V2EX",
"note": "24小时热门",
"msg": [
{
"msgid": "183e30fc8b7e11e9a143ba615d9f0238",
"message": "今天发工资,到手又少了 450,个税就知道涨涨涨吗?",
"link": "https://www.v2ex.com/t/572328",
"timestamp": 1560170930
},
{
"msgid": "cc20c23a8b7711e98bfa6afb1436fa1d",
"message": "开箱 2 天的 macbook 2019 15 想出,给下建议。",
"link": "https://www.v2ex.com/t/572257",
"timestamp": 1560168225
}
],
"page": 0
}
CURL
curl -X POST \
https://api.st.link/angelia/history \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"userid": "BC431A0F-XXXX-XXXX-XXXX-2081F5A13348",
"code": "9e026c0870d511e9a0253a8dfd6ffffa",
"page": 0
}'

post
verify2email

https://api.st.link/angelia/verify2email
验证邮箱并绑定
Request
Response
Headers
Content-Type
required
string
application/json
Body Parameters
userid
required
string
用户id
email
required
string
待验证邮箱
vcode
required
string
验证码。传递空值为请求发送验证码模式;传递非空值为验证模式
200: OK
{
"errcode": 1001,
"timestamp": 1560172225,
"message": "验证码已发送,30分钟内有效"
}
CURL
curl -X POST \
https://api.st.link/angelia/verify2email \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"userid": "BC431A0F-XXXX-XXXX-XXXX-2081F5A13348",
"email": "xxxx@xxxx.com",
"vcode": ""
}'

post
delete

https://api.st.link/angelia/delete
删除消息
Request
Response
Headers
Content-Type
required
string
application/json
Body Parameters
code
required
string
机器码
token
required
string
令牌
msgid
required
string
消息id
200: OK
{
"errcode": 0,
"timestamp": 1560172781
}
CURL
curl -X POST \
https://api.st.link/angelia/delete \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"code": "XXXXXX",
"token": "XXXXXX",
"msgid": "001"
}'

post
report

https://api.st.link/angelia/report
举报消息
Request
Response
Headers
Content-Type
required
string
application/json
Body Parameters
msgid
required
string
消息id
200: OK
{
"errcode": 0,
"timestamp": 1560172986
}
CURL
curl -X POST \
https://api.st.link/angelia/report \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"msgid": "001"
}'

post
singlemessage

https://api.st.link/angelia/singlemessage
获取消息详细信息
Request
Response
Headers
Content-Type
required
string
application/json
Body Parameters
userid
required
string
用户id
msgid
required
string
消息id
200: OK
{
"errcode": 0,
"timestamp": 1560173133,
"isstar": false,
"link": "",
"message": "京东与腾讯达成新一轮战略合作,续签三年协议 https://readhub.cn/topic/7MzfayeC2GN"
}
CURL
curl -X POST \
https://api.st.link/angelia/singlemessage \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"userid": "BC431A0F-XXXX-XXXX-XXXX-2081F5A13348",
"msgid": "c1865f90734111e9b17c8ef45682e153"
}'

post
singlebox

https://api.st.link/angelia/singlebox
获取机器人详细信息
Request
Response
Headers
Content-Type
required
string
application/json
Body Parameters
userid
required
string
用户id
code
required
string
机器码
200: OK
{
"errcode": 0,
"timestamp": 1560173507,
"msg": {
"isauthor": true,
"author_name": "拿铁加不加糖",
"author_avatar": "A0ADA632-A317-451F-BB2C-47411853A147",
"code": "ETYF6C",
"name": "御用测试机器人",
"note": "备注是个好东西",
"heartbeat": -1,
"update": "1560164811",
"birth": "1557847848",
"cover": "EE5870A8-FA9B-4353-84B3-16B58BCFF696",
"fans": 1
}
}
CURL
curl -X POST \
https://api.st.link/angelia/singlebox \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"userid": "BC431A0F-XXXX-XXXX-XXXX-2081F5A13348",
"code": ETYF6C
}'

post
botupdate

https://api.st.link/angelia/botupdate
机器人信息更新
Request
Response
Headers
Content-Type
required
string
application/json
Body Parameters
code
required
string
机器人码
token
required
string
令牌
name
required
string
机器人新名称
note
required
string
机器人新描述
cover
required
string
机器人新封面
200: OK
{
"errcode": 0,
"timestamp": 1560173507,
}
CURL
curl -X POST \
https://api.st.link/angelia/botupdate \
-H 'Content-Type: application/json' \
-H 'Postman-Token: a23c06f9-e06c-492a-82b7-79fcbe8c9eee' \
-H 'cache-control: no-cache' \
-d '{
"code": "XXXXXX",
"token": "XXXXXX",
"name": "I, ROBOT",
"note": "I WILL BE BACK",
"cover": "XXXXXX"
}'

post
heartbeat

https://api.st.link/angelia/heartbeat
机器人心跳
Request
Response
Headers
Content-Type
required
string
application/json
Body Parameters
code
required
string
机器人码
200: OK
{
"errcode": 0,
"timestamp": 1560174626
}
CURL
curl -X POST \
https://api.st.link/angelia/heartbeat \
-H 'Content-Type: application/json' \
-H 'Postman-Token: f3873d30-732b-42d9-8704-4a1987267aee' \
-H 'cache-control: no-cache' \
-d '{
"code": "ETYF6C"
}'

post
botpublish

https://api.st.link/angelia/botpublish
消息发送
Request
Response
Headers
Content-Type
required
string
application/json
Body Parameters
code
required
string
机器码
token
required
string
令牌
message
required
string
消息文本
link
required
string
消息链接
noheartbeat
required
boolean
是否关闭心跳
200: OK
{
"errcode": 0,
"timestamp": 1560104611,
"noheartbeat": "禁用心跳检测"
}
CURL
curl -X POST \
https://api.st.link/angelia/botpublish \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"code": "XXXXXX",
"token": "XXXXXX",
"message": "Test100002",
"link": "https://angelia.codeeer.com",
"noheartbeat": true
}'

post
sendmessage

https://api.st.link/angelia/sendmessage/:code/:token/:message/:yesheartbeat
消息发送(简易模式)
Request
Response
Headers
Content-Type
required
string
application/json
Body Parameters
code
required
string
机器码
token
required
string
令牌
message
required
string
消息正文(需要进行URL编码)
yesheartbeat
optional
boolean
启用心跳检测(如无需启用,忽略此参数即可)
200: OK
{
"errcode": 0,
"timestamp": 1560163033,
"noheartbeat": "禁用心跳检测"
}
CURL
curl -X POST \
https://api.st.link/angelia/sendmessage/xxxxxx/xxxxxx/%E6%B5%8B%E8%AF%95 \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache'

post
follow

https://api.st.link/angelia/follow
关注机器人
Request
Response
Headers
Content-Type
required
string
application/json
Body Parameters
code
required
string
机器码
userid
required
string
用户id
sign
required
boolean
关注/取关
200: OK
{
"errcode": 0,
"timestamp": 1560176218,
"mute": true
}
curl -X POST \
https://api.st.link/angelia/follow \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"code": "ETYF6C",
"userid": "BC431A0F-XXXX-XXXX-XXXX-2081F5A13348",
"sign": true
}'

post
mute

https://api.st.link/angelia/mute
关闭/开启机器人推送提醒
Request
Response
Headers
Content-Type
required
string
application/json
Body Parameters
code
required
string
机器人码
userid
required
string
用户id
sign
required
string
关闭/开启提醒
200: OK
{
"errcode": 0,
"timestamp": 1560176630
}
curl -X POST \
https://api.st.link/angelia/mute \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"code": "ETYF6C",
"userid": "BC431A0F-XXXX-XXXX-XXXX-2081F5A13348",
"sign": true
}'

post
star

https://api.st.link/angelia/star
收藏消息
Request
Response
Headers
Content-Type
required
string
application/json
Body Parameters
msgid
required
string
消息id
userid
required
string
用户id
sign
required
string
收藏/取消收藏
200: OK
{
"errcode": 0,
"timestamp": 1560176765
}
CURL
curl -X POST \
https://api.st.link/angelia/star \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"msgid": "ccbf8b7a69a011e9b84ef62381ef04e8",
"userid": "BC431A0F-XXXX-XXXX-XXXX-2081F5A13348",
"sign": true
}'

post
botshop

https://api.st.link/angelia/botshop
机器人推荐商店
Request
Response
Headers
Content-Type
required
string
application/json
Body Parameters
userid
required
string
用户id
200: OK
{
"errcode": 0,
"timestamp": 1560176901,
"msg": [
{
"timestamp": 1557941583,
"isauthor": true,
"author_name": "拿铁加不加糖",
"author_avatar": "A0ADA632-A317-451F-BB2C-47411853A147",
"code": "982ab50070d611e9a0253a8dfd6ffffa",
"name": "Readhub",
"note": "基于官方RSS源发布",
"update": "1560143171",
"heartbeat": -1,
"birth": "1557240263",
"cover": "AAF2E031-E919-4AA3-A20B-E4ACF70BD902",
"fans": 432,
"isfollow": true,
"ismute": false
},
{
"timestamp": 1557941544,
"isauthor": true,
"author_name": "拿铁加不加糖",
"author_avatar": "A0ADA632-A317-451F-BB2C-47411853A147",
"code": "7a9a81cc70d711e9a0253a8dfd6ffffa",
"name": "抽屉",
"note": "根据官方RSS源订阅😋",
"update": "1560176522",
"heartbeat": -1,
"birth": "1557240649",
"cover": "DD1D6D22-CD0E-4EF8-969C-418798F06FFA",
"fans": 311,
"isfollow": false,
"ismute": true
},
{
"timestamp": 1557941525,
"isauthor": true,
"author_name": "拿铁加不加糖",
"author_avatar": "A0ADA632-A317-451F-BB2C-47411853A147",
"code": "9e026c0870d511e9a0253a8dfd6ffffa",
"name": "V2EX",
"note": "24小时热门",
"update": "1560176156",
"heartbeat": -1,
"birth": "1557239850",
"cover": "EE47A4AB-8A6F-4C81-8F14-C44BD98A38EC",
"fans": 463,
"isfollow": true,
"ismute": false
},
{
"timestamp": 1557941455,
"isauthor": true,
"author_name": "拿铁加不加糖",
"author_avatar": "A0ADA632-A317-451F-BB2C-47411853A147",
"code": "287d329270d511e986127a4df12e7af1",
"name": "掘金",
"note": "24小时热门",
"update": "1559856809",
"heartbeat": -1,
"birth": "1557239648",
"cover": "823AEA14-77E5-4889-8DCB-3EA1DC3855BC",
"fans": 246,
"isfollow": false,
"ismute": true
}
]
}
CURL
curl -X POST \
https://api.st.link/angelia/botshop \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"userid": BC431A0F-XXXX-XXXX-XXXX-2081F5A13348
}'

post
myfollow

https://api.st.link/angelia/myfollow
我的关注
Request
Response
Headers
Content-Type
required
string
application/json
Body Parameters
userid
required
string
用户id
200: OK
{
"errcode": 0,
"timestamp": 1560177293,
"msg": [
{
"timestamp": 1560176218,
"isauthor": true,
"author_name": "拿铁加不加糖",
"author_avatar": "A0ADA632-A317-451F-BB2C-47411853A147",
"code": "ETYF6C",
"name": "御用测试机器人",
"note": "备注是个好东西",
"update": "1560164811",
"heartbeat": -1,
"birth": "1557847848",
"cover": "EE5870A8-FA9B-4353-84B3-16B58BCFF696",
"fans": 1,
"isfollow": true,
"ismute": true
},
{
"timestamp": 1560161330,
"isauthor": true,
"author_name": "拿铁加不加糖",
"author_avatar": "A0ADA632-A317-451F-BB2C-47411853A147",
"code": "AD6NYMPG",
"name": "Test Bot",
"note": "Hi, there!",
"update": "1560161330",
"heartbeat": -1,
"birth": "1560161330",
"cover": "9BF2DE83-7370-48AB-AC47-AE7F517DC48B",
"fans": 1,
"isfollow": true,
"ismute": false
}
]
}
CURL
curl -X POST \
https://api.st.link/angelia/myfollow \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"userid":BC431A0F-XXXX-XXXX-XXXX-2081F5A13348
}'

post
mybot

https://api.st.link/angelia/mybot
我制作的机器人
Request
Response
Headers
Content-Type
required
string
application/json
Body Parameters
userid
required
string
用户id
200: OK
{
"errcode": 0,
"timestamp": 1560177725,
"msg": [
{
"timestamp": 1560161330,
"isauthor": true,
"author_name": "拿铁加不加糖",
"author_avatar": "A0ADA632-A317-451F-BB2C-47411853A147",
"code": "AD6NYMPG",
"name": "Test Bot",
"note": "Hi, there!",
"update": "1560161330",
"heartbeat": -1,
"birth": "1560161330",
"cover": "9BF2DE83-7370-48AB-AC47-AE7F517DC48B",
"fans": 1,
"isfollow": true,
"ismute": false
},
{
"timestamp": 1558791323,
"isauthor": true,
"author_name": "拿铁加不加糖",
"author_avatar": "A0ADA632-A317-451F-BB2C-47411853A147",
"code": "X638HWYP",
"name": "还是测试机器人",
"note": "嘿嘿嘿",
"update": "1558791323",
"heartbeat": -1,
"birth": "1558791323",
"cover": "38785B5D-3A15-470E-B6F4-4F2AF9B9AC96",
"fans": 1,
"isfollow": true,
"ismute": false
}
]
}
CURL
curl -X POST \
https://api.st.link/angelia/myfollow \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"userid":BC431A0F-XXXX-XXXX-XXXX-2081F5A13348
}'

post
find_rss

https://api.st.link/angelia/find_rss
Request
Response
Headers
Content-Type
required
string
application/json
Body Parameters
userid
required
string
用户id
code
required
string
RSS链接
200: OK
{
"errcode": 0,
"timestamp": 1560178787,
"code": "893009100c203e854f3c35232e8b8f4d",
"botname": "V2EX-最新主题",
"msg": {
"name": "V2EX-最新主题",
"note": "N/A",
"author": "N/A",
"update": 0,
"birth": 0,
"cover": "",
"fans": 0,
"isfollow": false
}
}
CURL
curl -X POST \
https://api.st.link/angelia/find_rss \
-H 'Content-Type: application/json' \
-H 'Postman-Token: d397230a-61e2-494e-a7b8-4ba57a5d8017' \
-H 'cache-control: no-cache' \
-d '{
"userid":BC431A0F-XXXX-XXXX-XXXX-2081F5A13348,
"code": "https://rsshub.app/v2ex/topics/latest"
}'

post
find_bot

https://api.st.link/angelia/find_bot
Request
Response
Headers
Content-Type
required
string
application/json
Body Parameters
userid
required
string
用户id
code
required
string
机器码
200: OK
{
"errcode": 0,
"timestamp": 1560179005,
"botname": "御用测试机器人",
"code": "ETYF6C"
}
CURL
curl -X POST \
https://api.st.link/angelia/find_bot \
-H 'Content-Type: application/json' \
-H 'Postman-Token: 24a2b2f4-4193-4b03-badd-7ff42d71b456' \
-H 'cache-control: no-cache' \
-d '{
"userid":"BC431A0F-XXXX-XXXX-XXXX-2081F5A13348",
"code":ETYF6C
}'

post
delete_bot

https://api.st.link/angelia/delete_bot
删除机器人(仅对机器人所有者可用)
Request
Response
Headers
Content-Type
required
string
application/json
Body Parameters
userid
required
string
用户id
code
required
string
机器码
token
required
string
令牌
200: OK
{
"errcode": 0,
"timestamp": 1560230940
}
CURL
curl -X POST \
https://api.st.link/angelia/delete_bot \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"userid": BC431A0F-XXXX-XXXX-XXXX-2081F5A13348,
"code": "X638HWYP",
"token": "02aa015ee38938df970d602ca9248100"
}'

post
setkeyword

https://api.st.link/angelia/setkeyword
设置关键词强制提醒
Request
Response
Headers
Content-Type
required
string
application/json
Body Parameters
userid
required
string
用户id
tags
required
array
关键词列表
200: OK
{
"errcode": 0,
"timestamp": 1560259753
}
CURL
curl -X POST \
https://api.st.link/angelia/setkeyword \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"userid": BC431A0F-XXXX-XXXX-XXXX-2081F5A13348,
"tags":["aa","bb","cc"]
}'

post
getkeyword

https://api.st.link/angelia/getkeyword
获取关键词
Request
Response
Headers
Content-Type
required
string
application/json
Body Parameters
userid
required
string
用户id
200: OK
{
"errcode": 0,
"timestamp": 1560260449,
"msg": [
"aa",
"bb",
"cc"
]
}
CURL
curl -X POST \
https://api.st.link/angelia/getkeyword \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"userid": BC431A0F-XXXX-XXXX-XXXX-2081F5A13348
}'