0.0.3 • Published 4 years ago
@rambotrades/hexaone-client v0.0.3
HEXA.ONE API Client
About
A typesafe client to interact with the HEXA.ONE API endpoints.
Installation
$ npm i @rambotrades/hexaone-clientUsage
: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 Code | Message | Description |
|---|---|---|
| 200 | OK | The request was received successfully. |
| 401 | Unauthorized | Authorization failed. |
| 402 | Payment Required | Unsufficient balance. |
| 403 | Forbidden | Steam privacy settings forbid this action. |
| 404 | Not Found | The endpoint doesn't exist. |
| 500 | Internal Server Error | The service is having issues. |
More
For more information join their Discord