Support » Plugin: The Events Calendar » REST API parameter start_date and end_date seem to have no effect

  • Hi there, I am trying to retreive events through the REST API for use in an app. According to this post: https://theeventscalendar.com/support/forums/topic/rest-api-parameter-format-for-start_date-and-end_date/ these paramenters had a bug that was fixed in version 4.6.8 of the plugin. I am running version 4.6.10.1 and was not able to get this working, no matter how i formatted (or not) the date:

    http://artssspot.com/barcelona/wp-json/tribe/events/v1/events?start_date=2018-02-05 00:59:00
    http://artssspot.com/barcelona/wp-json/tribe/events/v1/events?start_date=2018-02-05%2000:59:00
    http://artssspot.com/barcelona/wp-json/tribe/events/v1/events?start_date=2018-02-05%2000%3A59%3A00

    Is this still a bug or am i missing something?

    Thanks for your help! Looking forward to work with the API

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter mailme.eva

    (@mailmeeva)

    After some more testing around I realized that start_date seems to include by default all ongoing events that started earlier. To me this looks like a bug, since it is incongruent with the description of “events starting after the specified date”.
    This applies the same way to the tribe_get_events() function, in both cases: when a startdate is specified and when eventDisplay is set to “upcoming”.
    In my case, the events are mostly exhibitions, that last several weeks. Is there a way to get just the ones starting in the future?

Viewing 1 replies (of 1 total)
  • The topic ‘REST API parameter start_date and end_date seem to have no effect’ is closed to new replies.