REST API Add-on

REST API Add-on

The REST API plugin simply connects the event mobile application with your WordPress site. In simple words, it syncs all your website data, including organizers, events, users, and more, with the WP Event Manager Mobile application.

REST API Installation                                                                           

Just like installing any other premium plugin of WP Event Manager, you need to make sure that you have the core plugin installed on your system.

You can install the REST API plugin in two ways:

  1. Manually: You can also install the plugin manually using SFTP or FTP tools. Click here to see how you can install the plugin manually.

  2. Automatically: You can install the plugin from the backend of your WordPress. Click here to see how you can install the plugin automatically.

General Setting                                                                                   

Go to: WP Admin >> Event Manager >> REST API >> Click on General.

Here, you will get three options:

  • Enable REST API Key: You can check the option to enable the REST API functionality or leave it blank to disable it on your events website.

  • Application Name: Enter the name you want to display on your mobile application.

  • App Logo: You need to upload the logo that you want to display on your mobile application.

API Access Settings                                                                               

  1. Go to: WP Admin >> Event Manager >> REST API >> API Access.

  1. Click on Create an API Key.

  1. After filling in the details, such as:

    1. Rectified content: Fill in the following details:

      1. Description/Friendly Name, for identifying this key: It is the name that will help you distinguish one key from another.

      2. User or Owner of the Key: Choose from the list of people who can use the key.

      3. Expiry Date: The date till which the key shall remain active.

      4. Permission Type: You can decide the permission type from among Read, Write, or both.

      5. Mobile Menu: Select the pages that this API key can access in the mobile application. Available options include:

        1. Dashboard

        2. Attendees

        3. Guest List

        4. Orders

        5. Arrivals

        6. Only the selected pages will be visible and accessible to the user in the mobile app.

      6. Event Show By: Choose how events should be displayed for this API key:

        1. Show logged-in user events: Displays events associated with the logged-in user.

        2. Show selected events: Displays only the events specifically selected.

  1. The admin can generate the API key by clicking on Generate API Key.

  2. After generating the API key, a user needs to click on the API Access option that displays all the keys generated on this website in a dashboard.

  1. In order to revoke the API key, one can click on the key name under the Description section and revoke the key from there.

Restricting the Check-in Option                                                   

Users can now restrict the Check-in option using the REST API add-on. Here are the steps to follow:

  1. Go to WP Event Manager in the admin panel.

  2. Click on REST API.

  3. Click on the API Access option, then click on view/edit option.

  1. Enable the Restrict Check-in option.

  1. Save Changes.

App Branding                                                                                

The App Branding option gives admins and organizers the right to select the color of the application.

The color plays a significant role in branding the application based on the company theme. For instance, WP Event Manager uses the Blue and White colors as its brand identity. Hence, the application also follows the same color scheme. Here, the user gets the freedom to choose the theme color.

To access the App Branding page, follow the steps below:

  1. Go to: WP Admin >> Event Manager >> REST API >> App Branding

  2. You will find the following here:

    1. Primary: Base color of the application.

    2. Success: Color of application messages.

    3. Info: Color of the information displayed on the application.

    4. Warning: Color of the warning message.

    5. Danger: Color of application messages.

Additionally, users can also check how the selected color of the application looks when the dark and light themes are activated. This can be seen from the mode present on the right-hand side of the App Branding settings.

  1. App Settings: Under App Settings, you can determine which user roles are allowed to generate an App Key. This setting controls access to App Key generation and does not affect mobile login.

    1. Select User Roles: Use the checkboxes to select the roles that should have permission to generate App Keys. You can select one or multiple roles as required.

  1. Save Changes: After selecting the required roles, click Save Changes to apply and save the settings.