whop-api-wrapper


Namewhop-api-wrapper JSON
Version 1.1.7 PyPI version JSON
download
home_pagehttps://github.com/TheSweeet/Whop-API-Wrapper
SummarySimple Python Whop API Wrapper
upload_time2023-07-17 21:17:12
maintainer
docs_urlNone
authorJacobfinn123
requires_python
license
keywords whop api wrapper
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Whop-API-Wrapper

A simple python API wrapper of Whop's API, documentation can be found at: https://dev.whop.com/reference/home

## Installation

To install the package, use the following command:

```shell
pip install whop-api-wrapper
```

## Usage
Initialize the Client class with your token, use any api call as a method of the client.

```py
from whop_api_wrapper import Client

client = Client("input_token_here")

products = client.list_all_products()
for product in products:
    print(product)  # Product(id=product_id, name=product_name, visibility=visible, created_at=123, experiences=[], plans=[])

customer = client.retrieve_customer("customer_id_here")
print(customer)  # Customer(id=user_id, username=whop_username, email=email, profile_pic_url=url, social_accounts=[{'service': 'discord', 'username': 'discord_name#1234', 'id': '123'}], roles=None),

promo_code = client.create_promo_code(amount_off=25, base_currency="usd", code="25off", promo_type="flat_amount")
print(promo_code)  # PromoCode(id=promo_id, created_at=123, amount_off=100.0, base_currency=usd, code=100off, expiration_datetime=None, new_users_only=True, number_of_intervals=1, plan_ids=[], promo_type=percentage, status=active, stock=6, uses=2)
```

Feel free open any issues or report them to me on discord, `jacobfinn`.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/TheSweeet/Whop-API-Wrapper",
    "name": "whop-api-wrapper",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "WHOP,API,WRAPPER",
    "author": "Jacobfinn123",
    "author_email": "jacobfinn@bezosproxy.com",
    "download_url": "https://files.pythonhosted.org/packages/ae/7b/d67d123a70a0c1fdcf0b89e05ba2e1cb0700beec2116125a882ae0ab657d/whop-api-wrapper-1.1.7.tar.gz",
    "platform": null,
    "description": "# Whop-API-Wrapper\r\n\r\nA simple python API wrapper of Whop's API, documentation can be found at: https://dev.whop.com/reference/home\r\n\r\n## Installation\r\n\r\nTo install the package, use the following command:\r\n\r\n```shell\r\npip install whop-api-wrapper\r\n```\r\n\r\n## Usage\r\nInitialize the Client class with your token, use any api call as a method of the client.\r\n\r\n```py\r\nfrom whop_api_wrapper import Client\r\n\r\nclient = Client(\"input_token_here\")\r\n\r\nproducts = client.list_all_products()\r\nfor product in products:\r\n    print(product)  # Product(id=product_id, name=product_name, visibility=visible, created_at=123, experiences=[], plans=[])\r\n\r\ncustomer = client.retrieve_customer(\"customer_id_here\")\r\nprint(customer)  # Customer(id=user_id, username=whop_username, email=email, profile_pic_url=url, social_accounts=[{'service': 'discord', 'username': 'discord_name#1234', 'id': '123'}], roles=None),\r\n\r\npromo_code = client.create_promo_code(amount_off=25, base_currency=\"usd\", code=\"25off\", promo_type=\"flat_amount\")\r\nprint(promo_code)  # PromoCode(id=promo_id, created_at=123, amount_off=100.0, base_currency=usd, code=100off, expiration_datetime=None, new_users_only=True, number_of_intervals=1, plan_ids=[], promo_type=percentage, status=active, stock=6, uses=2)\r\n```\r\n\r\nFeel free open any issues or report them to me on discord, `jacobfinn`.\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Simple Python Whop API Wrapper",
    "version": "1.1.7",
    "project_urls": {
        "Homepage": "https://github.com/TheSweeet/Whop-API-Wrapper"
    },
    "split_keywords": [
        "whop",
        "api",
        "wrapper"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ae7bd67d123a70a0c1fdcf0b89e05ba2e1cb0700beec2116125a882ae0ab657d",
                "md5": "949a2b78877aa87790d4cd4757e54df1",
                "sha256": "9942f2f032c23d79ad3d04258dd63039ca30812ae7bb849fb6a0e35b88a000bd"
            },
            "downloads": -1,
            "filename": "whop-api-wrapper-1.1.7.tar.gz",
            "has_sig": false,
            "md5_digest": "949a2b78877aa87790d4cd4757e54df1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 7548,
            "upload_time": "2023-07-17T21:17:12",
            "upload_time_iso_8601": "2023-07-17T21:17:12.614200Z",
            "url": "https://files.pythonhosted.org/packages/ae/7b/d67d123a70a0c1fdcf0b89e05ba2e1cb0700beec2116125a882ae0ab657d/whop-api-wrapper-1.1.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-17 21:17:12",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "TheSweeet",
    "github_project": "Whop-API-Wrapper",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "whop-api-wrapper"
}
        
Elapsed time: 0.12108s