There are a range of settings within the Moodle environment that require configuration in order to integrate with JR Plus.
The purpose of this article is to detail what settings and preferences need to be activated within the Moodle environment in order for the JR Plus integration to function.
The initial set up of your Moodle environment is outside the scope of this article – The setup of a Moodle site (version 3.2 or newer) will need to have been completed prior to following the steps detailed here.
TABLE OF CONTENTS
- API Functions
Login as your Moodle Admin User and navigate to the Site Administration page:
From here, you can use the Search option to easily find the settings you require:
Search for REST protocol and enable it (by clicking the eye ) under the Active Web Service Protocols section:
Web Services Authentication
Now search for Web Services Authentication and enable it (again, by clicking the eye ):
Extended Characters in Usernames
Next, search for Allow Extended Characters in Usernames and enable it:
This is required to allow party email addresses to be used as the Moodle Username.
API debug messages
As an optional step, you can activate Debug Messages. This will provide you with more detailed error messages if there are any issues with sending data to Moodle from JR Plus.
To do this, you will need to search for Debug Messages and set it the option to NORMAL:
You will need to add an External Service to expose the API end points required for the integration with JR Plus.
Go to Administration → Server → Web services → External services and select Add:
Configure the Service as shown below, making sure its Enabled and Flagged for Authorised Users Only:
Now add the required list of functions clicking the Functions section on the newly created service:
You will need to Search for each item and select Add until you have added the whole list.
A full list of the required functions is available blow.
The follow is a list of Moodle API functions required by the JR Plus Moodle integration:
JR Plus communicates with Moodle by using a Token on behalf of a user. To start, navigate to Administration → Server → Web services → Manage tokens and select Create Token.
Set it up using your new web service with a user that has been added to the service.
Next Steps: Configuring Moodle2021 in JR Plus
Once your Moodle2021 details have been established, the integration will need to be globally enabled and configured within JR Plus to function.