1.0.18 • Published 5 months ago

ftwgl v1.0.18

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

FTWClient Library

Description

FTWClient is a JavaScript library designed for interacting with the FTW API. It simplifies the process of making API calls and handling responses, providing an easy-to-use interface for developers working with the FTW platform.

Features

  • Simplified API calls to the FTW platform.
  • Easy handling of responses.
  • Supports various FTW functionalities like creating cups, updating matches, and more.

Installation

Install FTWClient using npm:

npm install ftwclient

Or using yarn:

yarn add ftwclient

Usage

Here's a quick example to get you started:

const {FTWClient, UserTeamRole, GameType, MatchType} = require('ftwgl');

async function test() {
	let c = new FTWClient(
		"api-key-here",
		"https://dev.ftwgl.net",
		logging=true
	);

	console.log("CTF", GameType.capture_the_flag, UserTeamRole.leader, MatchType.group);

	await c.serverLocations()
}

test().then(() => console.log('Test completed')).catch(error => console.error('Error occurred', error));

Replace 'your_api_key' and 'your_api_host' with your actual FTW API key and host.

License

This project is licensed under the MIT License.

1.0.18

5 months ago

1.0.17

5 months ago

1.0.16

5 months ago

1.0.15

5 months ago

1.0.14

5 months ago

1.0.13

5 months ago

1.0.12

6 months ago

1.0.9

6 months ago

1.0.8

6 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.11

6 months ago

1.0.10

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago