Package Exports
- aaron-api-client
- aaron-api-client/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (aaron-api-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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: '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