jobcan-client

0.4.2 • Public • Published

node-jobcan-client

Node.js module of an unofficial client library for JobCan.

npm Build Status


Notice

  • This module is published under testing phase.
  • This is an unofficial library for convenience of users and managers.
  • We don't guarantee about this library.
  • We don't have relationship with the company of JobCan.

Get Started

You can install with using npm: $ npm install --save jobcan-client

The following is an example code.

var JobCan = require('jobcan-client');
var client = new JobCan();
 
// Execute authentication
client.auth(YOUR_COMPANY_ID, YOUR_GROUP_MANAGER_ID, YOUR_PASSWORD, function (error, session_id) {
 
    if (error) throw error;
 
    // Get a work summary of all employees in this month
    client.getWorkSummariesInThisMonth(function (error, employees) {
 
        if (error) throw error;
 
        employees.forEach(function (employee, index) {
            console.log(employee.name);
        });
 
    });
 
});

Methods

See documents: https://mugifly.github.io/node-jobcan-client/Client.html


License

The MIT License (MIT)
Copyright (c) 2016 Masanori Ohgita

Readme

Keywords

Package Sidebar

Install

npm i jobcan-client

Weekly Downloads

1

Version

0.4.2

License

MIT

Unpacked Size

15.2 kB

Total Files

5

Last publish

Collaborators

  • mugifly