API for businesses to integrate payments, ads, and language project promotion
https://nsyp.kanti.pro/enterprise_api.php
All API requests require the following headers:
X-API-Key: YOUR_API_KEY
X-API-Secret: YOUR_API_SECRET
Retrieve advertisement content for rotation
| Parameter | Type | Description |
|---|---|---|
| limit | int | Number of ads to return (default 5) |
| format | string | json or html (default json) |
{
"success": true,
"data": [
{
"id": 1,
"project_name": "Chumpling",
"project_url": "https://chumpling.kanti.pro",
"description": "...",
"button_text": "Start Contributing"
}
]
}
Track ad click (called when user clicks an ad)
{"success": true}
Process a payment to a contributor
{
"user_id": "username_or_email",
"amount": 12.50,
"type": "enterprise_payment"
}
Get advertising campaign statistics
{