Creating Events with Python

Home Forums Calendar Products Events Calendar PRO Creating Events with Python

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1335992
    Marie Bourdaud
    Participant

    Hi everyone,

    I am currently working on a software for my company which will (among other things) automatically create events on our wordpress website, I am using python for that.

    I found a really efficient library for logging in wordpress and creating posts: wordpress xmlrpc

    I have managed to login and create posts with it but I can’t figure out how to create events.

    I am able to pull the events from my website (using this library), they appear exactly as they do in the wpid_posts database, I can access and modify the post content, thumbnail, title, category… But I can’t findout where the fields that are specific to events (start date, end date, times, venue, organizer…) are defined.

    Summarry: I am looking for someone that already has created events using python and could explain me how, or someone that could explain me how events are registred in the sql databases.

    Thank you for your help, this plugin is awesome

    #1336420
    Cliff
    Member

    Hi, Marie. Thanks for your detailed request.

    Any XML-RPC stuff would be native to WordPress. In other words, our plugin doesn’t add any additional XML-RPC integration for you to leverage.

    We do have a read-only REST API. It’s planned to have it support all CRUD operations, but that’s a “someday” thing, since the read-only implementation first rolled out recently.

    If using PHP, you could reference https://github.com/moderntribe/the-events-calendar/blob/4.5.10/src/Tribe/API.php

    Coming full circle back to XML-RPC, you could reference our API file or simply create a new event manually via wp-admin and then study how the post is saved and how the post meta is used (e.g. start date, start date UTC, time zone, etc.)

    Please let me know if you have any follow-up questions on this topic.

    #1346076
    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

    #1354499
    Courtney
    Member

    Just posting a quick update that we’ve just launched The Events Calendar – Full REST Support. You can read the release notes at https://theeventscalendar.com/release-events-calendar-full-rest-support/.

    We also published a helpful guide: Introduction to The Events Calendar REST API https://theeventscalendar.com/knowledgebase/introduction-events-calendar-rest-api/ .

    We’re excited to provide this functionality for you.

    Thanks
    Courtney 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Creating Events with Python’ is closed to new replies.