Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/britzdylan/api-service
https://github.com/britzdylan/api-service
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/britzdylan/api-service
- Owner: britzdylan
- Created: 2024-10-23T18:09:47.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-10-23T18:42:54.000Z (4 months ago)
- Last Synced: 2025-01-24T07:04:25.394Z (13 days ago)
- Language: TypeScript
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# ApiService
A simple HTTP API service for making requests with token authentication.
## Installation
```bash
npm install api-service
```## Usage
```typescript
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