aaron-api-client
TypeScript icon, indicating that this package has built-in type declarations

1.5.12 • Public • Published

Aaron API Client

License npm version

A client library for interacting with the Aaron API. This library provides utilities for working with the Aaron API, making HTTP requests, and handling data related to the API.

Installation

You can install the Aaron API client using npm:

npm install aaron-api-client

Usage

// Import the required modules
import { init, send } from 'aaron-api-client';

// Initialize the API client
init({ email: 'your-email@example.com', password: 'your-password' })
  .then(token => {
    // Use the API client functions here
    const data = send({
        method: "post",
        url: "/queryCountry",
        data: {
            query: {
                mmr: {$gt: 500}
            },
            limit: 10,
            populate: {path: "serverColor", select: "color"},
            select: "name serverColor mmr"
        }
    })
    console.log(data)
  })
  .catch(error => {
    console.error('Error initializing API client:', error);
  });

Documentation

For detailed usage and API documentation, please refer to the documentation.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the ISC License

Package Sidebar

Install

npm i aaron-api-client

Weekly Downloads

11

Version

1.5.12

License

ISC

Unpacked Size

17.2 kB

Total Files

6

Last publish

Collaborators

  • bigchef