aaron-api-client
v1.5.16
Published
http(s) client for aaron-api
Downloads
86
Maintainers
Readme
Aaron API Client
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: '[email protected]', 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