Xəbər göndərmə və NakBus donanması artıq tərəfdaş panelindədir
Developer hesabınızı eyni e-poçtla Nakordoni Partners hesabına qoşun və orada xəbərləri və avtobus donanmanızı (NakDriver / NakManager) komanda rolları ilə idarə edin. API açarlarınız, endpoint-lər və tətbiqlər dəyişməz qalır, buradakı səhifələr isə işləməkdə davam edir. Nakordoni Partners-i aç
Hesab istifadəsi API
Çağırdığınız açar üçün limitlərinizdən hazırda nə qaldığı: plan, saniyəlik limit və hər gündəlik kvota sinfi (cheap, heavy, route) üçün limit, istifadə olunan, qalan və sıfırlanma vaxtı (UTC gecə yarısı); həmçinin bu açarın gördüyü ölkələriniz və planı harada yüksəltmək olar. Sayılmır, açar başına dəqiqədə 30 çağırış.
GET https://nakordoni.eu/api/v2/account/usage
— sayılmır — kvotadan heç vaxt istifadə etmir
Cavab sahələri — cavab zərfindəki data obyektinin içində. [] siyahını bildirir, yəni data.items[].name hər elementin name sahəsidir. Dəyəri olmayan sahə null olur, ümumiyyətlə görünmür və ya boş siyahı qaytarır — heç vaxt doldurucu qoymuruq.
| Sahə | Təsvir |
|---|---|
data.plan | Your plan: slug and display name. |
data.qps | Per-second request cap that applies to this key now. |
data.quotas.cheap.limit | Daily allowance of the standard class; heavy and route have the same four fields. |
data.quotas.cheap.used | Units spent today with this key. |
data.quotas.cheap.remaining | Units left today — equals X-Devapi-Remaining. |
data.quotas.cheap.reset_at | When the counter resets, ISO-8601 UTC (midnight UTC). The X-Devapi-Reset header gives the same moment as a Unix timestamp. |
data.markets.approved | Countries this key may use. Countries switched on through an integration work only with that integration's key. |
data.markets.allowed | How many countries the plan allows; null = unlimited. |
data.markets.available | Integration keys only: the integration's countries you do not have yet (null for other keys). |
data.markets.key_bound | true when some approved countries belong to one key only, so another key can see a different list. |
data.upgrade_url | Billing page in your account language — upgrade the plan or add extra countries. |
data.pass | Integration keys only: Trip Pass state {active, expires_at, days_left}; null for other keys. |
data.pass_url | Integration keys only: link to the Trip Pass on the Billing page (account language); null for other keys. |
curl "https://nakordoni.eu/api/v2/account/usage" \ -H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX"
🔑 Bu son nöqtəni sınaq mühitində canlı yoxlamaq üçün developer kimi daxil olun — gündə 50 pulsuz test sorğusu. Giriş
Yeniləndi