0.0.3 • Published 4 years ago

@rambotrades/hexaone-client v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

HEXA.ONE API Client

code style: prettier

About

A typesafe client to interact with the HEXA.ONE API endpoints.

Installation

$ npm i @rambotrades/hexaone-client

Usage

Run in Postman

:warning: Disclaimer: In order to use any available endpoint by HEXA.ONE you will need a personal {API_KEY}

import { HexaoneClient } from '@rambotrades/hexaone-client';
const client = new HexaoneClient('API_KEY'); // <- Put your API_KEY here.
async function main() {
  const {
    status,
    data: { prices },
  } = await client.getPrices(578080);

  const count = Object.keys(prices).length;

  console.log(`${status} - ${count} item prices`);
}

Error Codes

Status CodeMessageDescription
200OKThe request was received successfully.
401UnauthorizedAuthorization failed.
402Payment RequiredUnsufficient balance.
403ForbiddenSteam privacy settings forbid this action.
404Not FoundThe endpoint doesn't exist.
500Internal Server ErrorThe service is having issues.

More

For more information join their Discord

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago