taylorbrooks / closeio

A Ruby wrapper for the Close.io API
http://developer.close.com
MIT License
45 stars 57 forks source link

add option to pass in timezone offset #38

Closed alfie-max closed 7 years ago

alfie-max commented 7 years ago

pass your timezone's UTC offset as an HTTP header X-TZ-Offset

alfie-max commented 7 years ago

Here is the reference to how the TZ-Offset header is to be used :

https://developer.close.io/#timezoneoffsets

alfie-max commented 7 years ago

here's a sample curl request that closeio support gave me,

curl -u APIKEY: "https://app.close.io/api/v1/report/activity/orga_xxxx/?date_start=2017-09-26T18:30:00.000Z&date_end=2017-09-27T18:29:59.999" -H 'X-TZ-Offset: 5.5'