Javascript to create a new bulk job using Cloud Elements Bulk V3 (Hulk), monitor its progress by pinging the status resource every 3 seconds, and upon completion report the total time from start to finish in seconds.
npm install
- E.g. ~/.bash_profile
export BASE_URL='https://api.cloud-elements.com'
export USER_SECRET='asdfghjklasdfghV7ITgw5h3ZbcuxC5HNDD5pXqPqSU='
export ORG_SECRET='asdfghjklasdfghMnmVYOkkCOXkMZZk5yMgw0raZk/4='
- E.g. ./index.js
const ELEMENT_KEY = "sadfdsfsfhasldjfhInN0sDLiBBI=";
const q = "SELECT * from defects WHERE LastUpdateDate>'2020-02-22T06:00:00'";
const pageSize = 200;
npm start