0.0.9 • Published 7 days ago

posthog-openapi-client v0.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
7 days ago

Posthog OpenApi clients

Global configuration

export POSTHOG_PERSONAL_API_KEY=YOUR_POSTHOG_API_KEY
export POSTHOG_BASE_URL="https://eu.posthog.com" or export POSTHOG_BASE_URL="https://app.posthog.com"

Typescript NPM

Install

npm i posthog-openapi-client
yarn add posthog-openapi-client
pnpm install posthog-openapi-client

Setup

pnpm install
pnpm build

Usage

pnpm start

Developers

Regenerate client

Download the schema with an authenticated request:

wget https://app.posthog.com/api/schema/ -O schema.yaml

OR

wget https://eu.posthog.com/api/schema/ -O schema.yaml

Typescript

pnpx openapi-typescript-codegen --input schema.yaml --output client/typescript --name PosthogAPIClient
0.0.9

7 days ago

0.0.8

1 month ago

0.0.7

1 month ago

0.0.6

2 months ago

0.0.5

2 months ago

0.0.4

3 months ago

0.0.3

6 months ago

0.0.2

6 months ago

0.0.1

6 months ago