How to access the REST APIs inside the MOTAR Unity SDK
The MOTAR Unity SDK integrates your access to apps, classes, lessons, and the APIs required to authenticate students, and update their performance via assessments, all using built-in Unity objects and prefabs.
Additional functionality is available via the DXAPIRequest gateway to MOTAR’s REST APIs.
To generate a code snippet that would properly call any of our REST APIs using the student’s credentials:
OPEN the MOTAR API tab under the MOTAR Unity SDK
SELECT the API you need, and use the clipboard icon to populate the code snippet into your clipboard buffer.
COPY and paste the code anywhere it is required.
The data is returned as a Json.net object or a Texture2D where applicable.
For brevity, the snippet returns the data into a lambda completion function, which of course can be replaced by a delegate function of your choice.