node-teamseer-client
A simple Node client for the teamseer.com SOAP API.
Installation
npm install teamseer-client
Api coverage
Only getActiveUsers
and getRecordsByUser
are implemented at the moment.
Documentation
Creating a client
var teamseer = ; var client = companyId: '12345' companyKey: 'abc123fghi456' apiVersion: '1_0_1';
getRecordsByUser
Get records as array for one person
/** * Return all recorded days for a user within a given range * @param * @param * @param * @returns */client; // Example output://[// {// date: '2015-12-21',// hasNotes: true,// needsApproval: true,// status: '22',// type: '00',// userIdentifier: 'anna.miller@example.com'// },// {// date: '2015-12-22',// hasNotes: false,// needsApproval: true,// status: '22',// type: '00',// userIdentifier: 'anna.miller@example.com'// }//]
getActiveUsers
Get a list of all active users
/** * Returns active users as an array * @returns */client; // Example output://// [ 'anna.miller@example.com',// 'clemens.doe@example.com',// 'tanja.jackson@example.com',// 'timo.foo@example.com',// 'anne.bar@example.com',// 'linda.baz@example.com' ]
Full Example
var teamseer = ; var client = companyId: '12345' companyKey: 'abc123fghi456' apiVersion: '1_0_1'; client;
Changelog
1.0.0
Initial release1.0.1
Using RxJs 5 beta1.0.2
Bugfix for result lists with only one item
License: ISC
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.