Skip to main content

A package for to control Whop API for humans

Project description

Whop SDK for Python

A Python SDK for interacting with the Whop API. This SDK simplifies the process of using Whop's API for tasks like license validation, membership retrieval, the rest of the api usage will be added asap.

Installation

Install the package using pip:

pip install whop-sdk-py

Getting Started

To use the Whop SDK, you'll first need to obtain an API key. Follow the steps below:

  1. Go to Whop Developer Settings.
  2. Create a new API Key.

Once you have the API Key, you can initialize the Whop class:

from whop import Whop

whop = Whop("your_api_key_here")

Usage

Validate a License

To validate a license, first retrieve the member ID using a license string, and then validate it:

from whop import Whop

whop = Whop("d7sk-uZpNVFdvWHVedhsadyisagdho3yeoiuahsdo7g")  # Replace with your actual API key
memberID = whop.getMemberID("LIQUID-8BA11B-7831C9FD-ABCDEFG")  # Replace with the actual license
isUser, userData = whop.validateLicense(memberID)

print(isUser)
print(userData)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

whop-sdk-py-0.0.0.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file whop-sdk-py-0.0.0.tar.gz.

File metadata

  • Download URL: whop-sdk-py-0.0.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.8

File hashes

Hashes for whop-sdk-py-0.0.0.tar.gz
Algorithm Hash digest
SHA256 f38574c04958617edb473f6a9c13dad0d2e2c14b64b5ee1e33b5411f68310b96
MD5 afe16d764c8f81fcdd37115ecd82efda
BLAKE2b-256 78905f7fbf080dba46f2f051a9c894cdf0edc5a6552683d8fed1e1b87512316a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page