Home › Forums › Calendar Products › Events Calendar PRO › REST API parameter format for start_date and end_date
- This topic has 6 replies, 3 voices, and was last updated 6 years, 3 months ago by Shaun.
-
AuthorPosts
-
November 2, 2017 at 11:41 am #1374005ShaunParticipant
Your documentation on the
start_date
andend_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?November 3, 2017 at 4:42 pm #1375081BrendanKeymasterHi 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,
BrendanNovember 3, 2017 at 6:17 pm #1375104ShaunParticipantNo 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”?November 6, 2017 at 3:30 pm #1376521BrendanKeymasterHi 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,
BrendanDecember 19, 2017 at 12:14 pm #1409068CourtneyMemberHey 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 🙂January 10, 2018 at 8:37 am #1422485Support DroidKeymasterHey 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 -
AuthorPosts
- The topic ‘REST API parameter format for start_date and end_date’ is closed to new replies.