tanyangfeng-request

1.0.0 • Public • Published

安装

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'
  }
}

Package Sidebar

Install

npm i tanyangfeng-request

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

2.74 kB

Total Files

4

Last publish

Collaborators

  • tanyangfeng