Skip to content

Overwatch

Ben Weier edited this page Jun 6, 2023 · 1 revision

In addition to all parameters documented here, all API methods can accept key, secret, token, origin, locale, for cases where you need to use different values to the default instance.

All methods accept a second headers argument allowing an object of { [key: string]: string } to be added to the request headers. For example, some requests can potentially return large response bodies and you might want to avoid this if the resource has not been updated between the previously observed state with a If-Modified-Since header. If a method does not accept an argument, or it's first argument is optional, pass null | undefined followed by a headers object, e.g. token(null, { 'X-Header-Key': 'X-Header-Value' })

Method parameters are encoded with encodeURIComponent for URL safety.

Methods with optional parameters will fallback to API endpoints that best match the provided parameters.


summary

ow.summary()

players

ow.players({ id: number | string })

matches

ow.matches({ id: number | string })

segments

ow.segments({ id: number | string })

teams

ow.teams({ id: number | string })
Clone this wiki locally