vine-coin-plus

Vine Coin API for Node.JS 🚀

Usage no npm install needed!

<script type="module">
  import vineCoinPlus from 'https://cdn.skypack.dev/vine-coin-plus';
</script>

README

vine-coin-plus

Vine Coin API for Node.JS 🚀

Examples

Installation

Node.js 12.0.0 or newer is required

Example

const { VineCoinAPI } = require('vine-coin-plus');

const vc = new VineCoinAPI({
    token: process.env.TOKEN
});

async function fetchPayments() {

    const result = await vc.api.call('getPayments', {});

    console.log(result);
    
}

fetchPayments();

VineCoinAPI Class

|Parameter|Type|Description| |-|-|-| |token|String|Vine Coin API token| |customApiServer|String|Vine Coin API custom server|

call(method, params)

|Parameter|Type|Description| |-|-|-| |method|String|Vine Coin API method| |params|Object|Vine Coin API method params|

onEvent(callback, route, port)

|Parameter|Type|Description| |-|-|-| |callback|Function|Callback| |route|String|Callback server route (Default: /callback)| |port|String|Callback server port (Default: 3300)|