simple-api-service
v1.1.0
Published
A simple HTTP API service for making requests with token authentication.
Downloads
187
Maintainers
Readme
ApiService
A simple HTTP API service for making requests with token authentication.
Installation
npm install api-service
Usage
import ApiService from 'api-service';
const apiService = new ApiService('your-token', 'https://api.example.com');
// Make a GET request
apiService
.get('/endpoint')
.then((response) => console.log(response))
.catch((error) => console.error(error));
Contributing
Please see the CONTRIBUTING file.
License MIT