Modern event calendar Event API Addon

What can Modern Event Calendar event API Addon do? 

With MEC event API 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

NOTE:The add-on works with All version.

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:

Modern event calendar Event API Addon

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:

Modern event calendar Event API Addon

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 in modern event calendar event API Addon 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:

Modern event calendar Event API Addon
Modern event calendar Event API Addon

If your script isn’t working, then you need to make sure of two things:

  1. The script needs to be enabled on all domains or a specific one
  2. Contact your host provider and make sure that the ability to create iframes on your website is enabled
2 Comment
Avatar for Doris Cooper
Nicola November 14, 2019
| |

Hi! I don't know what I am doing wrong, but it doesn't work for me. I followd exactly the advices above. No success! Any idea?