Skip to content

getCourseMetaData #7

Open
Open
@springcode

Description

@springcode

Can this be added to the API Wrapper?

I have fashioned my own for testing ...

SCORMCloud.prototype.getCourseMetaData = function (courseid, callback) {

var url = new URL('api?method=rustici.course.getMetadata', this.serviceUrl);

// The id used to identify this course.
if (courseid) url.searchParams.set('courseid', courseid);

this._request(url, function (error, json) {

    if (error) return callback(error, json);

    let data = json.rsp.package;

    return callback(error, data);
});

}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions