Reports API

Reports API

block_configurable_reports_get_report_data 

Arguments
reportid (Required)
        The report id

General structure
int   //The report id

REST (POST parameters)
reportid= int

How to connect to 3rd party data analysis tools:

You can also connect to tools like:
  1. Microsoft PowerBI
  2. Google Data Studio 
  3. Zoho Analytics 
  4. Tableau
If you have issues with how to add a URL as a datasource within your analytics tool, please contact them for help.

The URL needed from Pluto LMS:


Step 2: Use the following URL format:

https://yourdomain.com = your LMS domain
xxxxxxxxxxxxxx = your secret and secure token
y = your custom report ID

Use this URL as a template which can be added as a datasource in your 3rd party tool:

https://yourdomain.com/webservice/rest/server.php?wstoken=xxxxxxxxxxxxxx&moodlewsrestformat=json&wsfunction=block_configurable_reports_get_report_data&reportid=y

You will need to get the custom report ID from your LMS:
y would be replaced by an integer 



Step 3: The above URL will pull a JSON formatted dataset from Pluto LMS. Formatting and conversion is done by the 3rd party tool. Please contact your 3rd party reporting provider for how to import a URL datasource as JSON. 
Click here for help with Pluto LMS custom reports


    • Related Articles

    • Generate your API Key

      Step 1: Click on "Site admin", followed by "Integrations", then "Manage tokens": Step 2: Click on "Add": Step 3: (1) Select the user you wish to give the API Token to, (2) Select "API" then (3) Save: Step 4: Share this token with the user or save it ...
    • Setting Up Your API

      We advise the use of a developer to help you setup your API connection. We will offer an example of how to CREATE NEW USER on your LMS (core_user_create_users) Let's review only the required REST (POST parameters): wsfunction=core_user_create_users ...
    • Course Attendance Reports

      OVERVIEW REPORT You can see an overview of learner attendance in the "Report" tab of your attendance activity.  EXPORT ATTENDANCE REPORTS In the "Export" tab of your attendance activity, define the properties and format you wish to export.  Once ...
    • Grades API

      gradereport_overview_get_course_grades Arguments userid (Default to "0")         Get grades for this user (optional, default current) General structure int  Default to "0" //Get grades for this user (optional, default current) REST (POST parameters) ...
    • Messaging API

      core_message_get_messages Arguments useridto (Required) the user id who received the message, 0 for any user.  useridfrom (Default to "0") the user id who send the message, 0 for any user. Note that a useridto=0 and useridfrom=0, will not work. At ...