@metapair-pipeline/lib_client
v2.5.0
Published
## Description
Downloads
6
Readme
Metapair Pipeline Lib Client
Description
This library is being used to access Metapair API client. This library should be safe to be used by public.
Requirement
- fetch (for use in node, use polyfill)
Instruction
- Import library and initialize it.
import { init, Brands } from '@metapair-pipeline/lib_client';
import * as process from 'process';
const { PROJECT_ID } = process.env;
init(PROJECT_ID);
async function main() {
try {
const response = await Brands.searchBrandByName('some name');
console.log(response);
} finally {
process.exit(0);
}
}
main();