Package Exports
- @rusticisoftware/scormcloud-api-v2-client-javascript
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rusticisoftware/scormcloud-api-v2-client-javascript) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
rustici-software-cloud-v2
RusticiSoftwareCloudV2 - JavaScript client for rustici-software-cloud-v2 REST API used for SCORM Cloud integrations. This SDK is automatically generated by the Swagger Codegen project:
- API version: 2.0 beta
- Package version: 2.0 beta
- Build package: io.swagger.codegen.languages.JavascriptClientCodegen
Installation
For Node.js
npm
To publish the library as a npm, please follow the procedure in "Publishing npm packages".
Then install it via:
npm install rustici-software-cloud-v2 --save
Local development
To use the library locally without publishing to a remote npm registry, first install the dependencies by changing
into the directory containing package.json
(and this README). Let's call this JAVASCRIPT_CLIENT_DIR
. Then run:
npm install
Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR
:
npm link
Finally, switch to the directory you want to use your rustici-software-cloud-v2 from, and run:
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
You should now be able to require('rustici-software-cloud-v2')
in javascript files from the directory you ran the last
command above from.
git
If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:
npm install GIT_USER_ID/GIT_REPO_ID --save
For browser
The library also works in the browser environment via npm and browserify. After following
the above steps with Node.js and installing browserify with npm install -g browserify
,
perform the following (assuming main.js is your entry file, that's to say your javascript file where you actually
use this library):
browserify main.js > bundle.js
Then include bundle.js in the HTML pages.
Webpack Configuration
Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:
module: {
rules: [
{
parser: {
amd: false
}
}
]
}
Getting Started
Please follow the installation instruction and execute the following JS code:
var RusticiSoftwareCloudV2 = require('rustici-software-cloud-v2');
var defaultClient = RusticiSoftwareCloudV2.ApiClient.instance;
// Configure HTTP basic authorization: APP_NORMAL
var APP_NORMAL = defaultClient.authentications['APP_NORMAL'];
APP_NORMAL.username = 'YOUR USERNAME'
APP_NORMAL.password = 'YOUR PASSWORD'
// Configure OAuth2 access token for authorization: OAUTH
var OAUTH = defaultClient.authentications['OAUTH'];
OAUTH.accessToken = "YOUR ACCESS TOKEN"
var api = new RusticiSoftwareCloudV2.ApplicationManagementApi()
var applicationName = "applicationName_example"; // {String}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.createApplication(applicationName, callback);
Documentation for API Endpoints
All URIs are relative to https://cloud.scorm.com/api/v2/
Class | Method | HTTP request | Description |
---|---|---|---|
RusticiSoftwareCloudV2.ApplicationManagementApi | createApplication | PUT /appManagement/applications/{applicationName} | Create a new application |
RusticiSoftwareCloudV2.ApplicationManagementApi | createCredential | POST /appManagement/{childAppId}/credentials | Create credential |
RusticiSoftwareCloudV2.ApplicationManagementApi | createToken | POST /appManagement/token | Create token |
RusticiSoftwareCloudV2.ApplicationManagementApi | deleteApplication | DELETE /appManagement/applications/{childAppId} | Delete an application. If the application contains content, it must first be manually removed before calling this method, else an error will be thrown. |
RusticiSoftwareCloudV2.ApplicationManagementApi | deleteCredential | DELETE /appManagement/{childAppId}/credentials/{credentialId} | Removes `credentialId` credentials |
RusticiSoftwareCloudV2.ApplicationManagementApi | getApplicationConfiguration | GET /appManagement/configuration | Returns all configuration settings for this level |
RusticiSoftwareCloudV2.ApplicationManagementApi | getApplicationList | GET /appManagement/applications | Get list of all applications in this realm. |
RusticiSoftwareCloudV2.ApplicationManagementApi | getCredentials | GET /appManagement/{childAppId}/credentials | List of credentials |
RusticiSoftwareCloudV2.ApplicationManagementApi | setApplicationConfiguration | POST /appManagement/configuration | Set configuration settings for this level. |
RusticiSoftwareCloudV2.ApplicationManagementApi | updateCredential | PUT /appManagement/{childAppId}/credentials/{credentialId} | Update the name or status associated with `credentialId` |
RusticiSoftwareCloudV2.AuthenticationApi | getAppToken | POST /oauth/authenticate/application/token | Authenticates for a oauth token |
RusticiSoftwareCloudV2.CourseApi | buildCoursePreviewLaunchLink | POST /courses/{courseId}/preview | Returns the launch link to use to preview this course |
RusticiSoftwareCloudV2.CourseApi | buildCoursePreviewLaunchLinkWithVersion | POST /courses/{courseId}/versions/{versionId}/preview | Returns the link to use to preview this course |
RusticiSoftwareCloudV2.CourseApi | createFetchAndImportCourseJob | POST /courses/importJobs | Start a job to fetch and import a course. |
RusticiSoftwareCloudV2.CourseApi | createUploadAndImportCourseJob | POST /courses/importJobs/upload | Upload a course and start an import job for it. |
RusticiSoftwareCloudV2.CourseApi | deleteCourse | DELETE /courses/{courseId} | Delete `courseId` |
RusticiSoftwareCloudV2.CourseApi | deleteCourseConfigurationSetting | DELETE /courses/{courseId}/configuration/{settingId} | Clears the `settingId` value for this course |
RusticiSoftwareCloudV2.CourseApi | deleteCourseTags | DELETE /courses/{courseId}/tags | Delete tags for this course |
RusticiSoftwareCloudV2.CourseApi | deleteCourseVersion | DELETE /courses/{courseId}/versions/{versionId} | Delete version `versionId` of `courseId` |
RusticiSoftwareCloudV2.CourseApi | deleteCourseVersionConfigurationSetting | DELETE /courses/{courseId}/versions/{versionId}/configuration/{settingId} | Clears the `settingId` value for this course and version. |
RusticiSoftwareCloudV2.CourseApi | getCourse | GET /courses/{courseId} | Get information about `courseId` |
RusticiSoftwareCloudV2.CourseApi | getCourseConfiguration | GET /courses/{courseId}/configuration | Returns all configuration settings for this course |
RusticiSoftwareCloudV2.CourseApi | getCourseStatements | GET /courses/{courseId}/xAPIStatements | Get xAPI statements for `courseId` |
RusticiSoftwareCloudV2.CourseApi | getCourseTags | GET /courses/{courseId}/tags | Get the tags for this course |
RusticiSoftwareCloudV2.CourseApi | getCourseVersionConfiguration | GET /courses/{courseId}/versions/{versionId}/configuration | Returns all configuration settings for this course and version. |
RusticiSoftwareCloudV2.CourseApi | getCourseVersionInfo | GET /courses/{courseId}/versions/{versionId} | Get version `versionId` of `courseId` |
RusticiSoftwareCloudV2.CourseApi | getCourseVersionStatements | GET /courses/{courseId}/versions/{versionId}/xAPIStatements | Get xAPI statements for version `versionId` of `courseId` |
RusticiSoftwareCloudV2.CourseApi | getCourseVersions | GET /courses/{courseId}/versions | Get all versions of `courseId` |
RusticiSoftwareCloudV2.CourseApi | getCourses | GET /courses | Get all courses for `appId` |
RusticiSoftwareCloudV2.CourseApi | getImportJobStatus | GET /courses/importJobs/{importJobId} | Check the status of an import job. |
RusticiSoftwareCloudV2.CourseApi | putCourseTags | PUT /courses/{courseId}/tags | Set the tags for this course |
RusticiSoftwareCloudV2.CourseApi | putCourseTagsBatch | PUT /courses/tags | Sets all of the provided tags on all of the provided courses |
RusticiSoftwareCloudV2.CourseApi | setCourseConfiguration | POST /courses/{courseId}/configuration | Set configuration settings for this course. |
RusticiSoftwareCloudV2.CourseApi | setCourseTitle | PUT /courses/{courseId}/title | Sets the course title for `courseId` |
RusticiSoftwareCloudV2.CourseApi | setCourseVersionConfiguration | POST /courses/{courseId}/versions/{versionId}/configuration | Set configuration settings for this course and version. |
RusticiSoftwareCloudV2.PingApi | pingAppId | GET /ping | Get back a message indicating that the API is working. |
RusticiSoftwareCloudV2.RegistrationApi | createNewRegistrationInstance | POST /registrations/{registrationId}/instances | Create a new instance for this registration specified by the registration ID |
RusticiSoftwareCloudV2.RegistrationApi | createRegistration | POST /registrations | Create a registration. |
RusticiSoftwareCloudV2.RegistrationApi | deleteRegistration | DELETE /registrations/{registrationId} | Delete `registrationId` |
RusticiSoftwareCloudV2.RegistrationApi | deleteRegistrationConfigurationSetting | DELETE /registrations/{registrationId}/configuration/{settingId} | Clears the `settingId` value for this registration |
RusticiSoftwareCloudV2.RegistrationApi | deleteRegistrationInstanceConfigurationSetting | DELETE /registrations/{registrationId}/instances/{instanceId}/configuration/{settingId} | Clears the `settingId` value for this registration instance |
RusticiSoftwareCloudV2.RegistrationApi | deleteRegistrationProgress | DELETE /registrations/{registrationId}/progress | Delete registration progress (clear registration) |
RusticiSoftwareCloudV2.RegistrationApi | deleteRegistrationTags | DELETE /registrations/{registrationId}/tags | Delete tags for this registration |
RusticiSoftwareCloudV2.RegistrationApi | deleteRegistrationsGlobalData | DELETE /registrations/{registrationId}/globalData | Delete global data associated with `registrationId` |
RusticiSoftwareCloudV2.RegistrationApi | getRegistrationConfiguration | GET /registrations/{registrationId}/configuration | Returns all configuration settings for this registration |
RusticiSoftwareCloudV2.RegistrationApi | getRegistrationInstanceConfiguration | GET /registrations/{registrationId}/instances/{instanceId}/configuration | Returns all configuration settings for this registration instance |
RusticiSoftwareCloudV2.RegistrationApi | getRegistrationInstanceLaunchHistory | GET /registrations/{registrationId}/instances/{instanceId}/launchHistory | Returns history of this registration's launches |
RusticiSoftwareCloudV2.RegistrationApi | getRegistrationInstanceProgress | GET /registrations/{registrationId}/instances/{instanceId} | Get registration progress for instance `instanceId` of `registrationId` |
RusticiSoftwareCloudV2.RegistrationApi | getRegistrationInstanceStatements | GET /registrations/{registrationId}/instances/{instanceId}/xAPIStatements | Get xAPI statements for instance `instanceId` of `registrationId` |
RusticiSoftwareCloudV2.RegistrationApi | getRegistrationInstances | GET /registrations/{registrationId}/instances | Get all the instances of this the registration specified by the registration ID |
RusticiSoftwareCloudV2.RegistrationApi | getRegistrationLaunchHistory | GET /registrations/{registrationId}/launchHistory | Returns history of this registration's launches |
RusticiSoftwareCloudV2.RegistrationApi | getRegistrationLaunchLink | POST /registrations/{registrationId}/launchLink | Returns the link to use to launch this registration |
RusticiSoftwareCloudV2.RegistrationApi | getRegistrationProgress | GET /registrations/{registrationId} | Get registration progress for `registrationId` |
RusticiSoftwareCloudV2.RegistrationApi | getRegistrationStatements | GET /registrations/{registrationId}/xAPIStatements | Get xAPI statements for `registrationId` |
RusticiSoftwareCloudV2.RegistrationApi | getRegistrationTags | GET /registrations/{registrationId}/tags | Get the tags for this registration |
RusticiSoftwareCloudV2.RegistrationApi | getRegistrations | GET /registrations | Gets a list of registrations including a summary of the status of each registration. |
RusticiSoftwareCloudV2.RegistrationApi | putRegistrationTags | PUT /registrations/{registrationId}/tags | Set the tags for this registration |
RusticiSoftwareCloudV2.RegistrationApi | putRegistrationTagsBatch | PUT /registrations/tags | Sets all of the provided tags on all of the provided registrations |
RusticiSoftwareCloudV2.RegistrationApi | registrationExists | HEAD /registrations/{registrationId} | Does this registration exist? |
RusticiSoftwareCloudV2.RegistrationApi | setRegistrationConfiguration | POST /registrations/{registrationId}/configuration | Set configuration settings for this registration. |
RusticiSoftwareCloudV2.RegistrationApi | setRegistrationInstanceConfiguration | POST /registrations/{registrationId}/instances/{instanceId}/configuration | Set configuration settings for this registration instance. |
Documentation for Models
- RusticiSoftwareCloudV2.ActivityResultSchema
- RusticiSoftwareCloudV2.ApplicationListSchema
- RusticiSoftwareCloudV2.ApplicationSchema
- RusticiSoftwareCloudV2.ApplicationToken
- RusticiSoftwareCloudV2.CommentSchema
- RusticiSoftwareCloudV2.CompletionAmountSchema
- RusticiSoftwareCloudV2.CourseActivitySchema
- RusticiSoftwareCloudV2.CourseListNonPagedSchema
- RusticiSoftwareCloudV2.CourseListSchema
- RusticiSoftwareCloudV2.CourseReferenceSchema
- RusticiSoftwareCloudV2.CourseSchema
- RusticiSoftwareCloudV2.CourseTagsBatchSchema
- RusticiSoftwareCloudV2.CreateRegistrationSchema
- RusticiSoftwareCloudV2.CredentialCreatedSchema
- RusticiSoftwareCloudV2.CredentialListSchema
- RusticiSoftwareCloudV2.CredentialRequestSchema
- RusticiSoftwareCloudV2.CredentialSchema
- RusticiSoftwareCloudV2.ImportFetchRequestSchema
- RusticiSoftwareCloudV2.ImportJobResultSchema
- RusticiSoftwareCloudV2.ImportResultSchema
- RusticiSoftwareCloudV2.IntegerResultSchema
- RusticiSoftwareCloudV2.ItemValuePairSchema
- RusticiSoftwareCloudV2.LaunchHistoryListSchema
- RusticiSoftwareCloudV2.LaunchHistorySchema
- RusticiSoftwareCloudV2.LaunchLinkRequestSchema
- RusticiSoftwareCloudV2.LaunchLinkSchema
- RusticiSoftwareCloudV2.LearnerPreferenceSchema
- RusticiSoftwareCloudV2.LearnerSchema
- RusticiSoftwareCloudV2.LinkSchema
- RusticiSoftwareCloudV2.MessageSchema
- RusticiSoftwareCloudV2.MetadataSchema
- RusticiSoftwareCloudV2.ObjectiveSchema
- RusticiSoftwareCloudV2.PermissionsSchema
- RusticiSoftwareCloudV2.PingSchema
- RusticiSoftwareCloudV2.PostBackSchema
- RusticiSoftwareCloudV2.RegistrationCompletion
- RusticiSoftwareCloudV2.RegistrationListSchema
- RusticiSoftwareCloudV2.RegistrationSchema
- RusticiSoftwareCloudV2.RegistrationSuccess
- RusticiSoftwareCloudV2.RegistrationTagsBatchSchema
- RusticiSoftwareCloudV2.ResponseError
- RusticiSoftwareCloudV2.RuntimeInteractionSchema
- RusticiSoftwareCloudV2.RuntimeObjectiveSchema
- RusticiSoftwareCloudV2.RuntimeSchema
- RusticiSoftwareCloudV2.ScoreSchema
- RusticiSoftwareCloudV2.SettingItem
- RusticiSoftwareCloudV2.SettingListSchema
- RusticiSoftwareCloudV2.SettingMetadata
- RusticiSoftwareCloudV2.SettingValidValue
- RusticiSoftwareCloudV2.SettingsIndividualSchema
- RusticiSoftwareCloudV2.SettingsPostSchema
- RusticiSoftwareCloudV2.SharedDataEntrySchema
- RusticiSoftwareCloudV2.StaticPropertiesSchema
- RusticiSoftwareCloudV2.StringResultSchema
- RusticiSoftwareCloudV2.TagListSchema
- RusticiSoftwareCloudV2.TagPostSchema
- RusticiSoftwareCloudV2.TitleSchema
- RusticiSoftwareCloudV2.TokenRequestSchema
- RusticiSoftwareCloudV2.XapiAccount
- RusticiSoftwareCloudV2.XapiActivity
- RusticiSoftwareCloudV2.XapiActivityDefinition
- RusticiSoftwareCloudV2.XapiAgentGroup
- RusticiSoftwareCloudV2.XapiAttachment
- RusticiSoftwareCloudV2.XapiContext
- RusticiSoftwareCloudV2.XapiContextActivity
- RusticiSoftwareCloudV2.XapiInteractionComponent
- RusticiSoftwareCloudV2.XapiResult
- RusticiSoftwareCloudV2.XapiScore
- RusticiSoftwareCloudV2.XapiStatement
- RusticiSoftwareCloudV2.XapiStatementReference
- RusticiSoftwareCloudV2.XapiStatementResult
- RusticiSoftwareCloudV2.XapiVerb
Documentation for Authorization
APP_MANAGEMENT
- Type: HTTP basic authentication
APP_NORMAL
- Type: HTTP basic authentication
LAUNCH_TOKEN
- Type: API key
- API key parameter name: launchToken
- Location: URL query string
OAUTH
- Type: OAuth
- Flow: application
- Authorization URL:
- Scopes:
- read: Grants read access
- write: Grants write access
- delete: Grants deletion access
- admin: Grants read, write, and account management access
- read:course: Grants read access to course methods
- write:course: Grants write access to course methods
- delete:course: Grants deletion access to course methods
- read:dispatch: Grants read access to dispatch methods
- write:dispatch: Grants write access to dispatch methods
- delete:dispatch: Grants deletion access to dispatch methods
- read:invitation: Grants read access to invitation methods
- write:invitation: Grants write access to invitation methods
- delete:invitation: Grants deletion access to invitation methods
- read:ping: Grants read access to the ping method
- read:registration: Grants read access to registration methods
- write:registration: Grants write access to registration methods
- delete:registration: Grants deletion access to registration methods
- read:reporting: Grants read access to reporting methods
- read:xapicredential: Grants read access to xapi credential methods
- write:xapicredential: Grants write access to xapi credential methods
- delete:xapicredential: Grants deletion access to xapi credential methods
- read:xapipipe: Grants read access to xapi pipe methods
- write:xapipipe: Grants write access to xapi pipe methods
- delete:xapipipe: Grants deletion access to xapi pipe methods
- read:appmgmt: Grants read access to app management methods
- write:appmgmt: Grants write access to app management methods
- delete:appmgmt: Grants deletion access to app management methods
URL_TOKEN
- Type: API key
- API key parameter name: authtoken
- Location: URL query string