Creates a new instance of the Client class.
The base URL for the Moodle API.
The token to use for authentication.
Protected
baseProtected
tokenCalls a Moodle web service function with the given parameters.
The name of the Moodle web service function to call.
Rest
...params: F extends keyof FunctionDefinitionThe parameters to pass to the Moodle web service function. (if any)
A Promise that resolves to the result of the Moodle web service function call.
An error if the HTTP response status is not ok or if the Moodle web service function call returns an exception.
Generated using TypeDoc
Represents a client for making requests to the Moodle API.