TypeScript
@timelogic/direct-api
Package version 1.0.1
How to use this SDK
Install it, configure your key, then make a request.
This example follows the package README and uses the direct API host. Keep your key in an environment variable or your platform secret store.
import { TimeApi, createConfiguration } from '@timelogic/direct-api';
const api = new TimeApi(createConfiguration({
apiKey: process.env.TIMELOGIC_API_KEY!,
}));
const currentTime = await api.getCurrentTime({ tz: 'America/New_York' });Install
npm install @timelogic/direct-apiAuthentication
createConfiguration({ apiKey: process.env.TIMELOGIC_API_KEY! })