ShyykoSerhiy / skyweb

Unofficial Skype API for nodejs via 'Skype (HTTP)' protocol.
MIT License
193 stars 44 forks source link

Updated readme.md #70

Closed Akshansh93 closed 6 years ago

Akshansh93 commented 6 years ago

Old Way of Initializing and login

Skyweb = require('skyweb');
var skyweb = new Skyweb();
skyweb.login(username, password).then(function (skypeAccount) {
    console.log('Skyweb is initialized now');
});

New way as shown in demo.js

Skyweb = require('skyweb');
var skyweb = new Skyweb.default();
skyweb.login(username, password).then(function (skypeAccount) {
    console.log('Skyweb is initialized now');
});
Akshansh93 commented 6 years ago

Check the latest commit "f10f772" from Akshansh93:patch-1 branch