Python
Use our python package to simplify the integration
Installation
To get started with Refir, you can install it using pip:
Configuration
Before using Refir, you need to configure it with your API key. You can do this as follows:
Usage
Adding a User
You can use Refir to add a user to your referral program. The following example demonstrates how to do this:
Getting a User by ID
You can retrieve a user's referral code by their unique ID using Refir. Here's an example of how to do it:
Error handling
Refir provides basic error handling for API requests. If an error occurs during an API request, an error message will be logged to the console, and the function will return false
. You can customize error handling to suit your application's needs.
Last updated