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.
You can install the Whop Python SDK using Python's package manager
pip install whop
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)