tanyangfeng-request
v1.0.0
Published
获取api接口返回的数据
Downloads
3
Readme
安装
npm i tanyangfeng-request -g
使用
使用 tanyangfeng-request -h
查看帮助手册
- -t 指定地址
- -n 指定请求类型 默认get
tanyangfeng-request -t https://api.apiopen.top/getSingleJoke?sid=28654780
{ testUrl: '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'
}
}