Install
Setup your client
Create a new file that instantiates the client and exports it. We recommend putting this file atlib/whop-sdk.ts
.
This file reads your ENV keys, which can be found on your app developer page on the Whop dashboard.
Example usage
The rest of the examples in this section will use this client and import it fromlib/whop-sdk.ts
.
Here is an example