hubot-bamboohr
Access information from BambooHR like employee details and whos on leave
Last updated 3 years ago by jordanwalsh23 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hubot-bamboohr 
SYNC missed versions from official npm registry.

hubot-bamboohr

Access information from BambooHR like employee details and whos on leave

See src/bamboohr.coffee for full documentation.

Installation

In hubot project repo, run:

npm install hubot-bamboohr --save

Then add hubot-bamboohr to your external-scripts.json:

["hubot-bamboohr"]

Two environment variables are required:

  • HUBOT_BAMBOOHR_APIKEY - Your BambooHR API key (see your BambooHR admin)
  • HUBOT_BAMBOOHR_DOMAIN - Your BambooHR subdomain
  • HUBOT_BAMBOOHR_DATEFORMAT - Either us or uk date format (default: uk)

Once your environment variables are set, the following commands are available:

Get Employee Data

user1>> hubot bamboo John Smith
hubot>> Found *John Smith*
hubot>> https://<domain>.bamboohr.com/images/photo_placeholder.gif (1KB)
hubot>> *Job Title:* Consultant
*Mobile Phone:* 61400000000
*Email Address:* jsmith@example.com

Get Who's on leave

user1>> hubot whosoff
hubot>> People currently on leave (07/08/2015):*

*John Smith*
05/08/2015 - 07/08/2015

*Jane Smith*
07/08/2015 - 07/08/2015

*Sally Stevens*
07/08/2015 - 07/08/2015

The whosoff function also takes an optional time period:

  • today
  • tomorrow
  • this week
  • next week
  • this month
  • next month

Change Log

V1.0.7

  • Merged PR#3 - Fix sending undefined on employees with no job title

V1.0.6

  • Fixed a bug when there was no one on leave it threw an error

Current Tags

  • 1.0.7                                ...           latest (3 years ago)

7 Versions

  • 1.0.7                                ...           3 years ago
  • 1.0.6                                ...           4 years ago
  • 1.0.4                                ...           5 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (9)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |