Whop Business API
Search…
Python SDK
This page features the server-side features for Whop
Whop has a Python SDK that will allow you to hit Whop's endpoints through a Python library. You can find the library hosted here: https://github.com/whopio/whop-python-sdk.

Installation

You can install the Whop Python SDK using Python's package manager pip.
pip install whop

Usage

import whop
​
bearer = "<Bearer Token>"
client = whop.Whop(bearer=bearer)
​
# Create a password protected link for your product.
client.create_link(
product_id=123,
password="secretpassword"
stock=10
)
​
# Retrieve all links.
resp = client.get_links()
print(resp)
Copy link
On this page
Installation
Usage