This project provides a Python API for interacting with Patreon. Below are instructions for setting up and running the API, as well as details on the available endpoints.
-
Clone the repository:
git clone https://github.com/exrod/patreon-payment-api.git cd patreon-payment-api
-
Create a virtual environment:
python3 -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On Unix or MacOS:
source venv/bin/activate
- On Windows:
-
Install the required dependencies:
pip install -r requirements.txt
- Obtain a Patreon API access token and set it as an environment variable:
OR
export ACCESS_TOKEN=your_access_token
- Update the
.env
file with your configurations.
-
Start the Flask server:
python main.py
-
The API will be accessible at
http://localhost:6969
.
- Endpoint:
/patreon/non_active
- Method:
GET
- Description: Retrieves detailed information about Non Paid Members.
- Example Request:
curl -X GET "http://localhost:6969/patreon/non_active"
- Endpoint:
/patreon/active
- Method:
GET
- Description: Retrieves detailed information about Non Paid Members.
- Example Request:
curl -X GET "http://localhost:6969/patreon/active"
- Endpoint:
/patreon
- Method:
GET
- Description: Retrieves detailed information about Members.
- Example Request:
curl -X GET "http://localhost:6969/patreon/active"
After starting the server, use the API endpoints to interact with the Patreon API. You can use tools like curl
or Postman to test the endpoints.
We welcome contributions! Please open an issue or submit a pull request.
This project is licensed under the MIT License.
For any inquiries, please contact the repository owner at exrod. Join our Discord https://brogot.space/