• Resolved jnashdesign

    (@jnashdesign)


    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=1

    None of that seems to work for me.

    Any help would be greatly appreciated.

    https://www.ads-software.com/plugins/events-manager/

Viewing 1 replies (of 1 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    you can try to check php class under events-manager/classes/em-event.php then search for function save()

Viewing 1 replies (of 1 total)
  • The topic ‘Creating an event using JSON API’ is closed to new replies.