@cumulus/lzards-api-client
TypeScript icon, indicating that this package has built-in type declarations

18.2.0 • Public • Published

@cumulus/lzards-api-client

A Node.js client to NASA's Level Zero and Repositories Data Store (LZARDS) API.

Usage

npm install @cumulus/lzards-api-client

Example

const { submitQueryToLzards } = 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 submitQueryToLzards({ searchParams });

Required Environment Variables

Name Example
launchpad_api https://api.launchpad.nasa.gov/icam/api/sm/v1
lzards_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:

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.

Cumulus Documentation

Contributing

To make a contribution, please see our contributing guidelines.

Readme

Keywords

Package Sidebar

Install

npm i @cumulus/lzards-api-client

Weekly Downloads

2

Version

18.2.0

License

Apache-2.0

Unpacked Size

72.1 kB

Total Files

26

Last publish

Collaborators

  • cumuluspublisher
  • nsidc_kovarik
  • jennyhliu
  • npauzenga