Giter VIP home page Giter VIP logo

bamboo-hr-dotnet-client's Introduction

BambooHR .NET Client

Build Status License LGPLv3

A .NET client for the BambooHR REST API.

NOTICE:

Bamboo HR recently removed support for SSLv3 and TLSv1.0, so if you're running .Net < 4.6.1, you'll need to add this line to your application somewhere, probably inside Application_Start() in your Global.asax. Keep in mind that this is a global change to your applcation. If there are any other calls you make to HTTPS endpoints that only support SSLv3, they will stop working. Most services probably don't even support SSLv3 anymore anyway, read this CloudFlare post for more information on the subject. Thanks goes to the Nifty Nick Craver for the fix.

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls |
    SecurityProtocolType.Tls11 |
    SecurityProtocolType.Tls12;

Getting Started

A demo project is included!

  1. Open Program.cs and uncomment any demo calls you want to make.
  2. Open the App.config and fill in the blanks with information from your API account.
  3. Hit F5 to run the console app.
  4. Bask in the gloriously incandescent data gifted unto to you by your affordable and friendly HR system.

Config (Just to spell it out)

For the demo project, make sure you update the App.Config with your API stuffs. It will look something like this:

<add key="BambooApiUser" value="[email protected]" />
<add key="BambooApiKey" value="sadjlksdfguoi45u498j0sdfjoiksdfj08sdf" />
<add key="BambooApiUrl" value="https://api.bamboohr.com/api/gateway.php/examplecompanyname/v1" />
<add key="BambooCompanyUrl" value="https://examplecompanyname.bamboohr.com" />

If you're using this in the context of a web application project or website project, just add those lines to the <appSettings> section of your web.config.

At some point, I may provide a programmatic way to configure this information for use in other scenarios??? What are those other scenarios!?!?!?

API Coverage

Here is a probably-mostly-up-to-date list of implemented API calls:

  • - Single Dimensional Data
    • [-] - Employees
      • - Add an employee
      • - Get an employee
      • - Update an employee
      • [-] - Get a directory of employees (sort of, through custom report)
    • - Reports
      • - Request a company report
      • - Request a custom report
    • - Employee Files
      • - List employee files and categories
      • - Add an employee file category
      • - Update an employee file
      • - Download an employee file
      • - Upload an employee file
    • - Company Files
      • - List company files and categories
      • - Add a company file category
      • - Update a company file
      • - Download a company file
      • - Upload a company file
  • - Tabular Data
    • - Get a table
    • - Update a row
    • - Add a row
    • - Get tables for changed employees
  • - Time Off
    • - Get time off requests
    • - Add a time off request
    • - Change a request status
    • - Add a time off history entry
    • - List assigned Time Off Policies
    • - Assign a new Time Off Policy
    • - Add a time off history override
    • - Estimate future time off balances
    • - Get a list of who's out, including company holidays
  • - Photos
    • - Get an employee photo
    • - Upload an employee photo
    • - Using a photo from BambooHR's servers
  • - Metadata
    • - Get a list of fields
    • - Get a list of tabular fields
    • - Get the details for "list" fields in an account
    • - Add or update values for "list" fields in an account
    • - Get a list of time off types
    • - Get a list of time off policies
    • - Get a list of users
  • - Last Change Information
  • - Login

Caveats/Notes

This library doesn't do any caching for you, make sure you don't spam the API and go over your limit! There's probably a limit, right?

Credit

Thanks to Stack Overflow for letting me (John Bubriski) open source this code.

License

MIT, but check the LICENSE file in case I'm trolling you.

bamboo-hr-dotnet-client's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.