Նորությունների ուղարկումը և NakBus նավատորմը այժմ գործընկերոջ վահանակում են
Nakordoni Partners վահանակ մուտք գործելու համար օգտագործեք նույն մուտքանունը (էլ. փոստ և գաղտնաբառ), ինչ ձեր մշակողի հաշվի համար, և այնտեղ կառավարեք նորությունները և ձեր ավտոբուսային պարկը (NakDriver / NakManager)՝ թիմային դերերով։ Ձեր API բանալիները, վերջնակետերը և հավելվածները մնում են անփոփոխ, իսկ այստեղի էջերը շարունակում են աշխատել։ Բացել Nakordoni Partners-ը
Հաշվի օգտագործման API
Որքան է մնացել ձեր սահմանաչափերից հենց հիմա այն բանալու համար, որով կանչում եք՝ պլան, վայրկյանային սահմանաչափ և օրական քվոտայի յուրաքանչյուր դասի (cheap, heavy, route) համար սահմանաչափ, օգտագործված, մնացորդ և զրոյացման ժամ (կեսգիշեր UTC), ինչպես նաև ձեր երկրները այնպես, ինչպես տեսնում է այս բանալին, և որտեղ բարելավել պլանը։ Չի հաշվարկվում, 30 կանչ րոպեում՝ մեկ բանալու համար։
GET https://nakordoni.eu/api/v2/account/usage
— չի հաշվարկվում — երբեք չի ծախսում քվոտան
Պատասխանի դաշտերը — պատասխանի ծրարի data օբյեկտի ներսում։ []-ը ցույց է տալիս ցուցակ, ուստի data.items[].name-ը յուրաքանչյուր տարրի name դաշտն է։ Դաշտը լինում է null, բացակայում է կամ դատարկ ցուցակ է, երբ արժեք չունենք․ լցոնող արժեք երբեք չենք դնում։
| Դաշտ | Նկարագրություն |
|---|---|
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"
🔑 Մուտք գործեք որպես մշակող՝ այս endpoint-ը sandbox-ում կենդանի փորձելու համար. օրական 10 անվճար թեստային հարցում յուրաքանչյուր արտադրանքի համար։ Մուտք
Թարմացվել է