starts_before parameter not working for GET /events using the Node SDK

Max Winslow
Max Winslow
  • Updated

Problem Symptoms:

GET /events using the Node SDK with a starts_before parameter is returning no results or unexpected.

The timestamp being passed in the starts_before parameter is the javascript date object Date (e.g Date.now())

 

Description:

The API only accepts the epoch value to the second and Date.now() returns to the millisecond

 

Resolution:

 Pass the parameter like this:

{starts_before: Math.floor(Date.now() / 1000.0)}

 

 

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.