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ç

← Bütün son nöqtələr

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.planYour plan: slug and display name.
data.qpsPer-second request cap that applies to this key now.
data.quotas.cheap.limitDaily allowance of the standard class; heavy and route have the same four fields.
data.quotas.cheap.usedUnits spent today with this key.
data.quotas.cheap.remainingUnits left today — equals X-Devapi-Remaining.
data.quotas.cheap.reset_atWhen the counter resets, ISO-8601 UTC (midnight UTC). The X-Devapi-Reset header gives the same moment as a Unix timestamp.
data.markets.approvedCountries this key may use. Countries switched on through an integration work only with that integration's key.
data.markets.allowedHow many countries the plan allows; null = unlimited.
data.markets.availableIntegration keys only: the integration's countries you do not have yet (null for other keys).
data.markets.key_boundtrue when some approved countries belong to one key only, so another key can see a different list.
data.upgrade_urlBilling page in your account language — upgrade the plan or add extra countries.
data.passIntegration keys only: Trip Pass state {active, expires_at, days_left}; null for other keys.
data.pass_urlIntegration 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