Home › Forums › Ticket Products › Event Tickets Plus › WP Rest API Questions
- This topic has 7 replies, 3 voices, and was last updated 8 years, 7 months ago by
Gergana.
-
AuthorPosts
-
July 24, 2017 at 2:34 am #1325212
Gergana
ParticipantHello Modern Tribe,
My questions are:
How to understand the Rest API endpoints for TEC?
How to setup the endpoints if they have to be configured?###############
I’ve searched in the knowledge center how to setup the WP Rest APi endpoints but I haven’t found anything which I can use in order to start using the data from The Events Calendar through WP Rest API .
I know that from Version 4.5 of TEC and TEC+ there are new endpoints which we can use(from this article
Also the changelog for TEC in this post does not bring light how to set up the Rest API Endpoints.
Could you please guide me where I can find such information regarding the Rest Api or explain me how to start this journey.
P.S
I am not sure whether this topic is for ET+ support forum. Sorry if it is in the wrong place.
Thanks in advance!July 26, 2017 at 9:33 am #1326363Courtney
MemberHello Gergana
At this time, we have a limited read only Rest API integration. You can find the ones we support directly via wp-json/tribe/events/v1/doc (which you can in turn plug into http://petstore.swagger.io/).
In the meantime you could create your own custom endpoints for the Calendar with this great information here http://v2.wp-api.org/extending/adding/
We’d love more votes on this feature in our user suggestions area.
Thanks
Courtney 🙂July 29, 2017 at 1:17 pm #1327980Gergana
ParticipantHi Courtney,
Thank you for your guidance, but this still does not clarify me the situation.
Can you bring more light to my questions?
1. Do I need to register the custom post type with a REST API Support?
2. What is the name of the custom post type if I need to register it?
3. What to do when I choose for example the title (in order to show the event name) from wp-json/tribe/events/v1/doc?
3.1 Do I need to register the custom endpoint or route by following the guide you’ve shared with me, or they are already registered for use?
3.2 If they are registered how I can use it?Thank you for your time 🙂
July 31, 2017 at 10:15 am #1328389Courtney
MemberHi Gergana
Everything is registered and ready to be used, you don’t need to do anything more. Here’s an example of fetching events starting in October 2017, using wpshindig.com:
http://wpshindig.com/wp-json/tribe/events/v1/events?start_date=2017-10-01The result is a JSON-formatted list of events.
Is there anything else I can do to help?
Thanks
Courtney 🙂August 19, 2017 at 7:08 pm #1337853Joel
ParticipantHi Courtney,
I’m going to piggy back on this thread since there’s little information on the TEC endpoints.
Looking through the wp-json/tribe/events/v1/doc it doesn’t look like tribe_organizers are an available endpoint (Ex: /wp-json/tribe/organizers/v1/organizers), correct?
Am I right in assuming that if it’s not available then we would have to extend the REST API support of it? Is extending this functionality for organizers and venues an upcoming feature release?
Thanks,
JoelAugust 21, 2017 at 8:30 am #1338135Courtney
MemberHi Joel
You would need to manually extend that.
The code above lives in the <samp>bucket\full-rest-api</samp> branch and allows filtering the data returned on a per-event basis.
Is the hook in our current code.
I hope this helps.
Thanks
Courtney 🙂September 12, 2017 at 9:36 am #1348099Support 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 Team -
AuthorPosts
- The topic ‘WP Rest API Questions’ is closed to new replies.
