Creating an event using JSON API
-
Hey Folks,
I’m using the JSON API plugin in conjunction with this Events Manager Plugin and I want to create an event using the ‘create_post’ controller.
For example:
url:'https://yoursite.com/api/posts/create_post/?nonce=' + eventNonce + '&type=event&title=' + eventTitle,
That’s enough to get the event created as a draft but I’m not allowed to publish it until I have the location and the date info in the proper format.
I found that adding ‘&location=’ or ‘&date=’ doesn’t work.
I even tried the custom parameters (‘&custom[_event_end_date]=’ +) referenced in a previous support question:
https://www.ads-software.com/support/topic/create-events-with-api-rest?replies=1None of that seems to work for me.
Any help would be greatly appreciated.
- The topic ‘Creating an event using JSON API’ is closed to new replies.