Ainox is a Russian payment system that provides subscription management and billing solutions. This script helps automate the retrieval and updating of subscriber data from Ainox into a Google Spreadsheet.
✅ Fetches subscriber data from Ainox API
✅ Updates Google Sheets automatically
✅ Stores credentials securely using environment variables
✅ Handles existing and new subscribers efficiently
Ensure you have the following installed:
- Python 3.x
pip
(Python package manager)
git clone https://github.com/your-username/ainox-subs-sync.git
cd ainox-subs-sync
pip install -r requirements.txt
Create a .env
file in the project directory and add the following:
GOOGLE_CREDENTIALS_JSON=path/to/your/credentials.json
SPREADSHEET_KEY=your_google_sheet_key
AINOX_API_LOGIN=your_api_login
AINOX_API_KEY=your_api_key
⚠ Never share or commit your .env
file to GitHub!
python script.py
This project is licensed under the MIT License. Feel free to use and modify it!
Pull requests are welcome! If you find any issues, feel free to open an issue.
For any inquiries, contact [roman.shushin@gmail.com].