Zgłaszanie newsów i flota NakBus są teraz w panelu partnera
Połącz swoje konto dewelopera z kontem Nakordoni Partners przy użyciu tego samego adresu e-mail i zarządzaj tam newsami oraz swoją flotą autobusów (NakDriver / NakManager), z rolami zespołu. Twoje klucze API, endpointy i aplikacje pozostają bez zmian, a strony tutaj nadal działają. Otwórz Nakordoni Partners
API wykorzystania konta
Ile zostało z Twoich limitów w tej chwili dla klucza, którym wywołujesz: plan, limit na sekundę oraz dla każdej klasy dziennego limitu (cheap, heavy, route) limit, zużycie, pozostało i czas resetu (północ UTC); także Twoje kraje widziane przez ten klucz i gdzie zmienić plan. Nie jest liczone, 30 wywołań na minutę na klucz.
GET https://nakordoni.eu/api/v2/account/usage
— nie jest liczone — nigdy nie zużywa limitu
Pola odpowiedzi — wewnątrz obiektu data w kopercie odpowiedzi. [] oznacza listę, więc data.items[].name to pole name każdego elementu. Pole bywa null, nieobecne lub jest pustą listą, gdy nie mamy wartości — nigdy nie wstawiamy atrapy.
| Pole | Opis |
|---|---|
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"
🔑 Zaloguj się jako deweloper, aby wypróbować ten endpoint na żywo w piaskownicy — 50 darmowych wywołań testowych dziennie. Zaloguj się
Zaktualizowano