Create events with Api REST
-
Hello,
i’m using Events Manager plugin with JSON API plugin, i can use this but it’s not enough, it seems that something’s missing. the post is created but an other db table (events) need to be used i don’t know how .. :$http.jsonp(WORDPRESS_API_URL + ‘create_post/’ +
‘?nonce=’+ nonce +
‘&author=’+ user.data.username +
‘&type=event’ +
‘&post_type=event’ +
‘&custom[_event_status]=1’ +
‘&custom[_location_id]=0’ +
‘&custom[_event_start_date]=’+ event.start_date +
‘&custom[_event_start_time]=’+ event.start_time +
‘&custom[_event_end_date]=’ +
‘&custom[_event_end_time]=’ +
‘&custom[_event_all_day]=0’ +
‘&custom[_event_private]=’ + event.public +
‘&custom[_event_rsvp]=0’ +
‘&custom[_event_rsvp_date]=’ +
‘&custom[_event_rsvp_time]=’ +
‘&custom[_event_rsvp_space]=’ + event.invites +
‘&custom[_event_spaces]=’ + event.invites +
‘&custom_fields=_event_status, _event_start_date, _event_start_time, _event_end_date, _event_end_time, _event_all_day, _event_private, _event_rsvp, _event_rsvp_date, _event_rsvp_time, _event_rsvp_space, _event_spaces’ +
‘&categories=’ + event.categorie +
‘&title=’+ event.title +
‘&content=’ + event.content +
‘&status=publish’ +
‘&callback=JSON_CALLBACK’)Thanks for your help,
Franck
- The topic ‘Create events with Api REST’ is closed to new replies.