mdl-ws-core-user-ts
v1.2.0
Published
Package to use web services of moodle (core-user)
Downloads
121
Maintainers
Readme
mdl-ws-core-user-ts
Package to use web services of moodle (core-user) (https://docs.moodle.org/dev/Creating_a_web_service_client)
Installation
This is a Node.js module available through the npm registry.
Before installing, download and install Node.js.
If this is a brand new project, make sure to create a package.json first with
the npm init command.
Installation is done using the
npm install command:
$ npm install mdl-ws-core-user-tsExamples
General use
import CoreGroup from "mdl-ws-core-user-ts";
const response = CoreUser.CreateUsers({
rootURL: "http://localhost/moodle",
token: "aeb315e6dd3affc18352fe46124cdd48",
content: {
users: [
{
username: 'Example1.Example2',
firstname: 'Example1',
lastname: 'Example2',
email: '[email protected]'
}
]
},
});