wheniwork-unofficial
v0.2.7
Published
Wrapper around WhenIWork API. Refer to http://dev.wheniwork.com/ for access methods.
Downloads
7
Readme
#nodejs wrapper around the WhenIWork API.
The structure of this code comes from WhenIWork PHP API.
var WhenIWork = require('wheniwork-unofficial');
var api = new WhenIWork('api_key', 'email', 'password');
api.get('users', function (users) {
console.log(users.users);
});
Methods provided:
- get
- post
- create
- update
- delete
Function signature for the methods:
.method(api_route, request_body, additional_headers, callback)
However, request_body and additional_headers are optional.