1.3.1 • Published 10 months ago

@lejeunerenard/ballchasing-api v1.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

ballchasing.com API Client

A Typescript client library for querying ballchasing.com built using Effect.

Usage

import { getClient } from '@lejeunerenard/ballchasing-api/easy'

const client = await getClient('YOUR_AUTH_KEY')

// Single Group
const group = await client.groups.get('2v2-w-scott-2023-12-20-kunazcz10y')
console.log('Single group', group)

// Group List
const groups = await client.groups.list({
  creator: '76561197987055788' // SteamID
})
console.log('Groups', groups)

// Replay list
const meId = 'epic:9152ab3ef0bd44b59de47ca639ca7010'
const replays = await client.replays.list({
  uploader: 'me',
  'player-id': [meId]
})
console.log('Replays', replays)

// Single Replay
const replay = await client.replays.get('bdc27caf-fe82-4708-9f48-4f2561f93313')
console.log('Replay', replay)

TODO

  • Add automatic rate limiting based on Patreon tier
  • Add parallel request support

Endpoints

MethodURLDoc Link
GET/Ping
POST/v2/uploadUpload
XGET/replaysList/Filter replays
XGET/replays/${id}Get a specific replay
DELETE/replays/${id}Delete a replay
PATCH/replays/${id}Path a replay
GET/replays/${id}/fileDownload replay file
POST/groupsCreate a group
XGET/groupsList/Filter groups
XGET/groups/${id}Get a specific group
DELETE/groups/${id}Delete a group
PATCH/groups/${id}Patch a group
GET/mapsMaps
1.3.1

10 months ago

1.3.0

10 months ago

1.2.0

10 months ago

1.1.2

10 months ago

1.1.1

10 months ago

1.0.0

10 months ago

0.0.0

10 months ago