Skip to content
    sdks

    Install the SDK for your language.

    Choose a language to see its install command, a quick-start example, authentication setup, and links to the full package README.

    TypeScript

    @timelogic/direct-api

    Package version 1.0.1

    GitHub repository
    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-api
    Authentication
    createConfiguration({ apiKey: process.env.TIMELOGIC_API_KEY! })
    Package registry README on GitHub Base URL: https://api.timelogicapi.com
    The package README has the generated API method and model details. The API reference here explains the shared request and response contract.