Event API Addon
The add-on works with All version.
With this add-on, you can easily copy events from one website into another, export your scripts, or download JSON file.
View events from your WordPress website and any web application on any platform. Single Events, shortcodes, activation immediately after installation, and domain management are other features of the add-on.
For installation, first, make sure that both MEC and MEC Event API are installed and activated. Then, head over to your WordPress Dashboard > Plugins > Add New and upload, install, and activate the add-on
After activating the add-on, you can go to any event or shortcode and get an API code for the event or shortcode you selected. See the images below:
By clicking Create API you will be directed to a page where you can receive your API. This page includes two parts that are explained below:
Number one is the access to the website which is supposed to show events. To manage it, you need to enter a specific domain(s) or set this API for all domains.
Therefore, click on Customization and add the domain(s) that you want and then click Add Domain.
In order to remove one, click on the trash can. You can either select domain(s) or click on All Domains. This way, this API will be displayed on all the added domains. In the end, click on Submit.
In the second part you can see two fields. The first includes a script. If you click on Copy it will copy what you have in the field in the clipboard.
Wherever you put this script, you will see the content that you wanted, with the same style (the content can be a shortcode or a single event). There are no limitations for displaying content, but you need to make sure which domains you want to display the script. The second field shows the same content but the difference is that this is a JSON file and you cannot use it directly. You can use the data it contains in your web application and receive different content and view them in you website or web application.
You can see samples of the used API below: