mdl-ws-core-enrol-ts
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

mdl-ws-core-enrol-ts

Package to use web services of moodle (core-enrol) (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-enrol-ts

Examples

General use

import CoreEnrol from "mdl-ws-core-enrol-ts";

const coreEnrol = new CoreEnrol();
const response = coreEnrol.GetUsersCourses({
  rootURL: "http://localhost/moodle",
  token: "aeb315e6dd3affc18352fe46124cdd48",
  content: {
    userid: 5
  },
});

Package Sidebar

Install

npm i mdl-ws-core-enrol-ts

Weekly Downloads

1

Version

1.0.10

License

ISC

Unpacked Size

8.98 kB

Total Files

17

Last publish

Collaborators

  • hector.arrechea21