Home › Forums › Calendar Products › Events Calendar PRO › Creating Events with Python
- This topic has 4 replies, 5 voices, and was last updated 8 years, 7 months ago by
Courtney.
-
AuthorPosts
-
August 16, 2017 at 7:13 am #1335992
Marie Bourdaud
ParticipantHi 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
-
This topic was modified 8 years, 8 months ago by
Marie Bourdaud.
August 16, 2017 at 3:21 pm #1336420Cliff
MemberHi, 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.
September 7, 2017 at 9:36 am #1346076Support Droid
KeymasterHey 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 TeamSeptember 25, 2017 at 12:59 pm #1354499Courtney
MemberJust 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 🙂 -
This topic was modified 8 years, 8 months ago by
-
AuthorPosts
- The topic ‘Creating Events with Python’ is closed to new replies.
