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.

cart_add(discord_id: str, product_id: str)[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.

cart_list(discord_id: str) list[dict][source]#

Get a list with all the products of the cart.

Args:

discord_id (str): The discord ID of the cart’s account.

Returns:

list[dict]: A list of dictionaries repersenting the cart with the products in it.

cart_remove(discord_id: str, product_id: str)[source]#

Remove a product from the cart.

Args:

discord_id (str): The ID of the discord account. product_id (str): The ID of the product to remove.