fus-q-request
v2.0.4
Published
Http requester via axios for Fusions360
Downloads
8
Readme
Fusions360 request 模組
Http Requester Via Axios
Installing
Using npm:
$ npm install fus-q-request
Using yarn:
$ yarn add fus-q-request
Example
import q from 'fus-q-request'
q.init({
ls_token: 'ltc_token',
ls_user_id: 'ltc_user_id',
error401Path: location.origin + '/login'
})
// GET, POST, PUT, DELETE
let url = `....`
option.headers = {
// ....
}
return q('get', url, option)
return q('post', url, params, option)
return q('put', url, params, option)
return q('delete', url, option)