1.0.0-alpha • Published 4 years ago

vine-coin-plus v1.0.0-alpha

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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

ParameterTypeDescription
tokenStringVine Coin API token
customApiServerStringVine Coin API custom server

call(method, params)

ParameterTypeDescription
methodStringVine Coin API method
paramsObjectVine Coin API method params

onEvent(callback, route, port)

ParameterTypeDescription
callbackFunctionCallback
routeStringCallback server route (Default: /callback)
portStringCallback server port (Default: 3300)