var Ceic = require('ceic_api');
,var accessToken = "ENTER YOUR API KEY HERE";
var apiClient = new Ceic.ApiClient();
var seriesApi = new Ceic.SeriesApi(apiClient);
const seriesIds = ["EXAMPLE SERIES ID"];
// Get series from a list of series one by one
async function getSeriesFromAListOneAtATime(seriesIds) {
for (i in seriesIds) {
let result = await seriesApi.getSeries(seriesIds[i], {"token": accessToken});
console.log(JSON.stringify(result));
}
}
(async() => {
try {
await getSeriesFromAListOneAtATime(seriesIds);
} catch (err) {
console.log(JSON.stringify(err));
}
})();