REST API parameter format for start_date and end_date

Home Forums Calendar Products Events Calendar PRO REST API parameter format for start_date and end_date

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1374005
    Shaun
    Participant

    Your documentation on the start_date and end_date parameters say:

    "description": "Events should start before the specified date",
    "default": "2019-11-02 18:28:47",

    However…the example default is not a valid parameter as it has a space. What type of character is expected where the space is? +, %20, -, something else?

    #1375081
    Brendan
    Keymaster

    Hi Shaun,

    Sorry you are having issues with the REST API. This should work as written. What kind of error are you receiving? Can you reply with a screenshot? That will help us troubleshoot the issue.

    Thanks,
    Brendan

    #1375104
    Shaun
    Participant

    No need for a screenshot, it’s a question of how spaces should be handled
    in the URL for a rest endpoint.

    A standard space is not a valid character for a REST URL, so what character
    should be used in place of the space in “2019-11-02 18:28:47”?

    #1376521
    Brendan
    Keymaster

    Hi Shaun,

    My apologies, I see now what you are trying to get from the REST API. We do have a known bug with the REST URL in regards to start/end times. Technically you should be using %20 but the bug is preventing the REST URL to get to that point. This is in the works for a fix and I have added this ticket to get notified as soon as its resolved.

    Thanks,
    Brendan

    #1409068
    Courtney
    Member

    Hey there Shaun

    We’ve just released an update that should fix this bug. You can read more about it at http://m.tri.be/19tp. Please update your plugins and let us know if you are still experiencing this or if we can close out this ticket.

    Note: We suggest testing updates on a staging server (https://theeventscalendar.com/knowledgebase/creating-using-wordpress-staging-site/).

    Thanks
    Courtney 🙂

    #1422485
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘REST API parameter format for start_date and end_date’ is closed to new replies.