zyl-request
v1.0.1
Published
测试接口
Downloads
2
Readme
安装
npm i zyl-request
使用
request -h
查看帮助手册
-t
请求地址-r
请求方法 默认“get”
request -t https://api.apiopen.top/getSingleJoke?sid=28654780
{ test: 'https://api.apiopen.top/getSingleJoke?sid=28654780' }
√ success
{
code: 200,
message: '成功!',
result: {
sid: '28654780',
text: '这难道是传说中的脸刹?',
type: 'video',
thumbnail: 'http://wimg.spriteapp.cn/picture/2018/0927/5bacc729ae94b__b.jpg',
video: 'http://wvideo.spriteapp.cn/video/2018/0927/5bacc729be874_wpd.mp4',
images: null,
up: '99',
down: '7',
forward: '3',
comment: '9',
uid: '12745266',
name: '赵菓菓',
header: 'http://wimg.spriteapp.cn/profile/large/2018/08/14/5b721ea4242da_mini.jpg',
top_comments_content: null,
top_comments_voiceuri: null,
top_comments_uid: null,
top_comments_name: null,
top_comments_header: null,
passtime: '2018-09-30 02:55:02'
}
}