Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

TypeScript SDK examples

  1. Install the SDK: npm i @flexprice/sdk.
  2. Copy .env.sample to .env and set FLEXPRICE_API_KEY. Optionally set FLEXPRICE_API_HOST to a full URL (default: https://us.api.flexprice.io/v1).
  3. Run: from the package root, npx tsx examples/quick-start.ts; or from examples/, npx tsx quick-start.ts.

Integration tests: Full API flows are in api/tests/ts/test_sdk.ts. Run npm test from api/tests/ts; see api/tests/README.md.