vpncash-api-node
Version:
VPNCash Node API Client
46 lines (31 loc) • 1.96 kB
Markdown
# VPNCash NODE API Client
[](https://www.npmjs.com/package/vpncash-api-node)
[](https://www.npmjs.com/package/vpncash-api-node)
[](https://travis-ci.org/FabriceDelahaij/vpncash-api-node)
[](https://greenkeeper.io/)
[](https://github.com/FabriceDelahaij/vpncash-api-node/issues)
[](https://github.com/FabriceDelahaij/vpncash-api-node/blob/master/LICENSE)
[](https://snyk.io/test/github/fabricedelahaij/vpncash-api-node?targetFile=package.json)
## Install
By far the easiest way to install the VPNCash API client is to install it with [npm](https://npmjs.org/).
$ npm install vpncash-api-node --save
{
"dependencies": {
"vpncash-api-node": "^1.0.0"
}
}
## Requirements ##
To use the VPNCash API client, the following things are required:
+ Visit website for [VPNCash account](https://vpncash.com)
+ Create a new [profile](http://www.vpncash.com/api-access) to generate API keys
```javascript
'use strict';
const VPNCash = require('vpncash-api-node');
const API = new VPNCash['Client']();
API['setApiKey']('test_');
API['client']('POST', 'radius/check-username', {
'vpn_username': 'test123'
});
```
## License
[BSD (Berkeley Software Distribution) License](https://opensource.org/licenses/bsd-license.php). Copyright (c) 2017, Extreemhost.