Cebu API javascript client Invalid Input Error

Hi,
I was trying to make an API client for Zebu. I am getting “Invalid Input” and unable to figure out what is the reason for this error. My code is almost verbatim copy of what is prescribed in the zebull api documentation. Kindly help resolve this ASAP, please.