@nft-portal/portal-ts
v1.0.14
Published
NodeJS client for @nft-portal/portal-ts
Readme
Portal TypeScript Client
This is a TypeScript client for the Convo AI API. It is generated using the OpenAPI generator.
Installation
npm install @nft-portal/portal-tsUsage
import { HealthApi, HealthApiApiKeys } from '@nft-portal/portal-ts';
// Instantiate the API
const api = new HealthApi();
// Set the API key. You can get your API key from the Portal settings page.
api.setApiKey(HealthApiApiKeys.apiKey, 'psk_6...ft1');
// Call the API
const res = await api.ping();
console.log(res.body);
// PingResponse { message: 'pong' }