Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rocketleagueapi/tradebot-api-types

Typings for the Rocket League Tradebot API.
https://github.com/rocketleagueapi/tradebot-api-types

nodejs rocket-league rocket-league-bot socket-io trading trading-bot typescript typings

Last synced: 22 days ago
JSON representation

Typings for the Rocket League Tradebot API.

Awesome Lists containing this project

README

        

Rocket League Tradebot API Types




GitHub tag (latest by date)


License: LGPL--3.0--or--later


An up to date type library for the Tradebot API, to be used with Socket.IO.

### 🏠 [Homepage](https://github.com/rocketleagueapi/tradebot-api-types)

## Install

Install this package using your package manager of choice.
```sh
npm i @rocketleagueapi/tradebot-api-types
```
or
```sh
yarn add @rocketleagueapi/tradebot-api-types
```

## Example Usage
```ts
import { ListenEvents, EmitEvents } from '@rocketleagueapi/tradebot-api-types'
import io, { Socket } from 'socket.io-client';

const socket: Socket = io('https://tradebot.anga.blue', {
auth: {
key: process.env.TRADEBOT_API_KEY
}
});

socket.on('connect', () => {
console.log('Connected to Tradebot API');

socket.emit('getItems', console.log);
});
```

## 📝 License

Copyright © 2021 [Rocket League API](https://github.com/rocketleagueapi).

This project is [LGPL--3.0--or--later](https://github.com/rocketleagueapi/tradebot-api-types/blob/master/LICENSE) licensed.