1.1.0 • Published 9 months ago

simple-api-service v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

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

1.1.0

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago