1.0.5 • Published 4 years ago

batch-consuming v1.0.5

Weekly downloads
6
License
ISC
Repository
-
Last release
4 years ago

batch-consuming

batch-consuming allows you to do multiples request by batch to determined end points in three simple steps.

  1. Set an url and configure your headers

    const url = `your end point url`
    let headers = {
     Authorization: `${configuration.authType} ${configuration.token}`,
     ContentType: 'application/json'
    }
  2. Create a new instance of BatchConsuming

    const connect = new BatchConsuming(url, headers);
  3. Call the method executeAsync and pass both the batch size and the payload array

    const result = await connect.executeAsync(30, payload)

That's it!

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago