dlxedd_client module#
- class dlxedd_client.DLXEDD_Client(url: str, user: str, password: str)[source]#
Bases:
WP_Client
This class extends WP_Client and provides methods to use the dlxedd(discord-linker x easy-digital-downloads) api.
This class provides access to more endpoints. Extra Endpoints: [“DLXEDD_CART”]
- Args:
url (str): The URL of the website. user (str): The user we will use to connect. password (str): The application specific password.
- cart_add(discord_id: str, product_id: str) dict [source]#
Add a product to the cart.
- Args:
discord_id (str): The ID of the discord account. product_id (str): The ID of the product to add.
- Returns:
dict: A dictionary representing the product that was added.