Giter Club home page Giter Club logo

bamboozled's People

Contributors

bwdur avatar simonxciv avatar srblackvoid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bamboozled's Issues

Consider adding support for "onlyCurrent=False" URI parameter to Get-BambooHRDirectory & Get-BambooHRUser

The default behavior is that only current information is returned. Some fields, such as department and supervisor, are not returned until the employee start date is reached. However, if you add the query parameter "onlyCurrent=False" to the URI then non-current (e.g. future information) is returned. Of course, has to be used only when you want future information, such as for new hires before their hire date.

So. this could be a new option to the API entry point to request non-current information when it is needed.

So, this enhancement request may be useful.

From the BambooHR API change log for 2016.09:

FUTURE DATING
Currently, any time you future date a hire date, termination date, or tabular data (Job Information, Compensation etc.) we recognize that information in Bamboo immediately. With the coming change we will only recognize the date when the date arrives.

-UseBasicParsing

Hey! Thanks so much for your little wrapper. I found a small little issue and I'm too lazy to do a fork/pull request for it. I was scheduling a script that uses this and running it under a service account, and got this error:

Invoke-WebRequest : The response content cannot be parsed because the Internet Explorer engine is not available, or
Internet Explorer's first-launch configuration is not complete. Specify the UseBasicParsing parameter and try again.
At C:\Scripts\Modules\Bamboozled\Bamboozled.psm1:91 char:30
+ ... Directory = Invoke-WebRequest $directoryUrl -method POST -Credential  ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotImplemented: (:) [Invoke-WebRequest], NotSupportedException
    + FullyQualifiedErrorId : WebCmdletIEDomNotSupportedException,Microsoft.PowerShell.Commands.InvokeWebRequestComman
   d

A quick google showed that you can add the -UseBasicParsing switch to Invoke-WebRequest if the user can't launch IE, and that seemed to worked just fine!

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.