API 接口

API Docs

post
listoftimeline

https://angelia.st.link/listoftimeline
获取首页列表 Tips:列表使用顶部、底部加载的时间线基准方式加载(取代上一版的分页加载模式)
Request
Response
Request
Headers
Content-Type
required
string
application/json
Body Parameters
direct
required
string
加载方向 FirstLoad:首次加载,系统会无视target参数并以当前时间为基准返回50条数据 Pull:下拉下载,填充数据到当前时间线的顶部,系统会找出高于当前列表最前端时间戳的所有项返回,故target传当前列表中的最大值,也就是列表首项的时间戳 PullManual:和Pull的区别仅用于客户端区分,PullManual为用户手动下拉刷新,Pull为系统主动刷新,系统会返回该参数,客户端可用于判定是否需要自动滚动列表(系统行为仅需要加载新的项填充到当前列表的顶端,手动刷新则可以直接跳到列表的头部) Deep:加载更多,target传递当前列表尾部的时间戳,系统会返回比当前时间晚的50条数据
userid
required
string
用户id
target
required
string
时间戳
Response
200: OK
Cake successfully retrieved.
{
"errcode": 0,
"timestamp": 1578927685,
"nomore": false,
"direct": "FirstLoad",
"star": [
"01eed424ad1011e9b08da61298300e7d",
"04e428bc9e5d11e999ec062cb0853ed4",
"0d95d2009c8011e99ffe269b02501e5d",
"0f15d39e98d611e98f2f1e5f0c88aee2",
"0fa1af149ad311e98533669ba03af571",
"1dea65960baf11ea871bced2b0b5cbbe"
],
"msg": [
{
"timestamp": 1578927607,
"code": "7c2fa5dad7de59f00dfe29b79da2a6bd",
"msgid": "63430d60361511ea942b6a5d8f38d2cc",
"message": "未来一周可能主导全球市场的四件事:澳洲大火、美股财报、英国脱欧及中东局势",
"link": "https://m.cn.investing.com/news/forex-news/article-1917941",
"name": "Investing",
"note": "Investing.com",
"cover": "https://www.tinygraphs.com/squares/7c2fa5dad7de59f00dfe29b79da2a6bd?theme=bythepool&numcolors=3&size=220&fmt=png",
"mute": true,
"star": false
},
{
"timestamp": 1578927575,
"code": "AFX98RPHW7TDK62M",
"msgid": "504a9a0c361511ea80939a08c94d9306",
"message": "传比特大陆因涉案 BitClub 庞氏骗局或将取消在美 IPO 计划",
"link": "https://www.chainnews.com/news/487068323737.htm",
"name": "链闻",
"note": "ChainNews",
"cover": "BB466350-E03A-4B37-9B89-0628501C156B",
"mute": true,
"star": false
},
{
"timestamp": 1578927512,
"code": "982ab50070d611e9a0253a8dfd6ffffa",
"msgid": "2aa5a77e361511eabec6aa0ec7823cee",
"message": "腾讯视频WeTV与泰国3台达成战略合作 构建文化交流互鉴新格局",
"link": "https://tech.qq.com/a/20200113/045964.htm",
"name": "Readhub",
"note": "基于官方RSS源发布",
"cover": "AAF2E031-E919-4AA3-A20B-E4ACF70BD902",
"mute": false,
"star": false
}
]
}
CURL
curl --location --request POST 'https://angelia.st.link/angelia/listoftimeline' \
--header 'Content-Type: application/json' \
--data-raw '{
"userid": BC431A0F-XXXX-2081F5A13348,
"target": 1576604813,
"direct": "FirstLoad"
}'

post
stars

https://angelia.st.link/stars
获取收藏列表
Request
Response
Request
Headers
Content-Type
required
string
application/json
Body Parameters
userid
required
string
用户id
page
required
string
页码
Response
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://angelia.st.link/stars \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"userid": "BC431A0F-XXXX-XX-XXXX-2081F5A13348",
"page": 0
}'

post
history

https://angelia.st.link/history
获取机器人历史记录
Request
Response
Request
Headers
Content-Type
required
string
application/json
Body Parameters
userid
required
string
用户id
code
required
string
机器码
page
required
string
页码
Response
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://angelia.st.link/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://angelia.st.link/verify2email
验证邮箱并登录
Request
Response
Request
Headers
Content-Type
required
string
application/json
Body Parameters
userid
required
string
用户id
email
required
string
待验证邮箱
vcode
required
string
验证码。传递空值为请求发送验证码模式;传递非空值为验证模式
Response
200: OK
{
"errcode": 1001,
"timestamp": 1560172225,
"message": "验证码已发送,30分钟内有效"
}

对于旧用户,完成邮箱验证后,系统会返回已绑定的userid

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

post
report

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

post
singlemessage

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

post
singlebox

https://angelia.st.link/singlebox
获取机器人详细信息
Request
Response
Request
Headers
Content-Type
required
string
application/json
Body Parameters
userid
required
string
用户id
code
required
string
机器码
Response
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://angelia.st.link/singlebox \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"userid": "BC431A0F-XXXX-XXXX-XXXX-2081F5A13348",
"code": ETYF6C
}'

post
botupdate

https://angelia.st.link/botupdate
机器人信息更新
Request
Response
Request
Headers
Content-Type
required
string
application/json
Body Parameters
showlevel
optional
integer
机器人展示级别(0:私有, 1:公开, 2 or 3:公开并参与推荐)
code
required
string
机器人码
token
required
string
令牌
name
required
string
机器人新名称
note
required
string
机器人新描述
cover
required
string
机器人新封面
Response
200: OK
{
"errcode": 0,
"timestamp": 1560173507,
}
CURL
curl -X POST \
https://angelia.st.link/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",
"showlevel": 2
}'

post
heartbeat

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

post
follow

https://angelia.st.link/follow
关注机器人
Request
Response
Request
Headers
Content-Type
required
string
application/json
Body Parameters
mute
optional
boolean
开启/关闭推送提醒(默认为 true)
code
required
string
机器码
userid
required
string
用户id
sign
required
boolean
关注/取关
Response
200: OK
{
"errcode": 0,
"timestamp": 1560176218,
"mute": true
}
curl -X POST \
https://angelia.st.link/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://angelia.st.link/mute
关闭/开启机器人推送提醒
Request
Response
Request
Headers
Content-Type
required
string
application/json
Body Parameters
code
required
string
机器人码
userid
required
string
用户id
sign
required
boolean
关闭/开启提醒
Response
200: OK
{
"errcode": 0,
"timestamp": 1560176630
}
curl -X POST \
https://angelia.st.link/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://angelia.st.link/star
收藏消息
Request
Response
Request
Headers
Content-Type
required
string
application/json
Body Parameters
msgid
required
string
消息id
userid
required
string
用户id
sign
required
boolean
收藏/取消收藏
Response
200: OK
{
"errcode": 0,
"timestamp": 1560176765
}
CURL
curl -X POST \
https://angelia.st.link/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://angelia.st.link/botshop
机器人推荐商店
Request
Response
Request
Headers
Content-Type
required
string
application/json
Body Parameters
userid
required
string
用户id
Response
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://angelia.st.link/botshop \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"userid": BC431A0F-XXXX-XXXX-XXXX-2081F5A13348
}'

post
myfollow

https://angelia.st.link/myfollow
我的关注
Request
Response
Request
Headers
Content-Type
required
string
application/json
Body Parameters
userid
required
string
用户id
Response
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://angelia.st.link/myfollow \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"userid":BC431A0F-XXXX-XXXX-XXXX-2081F5A13348
}'

post
mybot

https://angelia.st.link/mybot
我制作的机器人
Request
Response
Request
Headers
Content-Type
required
string
application/json
Body Parameters
userid
required
string
用户id
Response
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://angelia.st.link/myfollow \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"userid":BC431A0F-XXXX-XXXX-XXXX-2081F5A13348
}'

post
find_rss

https://angelia.st.link/find_rss
Request
Response
Request
Headers
Content-Type
required
string
application/json
Body Parameters
userid
required
string
用户id
code
required
string
RSS链接
Response
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://angelia.st.link/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://angelia.st.link/find_bot
Request
Response
Request
Headers
Content-Type
required
string
application/json
Body Parameters
userid
required
string
用户id
code
required
string
机器码
Response
200: OK
{
"errcode": 0,
"timestamp": 1560179005,
"botname": "御用测试机器人",
"code": "ETYF6C"
}
CURL
curl -X POST \
https://angelia.st.link/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://angelia.st.link/delete_bot
删除机器人(仅对机器人所有者可用)
Request
Response
Request
Headers
Content-Type
required
string
application/json
Body Parameters
userid
required
string
用户id
code
required
string
机器码
token
required
string
令牌
Response
200: OK
{
"errcode": 0,
"timestamp": 1560230940
}
CURL
curl -X POST \
https://angelia.st.link/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://angelia.st.link/setkeyword
设置关键词强制提醒
Request
Response
Request
Headers
Content-Type
required
string
application/json
Body Parameters
userid
required
string
用户id
tags
required
array
关键词列表
Response
200: OK
{
"errcode": 0,
"timestamp": 1560259753
}
CURL
curl -X POST \
https://angelia.st.link/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://angelia.st.link/getkeyword
获取关键词
Request
Response
Request
Headers
Content-Type
required
string
application/json
Body Parameters
userid
required
string
用户id
Response
200: OK
{
"errcode": 0,
"timestamp": 1560260449,
"msg": [
"aa",
"bb",
"cc"
]
}
CURL
curl -X POST \
https://angelia.st.link/getkeyword \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"userid": BC431A0F-XXXX-XXXX-XXXX-2081F5A13348
}'

post
requestcode

https://angelia.st.link/requestcode
申请机器码
Request
Response
Request
Headers
Content-Type
required
string
application/json
Body Parameters
userid
required
string
用户id
Response
200: OK
{
"errcode": 0,
"timestamp": 1567483654,
"code": "XMQD****F4Y7",
"msg": "请合理使用机器人,剩余额度90/100"
}
CURL
curl -X POST \
https://angelia.st.link/requestcode \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"userid": "xxxxxx"
}'

post
botactive

https://angelia.st.link/botactive
激活机器人
Request
Response
Request
Headers
Content-Type
required
string
application/json
Body Parameters
code
required
string
机器码
userid
required
string
用户id
name
required
string
机器人昵称
note
required
string
机器人描述
cover
required
string
机器人封面
Response
200: OK
/*
errcode:
10001 - 激活码已失效
*/
{
"errcode": 0,
"timestamp": 1567572427,
"token": "2c0fa978997c39478c9d1f7b3a6d08e1"
}
CURL
curl -X POST \
https://angelia.st.link/botactive \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"code": "YHTXREM2WPK64QF8",
"userid": "xxxxxx",
"name": "假装是机器人🤖️",
"note": "Hey", "cover": "xxxxxx"
}'

post
freshdevicetoken

https://angelia.st.link/freshdevicetoken
更新用于推送的本地设备码
Request
Response
Request
Headers
Content-Type
required
string
application/json
Body Parameters
userid
required
string
用户id
devicetoken
required
string
设备码
devicetype
optional
string
设备类型(当前支持:ios,mi,默认值为ios)
Response
200: OK
{
"errcode": 0,
"timestamp": 1567703647
}
CURL
curl -X POST \
https://angelia.st.link/freshdevicetoken \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"userid": BC431A0F-XXXXXX-2081F5A13348,
"devicetoken": "XXXXXX"
}'

post
dosearch

https://angelia.st.link/dosearch
消息检索
Request
Response
Request
Headers
Content-Type
required
string
application/json
Body Parameters
keyword
required
string
关键字
Response
200: OK
{
"errcode": 0,
"timestamp": 1568282399,
"msg": [
{
"msgid": "406ef9e4d54311e986a2622793640ea0",
"text": "下面请欣赏复仇者联盟,有请郭德纲于谦test0072"
}
]
}
CURL
curl -X POST \
https://angelia.st.link/dosearch \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"keyword": "有请郭德纲于谦test007"
}'