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.
You can install the Aaron API client using npm:
npm install aaron-api-client
// 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);
});
For detailed usage and API documentation, please refer to the documentation.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the ISC License