Quickstart2 - dysolix/hasagi-core GitHub Wiki

Installation

npm install @hasagi/core

Requests

import { HasagiClient } from "@hasagi/core";

const client = new HasagiClient();
await client.connect();

// Type of response is automatically set using the auto-generated types
const response = await client.request("get", "/lol-summoner/v1/current-summoner");