Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tailsjs/tankionline-api.js
Библиотека для использования API игры Танки Онлайн и 3DTank (китайской версии ТО).
https://github.com/tailsjs/tankionline-api.js
Last synced: 4 days ago
JSON representation
Библиотека для использования API игры Танки Онлайн и 3DTank (китайской версии ТО).
- Host: GitHub
- URL: https://github.com/tailsjs/tankionline-api.js
- Owner: tailsjs
- Created: 2021-12-26T19:31:10.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-19T19:26:59.000Z (about 3 years ago)
- Last Synced: 2024-10-30T08:19:07.095Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TankiOnline-API.js
* Библиотека для использования API игры Танки Онлайн и 3DTank (китайской версии ТО).## Пример
### Информация о пользователе
```js
const { Tanki } = require("tankionline-api.js");const user = new Tanki({
nick: "tailsjs",
language: "ru",
china: false
});console.log(await user.getFullUser()); // Full user info
console.log(await user.getCleanUser()); // User without objects
console.log(await user.getDronesInfo());
console.log(await user.getHullsInfo());
console.log(await user.getPaintsInfo());
console.log(await user.getSuppliesInfo());
console.log(await user.getTurretsInfo());
console.log(await user.getModulesInfo());
console.log(await user.getModesInfo())
```
### Информация о серверах игры
```js
const { Servers } = require("tankionline-api.js");const servers = await new Servers();
console.log(servers)
```
### Топы
```js
const { Top } = require("tankionline-api.js");const top = await new Top({
topType: "score",
china: false
})console.log(top)
```