18.2.1 • Published 1 day ago
@cumulus/lzards-api-client v18.2.1
@cumulus/lzards-api-client
A Node.js client to NASA's Level Zero and Repositories Data Store (LZARDS) API.
Usage
npm install @cumulus/api-client
Example
const { sendGetRequestToLzards } = require('@cumulus/lzards-api-client/lzards');
const now = new Date().getTime();
const thirtyMinutesAgo = now - (1000 * 60 * 30);
const twoMinutesAgo = now - (1000 * 60 * 2);
const searchParams = {
pageLimit: 25,
'metadata[provider]': provider,
'metadata[createdAt][gte]': thirtyMinutesAgo,
'metadata[createdAt][lte]': twoMinutesAgo,
}
const response = await sendGetRequestToLzards({ searchParams });
Required Environment Variables
Name | Example |
---|---|
lzards_api | https://api.launchpad.nasa.gov/icam/api/sm/v1 |
launchpad_api | https://lzards.sit.earthdata.nasa.gov/api/backups |
lzards_launchpad_passphrase_secret_name | abc-tf-lzards-api-client-test-launchpad-passphraseXXXXX lzards_launchpad_certificate launchpad.pfx |
stackName | abc-tf |
system_bucket | abc-tf-internal |
LZARDS API Docs
LZARDS API documentation is here:
- https://wiki.earthdata.nasa.gov/display/LZARDS/LZARDS+User+Guide
- https://wiki.earthdata.nasa.gov/display/LZARDS/Advanced+Query+Functionality
Test
Test with npm run test
.
About Cumulus
Cumulus is a cloud-based data ingest, archive, distribution and management prototype for NASA's future Earth science data streams.
Contributing
To make a contribution, please see our contributing guidelines.
16.1.5
1 day ago
18.2.1
3 days ago
16.1.4
12 days ago
18.2.0
3 months ago
16.1.3
4 months ago
18.2.0-alpha.0
5 months ago
18.1.0
7 months ago
18.0.0
9 months ago
17.0.0
9 months ago
16.0.3-alpha.0
10 months ago
16.1.1
9 months ago
16.1.0
9 months ago
16.0.0
10 months ago
16.1.2
6 months ago
15.0.4
11 months ago
16.0.1-alpha.0
11 months ago
16.0.2-alpha.0
11 months ago
15.0.2
1 year ago
15.0.3
1 year ago
15.0.1
1 year ago
15.0.0
1 year ago
14.1.0
1 year ago
13.4.0
2 years ago
14.0.0
1 year ago
13.3.2-alpha.0
2 years ago
13.2.2-alpha.2
2 years ago
13.2.2-alpha.1
2 years ago
13.2.2-alpha.0
2 years ago
13.2.1-alpha.0
2 years ago
13.2.1-alpha.1
2 years ago
11.0.1-alpha.0
2 years ago
10.1.2-alpha.0
2 years ago