UNPKG

pvserverhelper

Version:

This is an npm module design to perform common uses with pVelocity's pvserver

25 lines (24 loc) 737 B
### ``login(jsapi, protocol, host, port, username, [password], [credKey], [sessionContext], [options])`` Calls the RPM API Login on ``protocol``://``host``:``port`` with ``username`` and ``password`` and ``credKey`` with ``sessionContext`` and ``options``. - `jsapi` `<Object>` - `protocol` `<String>` - `host` `<String>` - `port` `<Number>` - `username` `<String>` - `password` `<String>` - `credKey` `<String>` - `sessionContext` `<Object>` - `options` `<Object>` ```js pvh.login(jsapi, 'http', 'localhost', 80, 'username', 'password', 'credKey', { AppName: 'Hello World' }, { timeOut: 180 * 60 }).then(function(success) { if (success) { console.log('Success'); } else { console.log('Failure'); } }); ```