Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 627 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 627 Bytes

VTTL-API

A javascript library to use the VTTL table tennis API in the browser

npm install vttl-api

Basic usage

import { provinces, getClubs } from 'vttl-api';

for (let province of provinces) {
	let clubs = await getClubs({ ClubCategory: province.id });
}

Exports

Objects:

  • provinces
  • categories

Functions:

  • getClubs
  • getTeams
  • getMembers
  • getRanking
  • getMatches
  • getSeasons
  • getDivisions
  • getTournaments

These functions are mapped to the official TabT API for which documentation can be found here