gerencianet/gn-api-sdk-node

View on GitHub
examples/default/subscription/cancelSubscription.js

Summary

Maintainability
A
1 hr
Test Coverage
'use strict';

var Gerencianet = require('gn-api-sdk-node');
var options = require('../../credentials');


var params = {
    id: 0
}

var gerencianet = new Gerencianet(options);

gerencianet
    .cancelSubscription(params)
    .then((resposta) => {
        console.log(resposta)
    })
    .catch((error) => {
        console.log(error);
    })
    .done();