rocket-amo-limiter
v0.1.1
Published
Queue service for requests in amoCRM
Downloads
17
Readme
Install
$ yarn add rocket-amo-limiter
How to use
Вы можете использовать его через API axios interceptor.
Limiter Request
import axios from 'axios';
import rocketAmoLimiter from 'rocket-amo-limiter';
const instance = axios.create();
const config = {
proxyUrl: 'http://localhost:3300/proxy/catch'
}
instance.interceptors.request.use(request => {
return rocketAmoLimiter(request, config)
})