api-client-typescript/examples at main · gleanwork/api-client-typescript · GitHub
Skip to content

Latest commit

 

History

History

README.md

@gleanwork/api-client Examples

This directory contains example scripts demonstrating how to use the @gleanwork/api-client SDK.

Prerequisites

  • Node.js (v18 or higher)
  • npm

Setup

  1. Copy .env.template to .env:

    cp .env.template .env
  2. Edit .env and add your actual credentials (API keys, tokens, etc.)

Running the Examples

To run an example file from the examples directory:

npm run build && npx tsx example.ts

Creating new examples

Duplicate an existing example file, they won't be overwritten by the generation process.