@mattplays/bloonstd6-api

This package is a wrapper for the unofficial Bloons TD 6 API

Usage no npm install needed!

<script type="module">
  import mattplaysBloonstd6Api from 'https://cdn.skypack.dev/@mattplays/bloonstd6-api';
</script>

README

BloonsTD6-API

This package is a wrapper for the unofficial Bloons TD 6 API

  1. Bloons TD 6
    1. Usage
    2. Functions
      1. GetAllTowers
        1. Output
        2. Usage
      2. GetTowerByID
        1. Input
        2. Output
        3. Usage
      3. GetAllHeros
        1. Output
        2. Usage
      4. GetHeroByID
        1. Input
        2. Output
        3. Usage
      5. GetAllBloons
        1. Output
        2. Usage
      6. GetBloonByID
        1. Input
        2. Output
        3. Usage

Bloons TD 6

This is an Unoffical API Unoffical API Docs

Usage

const {BloonsTD6API} = require("@mattplays/bloonstd6-api");
const BloonsTD6API = new BloonsTD6API(); //No API Key Required

Functions

GetAllTowers

List all towers in BTD6

Output

The GetAllTowers function returns a Promise<Tower[]> type

Usage
const BloonsTD6API = new BloonsTD6API();
BloonsTD6API.GetAllTowers().then((data) => {
// Your Code Here :D
});

GetTowerByID

Get a specific tower in BTD6.

Input
export type TowerID = "dart-monkey" | "boomerang-monkey" | "bomb-shooter" | "tack-shooter" | "ice-monkey" | "glue-gunner" | "sniper-monkey" | "monkey-sub" | "monkey-buccaneer" | "monkey-ace" | "heli-pilot" | "mortar-monkey" | "dartling-gunner" | "wizard-monkey" | "super-monkey" | "ninja-monkey" | "alchemist" | "druid" | "banana-farm" | "spike-factory" | "monkey-village" | "engineer-monkey";
Input Type Required Description
towerID TowerID Yes a Tower ID ie. 'dart-monkey', 'super-monkey'
##### Output
The GetTowerByID function returns a Promise<Tower> type
##### Usage
```javascript
const BloonsTD6API = new BloonsTD6API();
BloonsTD6API.GetTowerByID("dart-monkey").then((data) => {
// Your Code Here :D
});
```
#### GetAllHeros
List all Heros in BTD6.
##### Output
The GetAllHeros function returns a Promise<Hero[]> type
##### Usage
```javascript
const BloonsTD6API = new BloonsTD6API();
BloonsTD6API.GetAllHeros().then((data) => {
// Your Code Here :D
});
```
#### GetHeroByID
Get a specific Hero in BTD6.
##### Input
```typescript
export type HeroID = "quincy" "gwendolin" "striker-jones" "captain-churchill"
```
Input Type Required Description
------------- ------------- ------------- -------------
heroID HeroID Yes a Hero ID ie. 'quincy'
##### Output
The GetHeroByID function returns a Promise<Hero> type
##### Usage
```javascript
const BloonsTD6API = new BloonsTD6API();
BloonsTD6API.GetHeroByID("quincy").then((data) => {
// Your Code Here :D
});
```
#### GetAllBloons
List all bloons in BTD6
##### Output
The GetAllBloons function returns a Promise<Bloon[]> type
##### Usage
```javascript
const BloonsTD6API = new BloonsTD6API();
BloonsTD6API.GetAllBloons().then((data) => {
// Your Code Here :D
});
```
#### GetBloonByID
Get a specific Bloon in BTD6.
##### Input
```typescript
export type BloonID = "red" "blue" "green" "pink"
```
Input Type Required Description
------------- ------------- ------------- -------------
bloonID BloonID Yes a Bloon ID ie. 'red', 'blue'
##### Output
The GetBloonByID function returns a Promise<Bloon> type
##### Usage
```javascript
const BloonsTD6API = new BloonsTD6API();
BloonsTD6API.GetBloonByID("red").then((data) => {
// Your Code Here :D
});
```