TurtlePay® HTTPClient Helper Library
Master Build Status
Development Build Status
Overview
Provides an easy to use HTTP/s Client interface that is meant to be extended from
Prerequisites
- node >= 12
Documentation
Full library documentation is available at https://httpclient.turtlepay.dev
Install
Using Yarn
yarn add @turtlepay/httpclient
Using NPM
npm install @turtlepay/httpclient
Usage
import { HTTPClient } from '@turtlepay/httpclient';
class APIInterface extends HTTPClient {
public async info (): Promise<{major_version: number}> {
return this.get<{major_version: number}>('info');
}
}
(async() => {
const client = new APIInterface('blockapi.turtlepay.io', 443, true);
console.log(await client.info());
})
Run tests
yarn test
Author
- Twitter: @TurtlePay
- Github: @TurtlePay
🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Show your support
Give a
📝 License
Copyright © 2020 TurtlePay® Development Team.
This project is MIT licensed.