balsama / bonusly-chords

Bonusly Distribution Visualized

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use `start_time` and `end_time` parameters

balsama opened this issue · comments

Currently, FetchBonuslyTransactions::fetchAllTransactions starts at the most recent response and keeps getting more and more responses until it reaches a month before the requested month... comparing the created_at date along the way to see if that transaction could be included.

According to the API docs, the API actually supports a start_time and end_time parameters though. We should switch to that.