Support

Home Forums Event Espresso Premium Api include variables

Api include variables

Posted: September 23, 2016 at 7:43 am


rsthrive

September 23, 2016 at 7:43 am

Hi All,

I’m trying to include the prices of tickets from the following endpoint but I’m not sure what to pass to the include parameter.

http://localhost:8888/wp-json/ee/v4.8.36/events?calculate=image_large&include=Datetime

I also couldn’t spot any documentation listing the include parameters. If anyone could also point me in the right direction, that would be really appreciated.

Thanks


Josh

  • Support Staff

September 23, 2016 at 9:20 am

Here’s a link to the documentation that shows how to get related data:

https://github.com/eventespresso/event-espresso-core/blob/master/docs/C–REST-API/ee4-rest-api-GET-including-specific-fields-and-related-entities-in-results.md

One example that shows how to get event names + ticket prices is:

http://localhost:8888/wp-json/ee/v4.8.36/tickets?include=TKT_price,Datetime.Event.EVT_name

The support post ‘Api include variables’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso