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.
- Manually: You can also install the plugin manually using SFTP or FTP tools. Click here to see how you can install the plugin manually.
- Automatically: You can install the plugin from the backend of your WordPress. Click here to see how you can install the plugin automatically.
General settings
The general settings in the REST API plugin allow organizers to use the application freely.
Perform the following settings to work with the app:
- Please go to WP Admin >> Event Manager >> REST API >> General settings.
- Enable REST API key: you can tick the option to enable the REST API functionality or leave it blank to disable it on your events website.
- App Logo: you need to upload the logo that you want to display on your mobile application.
API Access Settings
- Please go to WP admin >> Event Manager >> REST API >> API access.
- Click on Create an API key.
- After filling in the details, such as:
- Description/friendly name, for identifying this key: It is the name that will help you distinguish one key from another.
- User or owner of the key: Choose from the list of people who can use the key.
- Expiry date: The date till which the key shall remain active.
- Permission Type: You can decide the permission type from amongst: Read, Write, or both.
- The admin can generate the API key by clicking on Generate API Key.
- 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.
- 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:
- Go to WP Event Manager in the admin panel.
- Click on REST API.
- Click on the API access option.
- Enable the Restrict Check-in option.
- Save changes.