pvserverhelper
Version:
This is an npm module design to perform common uses with pVelocity's pvserver
23 lines (22 loc) • 657 B
Markdown
### ``loginWithUrl(jsapi, url, username, [password], [credKey], [sessionContext], [options])``
Calls the RPM API Login on ``url`` with ``username`` and ``password`` and ``credKey`` with ``sessionContext`` and ``options``.
- `jsapi` `<Object>`
- `url` `<String>`
- `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');
}
});
```