UNPKG

chen-request

Version:

获取api接口的数据

28 lines (27 loc) 595 B
## 安装 ``` npm i chen-request -g ``` ## 使用 使用 `chen-request -h` 查看帮助手册 - -t 指定地址 - -n 指定请求类型 默认get ``` wangwei-get -t http://api.w0824.com/api/getlunbo { testUrl: 'http://api.w0824.com/api/getlunbo' } √ success { status: 0, message: [ { url: 'http://www.baidu.com', img: 'http://test.w0824.com/banner9.png' }, { url: 'http://jd.com', img: 'http://test.w0824.com/banner10.jpg' }, { url: 'https://www.tmall.com/', img: 'http://test.w0824.com/banner11.jpg' } ] } ```