Skip to content

aidant/infra-sight

Repository files navigation

Infra Sight

Infra-Sight is an elegant UX focused API for Overwatch.


Table of Contents


Quick Start

npm install @infra-sight/sdk
import*asInfraSightfrom'@infra-sight/sdk'constprofile=awaitInfraSight.getOverwatchProfile('Tracer#3939')console.log(profile)

SDK

getOverwatchAccount

Example

import*asInfraSightfrom'@infra-sight/sdk'constaccount=awaitInfraSight.getOverwatchAccount()console.log(account)

Returns Promise<InfraSightAccount>

getOverwatchHeroes

Example

import*asInfraSightfrom'@infra-sight/sdk'constheroes=awaitInfraSight.getOverwatchHeroes()console.log(heroes)

Returns Promise<OverwatchHeroList>

getOverwatchPlayerIcons

Example

import*asInfraSightfrom'@infra-sight/sdk'consticons=awaitInfraSight.getOverwatchPlayerIcons()console.log(icons)

Returns Promise<InfraSightPlayerIconRecord>

getOverwatchProfile

Example

import*asInfraSightfrom'@infra-sight/sdk'constprofile=awaitInfraSight.getOverwatchProfile()console.log(profile)

Returns Promise<InfraSightProfile>

searchOverwatchAccounts

Example

import*asInfraSightfrom'@infra-sight/sdk'constaccounts=awaitInfraSight.searchOverwatchAccounts()console.log(accounts)

Returns Promise<InfraSightAccountList>

listOverwatchAccountHistory

Example

import*asInfraSightfrom'@infra-sight/sdk'forawait(constitemofInfraSight.listOverwatchAccountHistory()){console.log(item)}

Returns AsyncGenerator<string, void, never>

listOverwatchHeroesHistory

Example

import*asInfraSightfrom'@infra-sight/sdk'forawait(constitemofInfraSight.listOverwatchHeroesHistory()){console.log(item)}

Returns AsyncGenerator<string, void, never>

listOverwatchPlayerIconsHistory

Example

import*asInfraSightfrom'@infra-sight/sdk'forawait(constitemofInfraSight.listOverwatchPlayerIconsHistory()){console.log(item)}

Returns AsyncGenerator<string, void, never>

listOverwatchProfileHistory

Example

import*asInfraSightfrom'@infra-sight/sdk'forawait(constitemofInfraSight.listOverwatchProfileHistory()){console.log(item)}

Returns AsyncGenerator<string, void, never>


API

GET /v2/api/overwatch/accounts/{username}/history

Parameters

  • page_token

GET /v2/api/overwatch/accounts/{username}/latest

Parameters

  • platform
  • resolution_strategy

GET /v2/api/overwatch/accounts/{username}/search

GET /v2/api/overwatch/heroes/history

Parameters

  • page_token

GET /v2/api/overwatch/heroes/latest

GET /v2/api/overwatch/player-icons/history

Parameters

  • page_token

GET /v2/api/overwatch/player-icons/latest

GET /v2/api/overwatch/profiles/{username}/history

Parameters

  • page_token

GET /v2/api/overwatch/profiles/{username}/latest

Parameters

  • platform
  • resolution_strategy

About

Infra-Sight is an elegant UX focused API for Overwatch.

Topics

Resources

Stars

Watchers

Forks