rustici_software_cloud_v2 1.0.0beta → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +1 -1
- data/README.md +354 -243
- data/lib/rustici_software_cloud_v2/api/about_api.rb +71 -0
- data/lib/rustici_software_cloud_v2/api/application_management_api.rb +253 -63
- data/lib/rustici_software_cloud_v2/api/authentication_api.rb +11 -17
- data/lib/rustici_software_cloud_v2/api/course_api.rb +910 -160
- data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +2236 -0
- data/lib/rustici_software_cloud_v2/api/invitations_api.rb +1025 -0
- data/lib/rustici_software_cloud_v2/api/learner_api.rb +367 -0
- data/lib/rustici_software_cloud_v2/api/ping_api.rb +6 -4
- data/lib/rustici_software_cloud_v2/api/registration_api.rb +448 -295
- data/lib/rustici_software_cloud_v2/api/reporting_api.rb +191 -0
- data/lib/rustici_software_cloud_v2/api/xapi_api.rb +581 -0
- data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +528 -0
- data/lib/rustici_software_cloud_v2/api_client.rb +5 -5
- data/lib/rustici_software_cloud_v2/api_error.rb +2 -2
- data/lib/rustici_software_cloud_v2/configuration.rb +11 -20
- data/lib/rustici_software_cloud_v2/models/about_schema.rb +194 -0
- data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +10 -38
- data/lib/rustici_software_cloud_v2/models/application_info_schema.rb +234 -0
- data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/{link_schema.rb → application_request_schema.rb} +14 -16
- data/lib/rustici_software_cloud_v2/models/application_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/application_token.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/asset_file_schema.rb +194 -0
- data/lib/rustici_software_cloud_v2/models/{course_tags_batch_schema.rb → batch_tags_schema.rb} +21 -17
- data/lib/rustici_software_cloud_v2/models/comment_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +7 -31
- data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +6 -3
- data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/course_schema.rb +7 -31
- data/lib/rustici_software_cloud_v2/models/{registration_tags_batch_schema.rb → create_dispatch_id_schema.rb} +25 -25
- data/lib/rustici_software_cloud_v2/models/create_dispatch_list_schema.rb +187 -0
- data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +306 -0
- data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +252 -0
- data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +250 -0
- data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/credential_created_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/credential_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +195 -0
- data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +198 -0
- data/lib/rustici_software_cloud_v2/models/destination_schema.rb +227 -0
- data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +194 -0
- data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +197 -0
- data/lib/rustici_software_cloud_v2/models/dispatch_lti_info_schema.rb +221 -0
- data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +194 -0
- data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +326 -0
- data/lib/rustici_software_cloud_v2/models/{tag_post_schema.rb → enabled_schema.rb} +17 -6
- data/lib/rustici_software_cloud_v2/models/file_list_item_schema.rb +205 -0
- data/lib/rustici_software_cloud_v2/models/file_list_schema.rb +187 -0
- data/lib/rustici_software_cloud_v2/models/import_asset_request_schema.rb +207 -0
- data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +31 -8
- data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +7 -31
- data/lib/rustici_software_cloud_v2/models/import_media_file_reference_request_schema.rb +216 -0
- data/lib/rustici_software_cloud_v2/models/import_request_schema.rb +195 -0
- data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +214 -0
- data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +226 -0
- data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +198 -0
- data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +225 -0
- data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/launch_auth_options_schema.rb +212 -0
- data/lib/rustici_software_cloud_v2/models/launch_auth_schema.rb +204 -0
- data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +10 -38
- data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +25 -9
- data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/learner_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/media_file_metadata_schema.rb +213 -0
- data/lib/rustici_software_cloud_v2/models/message_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +12 -10
- data/lib/rustici_software_cloud_v2/models/objective_schema.rb +13 -45
- data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/ping_schema.rb +21 -15
- data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +24 -42
- data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +198 -0
- data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +264 -0
- data/lib/rustici_software_cloud_v2/models/private_invitation_update_schema.rb +215 -0
- data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +198 -0
- data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +287 -0
- data/lib/rustici_software_cloud_v2/models/public_invitation_update_schema.rb +228 -0
- data/lib/rustici_software_cloud_v2/models/registration_completion.rb +2 -2
- data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +6 -3
- data/lib/rustici_software_cloud_v2/models/registration_schema.rb +17 -4
- data/lib/rustici_software_cloud_v2/models/registration_success.rb +2 -2
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +257 -0
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +212 -0
- data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +194 -0
- data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +185 -0
- data/lib/rustici_software_cloud_v2/models/response_error.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +7 -31
- data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +10 -38
- data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +7 -31
- data/lib/rustici_software_cloud_v2/models/score_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/setting_item.rb +7 -31
- data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +7 -31
- data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/title_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/update_application_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +266 -0
- data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +198 -0
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +234 -0
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +213 -0
- data/lib/rustici_software_cloud_v2/models/xapi_account.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +7 -31
- data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/xapi_context.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +193 -0
- data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +193 -0
- data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +255 -0
- data/lib/rustici_software_cloud_v2/models/xapi_credential_put_schema.rb +239 -0
- data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +264 -0
- data/lib/rustici_software_cloud_v2/models/xapi_credentials_list_schema.rb +202 -0
- data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +203 -0
- data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/xapi_result.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/xapi_score.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +192 -0
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +199 -0
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.rb +194 -0
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +239 -0
- data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/zoomi_company_id.rb +185 -0
- data/lib/rustici_software_cloud_v2/models/zoomi_course_options_schema.rb +204 -0
- data/lib/rustici_software_cloud_v2/version.rb +3 -3
- data/lib/rustici_software_cloud_v2.rb +68 -6
- data/rustici_software_cloud_v2.gemspec +8 -7
- data/spec/api_client_spec.rb +53 -47
- data/spec/configuration_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -13
- metadata +142 -270
- data/docs/ActivityResultSchema.md +0 -20
- data/docs/ApplicationListSchema.md +0 -8
- data/docs/ApplicationManagementApi.md +0 -570
- data/docs/ApplicationSchema.md +0 -9
- data/docs/ApplicationToken.md +0 -10
- data/docs/AuthenticationApi.md +0 -64
- data/docs/CommentSchema.md +0 -10
- data/docs/CompletionAmountSchema.md +0 -8
- data/docs/CourseActivitySchema.md +0 -15
- data/docs/CourseApi.md +0 -1459
- data/docs/CourseListNonPagedSchema.md +0 -8
- data/docs/CourseListSchema.md +0 -9
- data/docs/CourseReferenceSchema.md +0 -10
- data/docs/CourseSchema.md +0 -20
- data/docs/CourseTagsBatchSchema.md +0 -9
- data/docs/CreateRegistrationSchema.md +0 -17
- data/docs/CredentialCreatedSchema.md +0 -12
- data/docs/CredentialListSchema.md +0 -8
- data/docs/CredentialRequestSchema.md +0 -9
- data/docs/CredentialSchema.md +0 -12
- data/docs/ImportFetchRequestSchema.md +0 -8
- data/docs/ImportJobResultSchema.md +0 -11
- data/docs/ImportResultSchema.md +0 -11
- data/docs/IntegerResultSchema.md +0 -8
- data/docs/ItemValuePairSchema.md +0 -9
- data/docs/LaunchHistoryListSchema.md +0 -8
- data/docs/LaunchHistorySchema.md +0 -17
- data/docs/LaunchLinkRequestSchema.md +0 -17
- data/docs/LaunchLinkSchema.md +0 -8
- data/docs/LearnerPreferenceSchema.md +0 -11
- data/docs/LearnerSchema.md +0 -11
- data/docs/LinkSchema.md +0 -8
- data/docs/MessageSchema.md +0 -8
- data/docs/MetadataSchema.md +0 -14
- data/docs/ObjectiveSchema.md +0 -20
- data/docs/PermissionsSchema.md +0 -9
- data/docs/PingApi.md +0 -57
- data/docs/PingSchema.md +0 -8
- data/docs/PostBackSchema.md +0 -12
- data/docs/RegistrationApi.md +0 -1490
- data/docs/RegistrationCompletion.md +0 -7
- data/docs/RegistrationListSchema.md +0 -9
- data/docs/RegistrationSchema.md +0 -27
- data/docs/RegistrationSuccess.md +0 -7
- data/docs/RegistrationTagsBatchSchema.md +0 -9
- data/docs/ResponseError.md +0 -8
- data/docs/RuntimeInteractionSchema.md +0 -18
- data/docs/RuntimeObjectiveSchema.md +0 -16
- data/docs/RuntimeSchema.md +0 -27
- data/docs/ScoreSchema.md +0 -8
- data/docs/SettingItem.md +0 -12
- data/docs/SettingListSchema.md +0 -8
- data/docs/SettingMetadata.md +0 -15
- data/docs/SettingMetadataValidValues.md +0 -9
- data/docs/SettingValidValue.md +0 -9
- data/docs/SettingsIndividualSchema.md +0 -10
- data/docs/SettingsPostSchema.md +0 -8
- data/docs/SharedDataEntrySchema.md +0 -9
- data/docs/StaticPropertiesSchema.md +0 -13
- data/docs/StringResultSchema.md +0 -8
- data/docs/TagListSchema.md +0 -8
- data/docs/TagPostSchema.md +0 -7
- data/docs/TitleSchema.md +0 -8
- data/docs/TokenRequestSchema.md +0 -9
- data/docs/XapiAccount.md +0 -9
- data/docs/XapiActivity.md +0 -10
- data/docs/XapiActivityDefinition.md +0 -19
- data/docs/XapiAgentGroup.md +0 -14
- data/docs/XapiAttachment.md +0 -14
- data/docs/XapiContext.md +0 -16
- data/docs/XapiContextActivity.md +0 -11
- data/docs/XapiInteractionComponent.md +0 -9
- data/docs/XapiResult.md +0 -13
- data/docs/XapiScore.md +0 -11
- data/docs/XapiStatement.md +0 -20
- data/docs/XapiStatementReference.md +0 -9
- data/docs/XapiStatementResult.md +0 -9
- data/docs/XapiVerb.md +0 -9
- data/git_push.sh +0 -55
- data/lib/rustici_software_cloud_v2/models/setting_metadata_valid_values.rb +0 -209
- data/spec/models/activity_result_schema_spec.rb +0 -133
- data/spec/models/application_list_schema_spec.rb +0 -53
- data/spec/models/application_schema_spec.rb +0 -59
- data/spec/models/application_token_spec.rb +0 -65
- data/spec/models/comment_schema_spec.rb +0 -65
- data/spec/models/completion_amount_schema_spec.rb +0 -53
- data/spec/models/course_activity_schema_spec.rb +0 -99
- data/spec/models/course_list_non_paged_schema_spec.rb +0 -53
- data/spec/models/course_list_schema_spec.rb +0 -59
- data/spec/models/course_reference_schema_spec.rb +0 -65
- data/spec/models/course_schema_spec.rb +0 -129
- data/spec/models/create_registration_schema_spec.rb +0 -107
- data/spec/models/credential_created_schema_spec.rb +0 -77
- data/spec/models/credential_list_schema_spec.rb +0 -53
- data/spec/models/credential_request_schema_spec.rb +0 -59
- data/spec/models/credential_schema_spec.rb +0 -77
- data/spec/models/import_fetch_request_schema_spec.rb +0 -53
- data/spec/models/import_job_result_schema_spec.rb +0 -75
- data/spec/models/import_result_schema_spec.rb +0 -71
- data/spec/models/integer_result_schema_spec.rb +0 -53
- data/spec/models/item_value_pair_schema_spec.rb +0 -59
- data/spec/models/launch_history_list_schema_spec.rb +0 -53
- data/spec/models/launch_history_schema_spec.rb +0 -115
- data/spec/models/launch_link_request_schema_spec.rb +0 -107
- data/spec/models/launch_link_schema_spec.rb +0 -53
- data/spec/models/learner_preference_schema_spec.rb +0 -71
- data/spec/models/learner_schema_spec.rb +0 -71
- data/spec/models/link_schema_spec.rb +0 -53
- data/spec/models/message_schema_spec.rb +0 -53
- data/spec/models/metadata_schema_spec.rb +0 -89
- data/spec/models/objective_schema_spec.rb +0 -137
- data/spec/models/permissions_schema_spec.rb +0 -59
- data/spec/models/ping_schema_spec.rb +0 -53
- data/spec/models/post_back_schema_spec.rb +0 -85
- data/spec/models/registration_completion_spec.rb +0 -47
- data/spec/models/registration_list_schema_spec.rb +0 -59
- data/spec/models/registration_schema_spec.rb +0 -167
- data/spec/models/registration_success_spec.rb +0 -47
- data/spec/models/response_error_spec.rb +0 -53
- data/spec/models/runtime_interaction_schema_spec.rb +0 -117
- data/spec/models/runtime_objective_schema_spec.rb +0 -109
- data/spec/models/runtime_schema_spec.rb +0 -171
- data/spec/models/score_schema_spec.rb +0 -53
- data/spec/models/setting_item_spec.rb +0 -81
- data/spec/models/setting_list_schema_spec.rb +0 -53
- data/spec/models/setting_metadata_spec.rb +0 -99
- data/spec/models/setting_metadata_valid_values_spec.rb +0 -59
- data/spec/models/settings_individual_schema_spec.rb +0 -65
- data/spec/models/settings_post_schema_spec.rb +0 -53
- data/spec/models/shared_data_entry_schema_spec.rb +0 -59
- data/spec/models/static_properties_schema_spec.rb +0 -83
- data/spec/models/string_result_schema_spec.rb +0 -53
- data/spec/models/title_schema_spec.rb +0 -53
- data/spec/models/token_request_schema_spec.rb +0 -59
- data/swagger-codegen.config +0 -11
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 76a614b52e38306b7ef49b804c9d53209e8ad854f4e74a11cd2092be1638180b
|
4
|
+
data.tar.gz: cda1d65a0e1ee135dd3905169a2fdbdd1a92155e271efbe24e9555cb9edde962
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: aeca3f98049127435943a6d120e86d1aa9a97b09d0ff826c62806000f5f53e2ab580359b3ce682aca846e2555642bfbf0e3e0bf4623bbb182054a0a2c35b63a2
|
7
|
+
data.tar.gz: 2aa262cd225e5bf1ec2d36b132839cdfaf7e6435b061403cc2dc5252df8ffea7bad38fcfbca5dc2db24afa59ea7f51b74502fd29dd2d5da167effb14c719d361
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -6,278 +6,389 @@ REST API used for SCORM Cloud integrations.
|
|
6
6
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
|
-
- API version: 2.0
|
10
|
-
- Package version:
|
9
|
+
- API version: 2.0
|
10
|
+
- Package version: 2.0.0
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
14
|
+
### Gem
|
15
|
+
[rustici_software_cloud_v2](https://rubygems.org/gems/rustici_software_cloud_v2)
|
14
16
|
|
15
|
-
###
|
16
|
-
|
17
|
-
To build the Ruby code into a gem:
|
17
|
+
### Local:
|
18
|
+
Build the Ruby code into a gem:
|
18
19
|
|
19
20
|
```shell
|
20
21
|
gem build rustici_software_cloud_v2.gemspec
|
21
22
|
```
|
22
23
|
|
23
|
-
Then either install the gem locally:
|
24
|
-
|
25
24
|
```shell
|
26
|
-
gem install ./rustici_software_cloud_v2-
|
25
|
+
gem install ./rustici_software_cloud_v2-2.0.0.gem
|
27
26
|
```
|
28
|
-
|
29
|
-
|
30
|
-
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
27
|
+
For development, run `gem install --dev ./rustici_software_cloud_v2-2.0.0.gem` to install the development dependencies
|
31
28
|
|
32
29
|
Finally add this to the Gemfile:
|
33
30
|
|
34
|
-
gem 'rustici_software_cloud_v2', '~>
|
31
|
+
gem 'rustici_software_cloud_v2', '~> 2.0.0'
|
35
32
|
|
36
|
-
|
33
|
+
## Tips and Tricks
|
34
|
+
Working with headers will require calling the `WithHttpInfo` version of the function. This allows for grabbing the header directly from the response object:
|
35
|
+
```ruby
|
36
|
+
# Note: This code is specifically designed to not modify any existing data
|
37
|
+
dispatch_api = RusticiSoftwareCloudV2::DispatchApi.new
|
38
|
+
response = dispatch_api.update_dispatches_with_http_info(RusticiSoftwareCloudV2::UpdateDispatchSchema.new, {since: Time.now.strftime('%Y-%m-%dT%H:%M:%S.%L') + 'Z'})
|
39
|
+
puts response[2]["X-Total-Count"]
|
40
|
+
```
|
37
41
|
|
38
|
-
|
42
|
+
## Release 2.0.X:
|
43
|
+
Check the [changelog](https://cloud.scorm.com/docs/v2/reference/changelog/) for details of what has changed.
|
39
44
|
|
40
|
-
|
45
|
+
## Sample Code
|
46
|
+
```ruby
|
47
|
+
require 'rustici_software_cloud_v2'
|
48
|
+
require 'open-uri'
|
49
|
+
include RusticiSoftwareCloudV2
|
41
50
|
|
42
|
-
### Include the Ruby code directly
|
43
51
|
|
44
|
-
|
52
|
+
# ScormCloud API credentials
|
53
|
+
# Note: These are not the same credentials used to log in to ScormCloud
|
54
|
+
APP_ID = 'APP_ID'
|
55
|
+
SECRET_KEY = 'SECRET_KEY'
|
45
56
|
|
46
|
-
|
47
|
-
|
48
|
-
```
|
57
|
+
# Sample values for data
|
58
|
+
COURSE_PATH = '/PATH/TO/COURSE/RunTimeAdvancedCalls_SCORM20043rdEdition.zip'
|
49
59
|
|
50
|
-
|
60
|
+
COURSE_ID = 'RB_SAMPLE_COURSE'
|
61
|
+
LEARNER_ID = 'RB_SAMPLE_COURSE_LEARNER'
|
62
|
+
REGISTRATION_ID = 'RB_SAMPLE_COURSE_REGISTRATION'
|
51
63
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
64
|
+
# String used for output formatting
|
65
|
+
OUTPUT_BORDER = "---------------------------------------------------------\n\n"
|
66
|
+
|
67
|
+
|
68
|
+
# This sample will consist of:
|
69
|
+
# 1. Creating a course.
|
70
|
+
# 2. Registering a learner for the course.
|
71
|
+
# 3. Building a link for the learner to take the course.
|
72
|
+
# 4. Getting the learner's progress after having taken the course.
|
73
|
+
# 5. Viewing all courses and registrations.
|
74
|
+
# 6. Deleting all of the data created via this sample.
|
75
|
+
#
|
76
|
+
# All input variables used in this sample are defined up above.
|
77
|
+
def main()
|
78
|
+
RusticiSoftwareCloudV2.configure do |config|
|
79
|
+
# Configure HTTP basic authorization: APP_NORMAL
|
80
|
+
config.username = APP_ID
|
81
|
+
config.password = SECRET_KEY
|
82
|
+
end
|
83
|
+
|
84
|
+
sc = ScormCloud_Ruby_Sample.new
|
85
|
+
|
86
|
+
begin
|
87
|
+
# Create a course and a registration
|
88
|
+
course_details = sc.create_course(COURSE_ID, COURSE_PATH)
|
89
|
+
sc.create_registration(COURSE_ID, LEARNER_ID, REGISTRATION_ID)
|
90
|
+
|
91
|
+
# Show details of the newly imported course
|
92
|
+
puts 'Newly Imported Course Details: '
|
93
|
+
puts course_details
|
56
94
|
|
57
|
-
# Setup authorization
|
58
|
-
RusticiSoftwareCloudV2.configure do |config|
|
59
|
-
# Configure HTTP basic authorization: APP_NORMAL
|
60
|
-
config.username = 'YOUR USERNAME'
|
61
|
-
config.password = 'YOUR PASSWORD'
|
62
95
|
|
63
|
-
# Configure OAuth2 access token for authorization: OAUTH
|
64
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
65
|
-
end
|
66
96
|
|
67
|
-
|
97
|
+
# Create the registration launch link
|
98
|
+
launch_link = sc.build_launch_link(REGISTRATION_ID)
|
68
99
|
|
69
|
-
|
100
|
+
# Show the launch link
|
101
|
+
puts OUTPUT_BORDER
|
102
|
+
puts "Launck Link: #{launch_link}"
|
103
|
+
puts 'Navigate to the url above to take the course. Hit enter once complete.'
|
104
|
+
gets
|
70
105
|
|
71
106
|
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
107
|
+
|
108
|
+
# Get the results for the registration
|
109
|
+
registration_progress = sc.get_result_for_registration(REGISTRATION_ID)
|
110
|
+
|
111
|
+
# Show details of the registration progress
|
112
|
+
puts OUTPUT_BORDER
|
113
|
+
puts 'Registration Progress: '
|
114
|
+
puts registration_progress
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
# Get information about all the courses in ScormCloud
|
119
|
+
course_list = sc.get_all_courses()
|
120
|
+
|
121
|
+
# Show details of the courses
|
122
|
+
puts OUTPUT_BORDER
|
123
|
+
puts 'Course List: '
|
124
|
+
course_list.each do |course|
|
125
|
+
puts course
|
126
|
+
end
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
# Get information about all the registrations in ScormCloud
|
131
|
+
registration_list = sc.get_all_registrations()
|
132
|
+
|
133
|
+
# Show details of the registrations
|
134
|
+
puts OUTPUT_BORDER
|
135
|
+
puts 'Registration List: '
|
136
|
+
registration_list.each do |registration|
|
137
|
+
puts registration
|
138
|
+
end
|
139
|
+
|
140
|
+
rescue ApiError, ArgumentError => error
|
141
|
+
puts error
|
142
|
+
|
143
|
+
ensure
|
144
|
+
# Delete all the data created by this sample
|
145
|
+
sc.clean_up(COURSE_ID, REGISTRATION_ID)
|
146
|
+
|
147
|
+
end
|
78
148
|
end
|
79
149
|
|
80
|
-
|
150
|
+
class ScormCloud_Ruby_Sample
|
151
|
+
|
152
|
+
# Sets the default OAuth token passed with all calls to the API.
|
153
|
+
#
|
154
|
+
# If a token is created with limited scope (i.e. read:registration),
|
155
|
+
# calls that require a different permission set will error. Either a
|
156
|
+
# new token needs to be generated with the correct scope, or the
|
157
|
+
# default access token can be reset to nil. This would cause the
|
158
|
+
# request to be made with basic auth credentials (appId/ secret key)
|
159
|
+
# instead.
|
160
|
+
#
|
161
|
+
# Additionally, you could create a new configuration object and set
|
162
|
+
# the token on that object instead of the default access token. This
|
163
|
+
# configuration would then be passed into the Api object:
|
164
|
+
#
|
165
|
+
# config = Configuration.new
|
166
|
+
# token_request = TokenRequestSchema.new({
|
167
|
+
# permissions: PermissionsSchema.new({
|
168
|
+
# scopes: [ "write:course", "read:course" ]
|
169
|
+
# }),
|
170
|
+
# expiry: (Time.now + 2 * 60).iso8601
|
171
|
+
# })
|
172
|
+
# config.access_token = app_management_api.create_token(token_request).result
|
173
|
+
# course_api = CourseApi.new(ApiClient.new(config))
|
174
|
+
#
|
175
|
+
# Any calls that would use this CourseApi instance would then have the
|
176
|
+
# write:course and read:course permissions passed automatically, but
|
177
|
+
# other instances would be unaffected and continue to use other means
|
178
|
+
# of authorization.
|
179
|
+
#
|
180
|
+
# @param [Array<String>] :scopes List of permissions for calls made with the token.
|
181
|
+
private def configure_oauth(scopes)
|
182
|
+
app_management_api = ApplicationManagementApi.new
|
183
|
+
|
184
|
+
# Set permissions and expiry time of the token
|
185
|
+
# The expiry expected for token request must be in ISO-8601 format
|
186
|
+
expiry = (Time.now + 2 * 60).iso8601
|
187
|
+
permissions = PermissionsSchema.new({ scopes: scopes })
|
188
|
+
|
189
|
+
# Make the request to get the OAuth token
|
190
|
+
token_request = TokenRequestSchema.new({ permissions: permissions, expiry: expiry })
|
191
|
+
token_result = app_management_api.create_token(token_request)
|
192
|
+
|
193
|
+
# Set the default access token used with further API requests.
|
194
|
+
# To remove the token, reset config.access_token back to nil
|
195
|
+
# before the next call.
|
196
|
+
RusticiSoftwareCloudV2.configure do |config|
|
197
|
+
config.access_token = token_result.result
|
198
|
+
end
|
199
|
+
|
200
|
+
nil
|
201
|
+
end
|
202
|
+
|
203
|
+
# Creates a course by uploading the course from your local machine.
|
204
|
+
# Courses are a package of content for a learner to consume.
|
205
|
+
#
|
206
|
+
# Other methods for importing a course exist. Check the documentation
|
207
|
+
# for additional ways of importing a course.
|
208
|
+
#
|
209
|
+
# @param [String] :course_id Id that will be used to identify the course.
|
210
|
+
# @param [String] :course_path Path to the course being uploaded.
|
211
|
+
# @return [CourseSchema] Detailed information about the newly uploaded course.
|
212
|
+
def create_course(course_id, course_path)
|
213
|
+
# (Optional) Further authenticate via OAuth token access
|
214
|
+
# configure_oauth([ "write:course", "read:course" ])
|
215
|
+
|
216
|
+
# This call will use OAuth with the "write:course" scope
|
217
|
+
# if configured. Otherwise the basic auth credentials will be used
|
218
|
+
course_api = CourseApi.new
|
219
|
+
job_id = course_api.create_upload_and_import_course_job(course_id, { file: open(course_path) })
|
220
|
+
|
221
|
+
# This call will use OAuth with the "read:course" scope
|
222
|
+
# if configured. Otherwise the basic auth credentials will be used
|
223
|
+
job_result = course_api.get_import_job_status(job_id.result)
|
224
|
+
while job_result.status == 'RUNNING'
|
225
|
+
sleep(1)
|
226
|
+
job_result = course_api.get_import_job_status(job_id.result)
|
227
|
+
end
|
228
|
+
|
229
|
+
if job_result.status == 'ERROR'
|
230
|
+
raise ArgumentError.new('Course is not properly formatted: ' + job_result.message)
|
231
|
+
end
|
232
|
+
|
233
|
+
job_result.import_result.course
|
234
|
+
end
|
235
|
+
|
236
|
+
# Creates a registration allowing the learner to consume the course
|
237
|
+
# content. A registration is the link between a learner and a single
|
238
|
+
# course.
|
239
|
+
#
|
240
|
+
# @param [String] :course_id Id of the course to register the learner for.
|
241
|
+
# @param [String] :learner_id Id that will be used to identify the learner.
|
242
|
+
# @param [String] :registration_id Id that will be used to identify the registration.
|
243
|
+
def create_registration(course_id, learner_id, registration_id)
|
244
|
+
# (Optional) Further authenticate via OAuth token access
|
245
|
+
# configure_oauth([ "write:registration" ])
|
246
|
+
|
247
|
+
registration_api = RegistrationApi.new
|
248
|
+
learner = LearnerSchema.new({ id: learner_id })
|
249
|
+
registration = CreateRegistrationSchema.new({ courseId: course_id, learner: learner, registrationId: registration_id })
|
250
|
+
registration_api.create_registration(registration)
|
251
|
+
|
252
|
+
nil
|
253
|
+
end
|
254
|
+
|
255
|
+
# Builds a url allowing the learner to access the course.
|
256
|
+
#
|
257
|
+
# This sample will build the launch link and print it out. It will then
|
258
|
+
# pause and wait for user input, allowing you to navigate to the course
|
259
|
+
# to generate sample learner progress. Once this step has been reached,
|
260
|
+
# hitting the enter key will continue program execution.
|
261
|
+
#
|
262
|
+
# @param [String] :registration_id Id of the registration the link is being built for.
|
263
|
+
# @return [String] Link for the learner to launch the course.
|
264
|
+
def build_launch_link(registration_id)
|
265
|
+
# (Optional) Further authenticate via OAuth token access
|
266
|
+
# configure_oauth([ "read:registration" ])
|
267
|
+
|
268
|
+
registration_api = RegistrationApi.new
|
269
|
+
settings = LaunchLinkRequestSchema.new({ redirectOnExitUrl: 'Message' })
|
270
|
+
launch_link = registration_api.build_registration_launch_link(registration_id, settings)
|
271
|
+
|
272
|
+
launch_link.launch_link
|
273
|
+
end
|
274
|
+
|
275
|
+
# Gets information about the progress of the registration.
|
276
|
+
#
|
277
|
+
# For the most up-to-date results, you should implement our postback
|
278
|
+
# mechanism. The basic premise is that any update to the registration
|
279
|
+
# would cause us to send the updated results to your system.
|
280
|
+
#
|
281
|
+
# More details can be found in the documentation:
|
282
|
+
# https://cloud.scorm.com/docs/v2/guides/postback/
|
283
|
+
#
|
284
|
+
# @param [String] :registration_id Id of the registration to get results for.
|
285
|
+
# @return [RegistrationSchema] Detailed information about the registration's progress.
|
286
|
+
def get_result_for_registration(registration_id)
|
287
|
+
# (Optional) Further authenticate via OAuth token access
|
288
|
+
# configure_oauth([ "read:registration" ])
|
289
|
+
|
290
|
+
registration_api = RegistrationApi.new
|
291
|
+
progress = registration_api.get_registration_progress(registration_id)
|
292
|
+
|
293
|
+
progress
|
294
|
+
end
|
295
|
+
|
296
|
+
# Gets information about all courses. The result received from the API
|
297
|
+
# call is a paginated list, meaning that additional calls are required
|
298
|
+
# to retrieve all the information from the API. This has already been
|
299
|
+
# accounted for in the sample.
|
300
|
+
#
|
301
|
+
# @return [Array<CourseSchema>] List of detailed information about all of the courses.
|
302
|
+
def get_all_courses()
|
303
|
+
# (Optional) Further authenticate via OAuth token access
|
304
|
+
# configure_oauth([ "read:course" ])
|
305
|
+
|
306
|
+
# Additional filters can be provided to this call to get a subset
|
307
|
+
# of all courses.
|
308
|
+
course_api = CourseApi.new
|
309
|
+
response = course_api.get_courses()
|
310
|
+
|
311
|
+
# This call is paginated, with a token provided if more results exist
|
312
|
+
course_list = response.courses
|
313
|
+
until response.more.nil?
|
314
|
+
response = course_api.get_courses({ more: response.more })
|
315
|
+
course_list += response.courses
|
316
|
+
end
|
317
|
+
|
318
|
+
course_list
|
319
|
+
end
|
320
|
+
|
321
|
+
# Gets information about the registration progress for all
|
322
|
+
# registrations. The result received from the API call is a paginated
|
323
|
+
# list, meaning that additional calls are required to retrieve all the
|
324
|
+
# information from the API. This has already been accounted for in the
|
325
|
+
# sample.
|
326
|
+
#
|
327
|
+
# This call can be quite time-consuming and tedious with lots of
|
328
|
+
# registrations. If you find yourself making lots of calls to this
|
329
|
+
# endpoint, it might be worthwhile to look into registration postbacks.
|
330
|
+
#
|
331
|
+
# More details can be found in the documentation:
|
332
|
+
# https://cloud.scorm.com/docs/v2/guides/postback/
|
333
|
+
#
|
334
|
+
# @return [Array<RegistrationSchema>] List of detailed information about all of the registrations.
|
335
|
+
def get_all_registrations()
|
336
|
+
# (Optional) Further authenticate via OAuth token access
|
337
|
+
# configure_oauth([ "read:registration" ])
|
338
|
+
|
339
|
+
# Additional filters can be provided to this call to get a subset
|
340
|
+
# of all registrations.
|
341
|
+
registration_api = RegistrationApi.new
|
342
|
+
response = registration_api.get_registrations()
|
343
|
+
|
344
|
+
# This call is paginated, with a token provided if more results exist
|
345
|
+
registration_list = response.registrations
|
346
|
+
until response.more.nil?
|
347
|
+
response = registration_api.get_registrations({ more: response.more })
|
348
|
+
registration_list += response.registrations
|
349
|
+
end
|
350
|
+
|
351
|
+
registration_list
|
352
|
+
end
|
353
|
+
|
354
|
+
# Deletes all of the data generated by this sample.
|
355
|
+
# This code is run even if the program has errored out, providing a
|
356
|
+
# "clean slate" for every run of this sample.
|
357
|
+
#
|
358
|
+
# It is not necessary to delete registrations if the course
|
359
|
+
# they belong to has been deleted. Deleting the course will
|
360
|
+
# automatically queue deletion of all registrations associated with
|
361
|
+
# the course. There will be a delay between when the course is deleted
|
362
|
+
# and when the registrations for the course have been removed. The
|
363
|
+
# registration deletion has been handled here to prevent scenarios
|
364
|
+
# where the registration hasn't been deleted yet by the time the
|
365
|
+
# sample has been rerun.
|
366
|
+
#
|
367
|
+
# @param [String] :course_id Id of the course to delete.
|
368
|
+
# @param [String] :registration_id Id of the registration to delete.
|
369
|
+
def clean_up(course_id, registration_id)
|
370
|
+
# (Optional) Further authenticate via OAuth token access
|
371
|
+
# configure_oauth([ "delete:course", "delete:registration" ])
|
372
|
+
|
373
|
+
# This call will use OAuth with the "delete:course" scope
|
374
|
+
# if configured. Otherwise the basic auth credentials will be used
|
375
|
+
course_api = CourseApi.new
|
376
|
+
course_api.delete_course(course_id)
|
377
|
+
|
378
|
+
# The code below is to prevent race conditions if the
|
379
|
+
# sample is run in quick successions.
|
380
|
+
|
381
|
+
# This call will use OAuth with the "delete:registration" scope
|
382
|
+
# if configured. Otherwise the basic auth credentials will be used
|
383
|
+
registration_api = RegistrationApi.new
|
384
|
+
registration_api.delete_registration(registration_id)
|
385
|
+
|
386
|
+
nil
|
387
|
+
end
|
388
|
+
end
|
81
389
|
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
Class | Method | HTTP request | Description
|
87
|
-
------------ | ------------- | ------------- | -------------
|
88
|
-
*RusticiSoftwareCloudV2::ApplicationManagementApi* | [**create_application**](docs/ApplicationManagementApi.md#create_application) | **PUT** /appManagement/applications/{applicationName} | Create a new application
|
89
|
-
*RusticiSoftwareCloudV2::ApplicationManagementApi* | [**create_credential**](docs/ApplicationManagementApi.md#create_credential) | **POST** /appManagement/{childAppId}/credentials | Create credential
|
90
|
-
*RusticiSoftwareCloudV2::ApplicationManagementApi* | [**create_token**](docs/ApplicationManagementApi.md#create_token) | **POST** /appManagement/token | Create token
|
91
|
-
*RusticiSoftwareCloudV2::ApplicationManagementApi* | [**delete_application**](docs/ApplicationManagementApi.md#delete_application) | **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.
|
92
|
-
*RusticiSoftwareCloudV2::ApplicationManagementApi* | [**delete_credential**](docs/ApplicationManagementApi.md#delete_credential) | **DELETE** /appManagement/{childAppId}/credentials/{credentialId} | Removes `credentialId` credentials
|
93
|
-
*RusticiSoftwareCloudV2::ApplicationManagementApi* | [**get_application_configuration**](docs/ApplicationManagementApi.md#get_application_configuration) | **GET** /appManagement/configuration | Returns all configuration settings for this level
|
94
|
-
*RusticiSoftwareCloudV2::ApplicationManagementApi* | [**get_application_list**](docs/ApplicationManagementApi.md#get_application_list) | **GET** /appManagement/applications | Get list of all applications in this realm.
|
95
|
-
*RusticiSoftwareCloudV2::ApplicationManagementApi* | [**get_credentials**](docs/ApplicationManagementApi.md#get_credentials) | **GET** /appManagement/{childAppId}/credentials | List of credentials
|
96
|
-
*RusticiSoftwareCloudV2::ApplicationManagementApi* | [**set_application_configuration**](docs/ApplicationManagementApi.md#set_application_configuration) | **POST** /appManagement/configuration | Set configuration settings for this level.
|
97
|
-
*RusticiSoftwareCloudV2::ApplicationManagementApi* | [**update_credential**](docs/ApplicationManagementApi.md#update_credential) | **PUT** /appManagement/{childAppId}/credentials/{credentialId} | Update the name or status associated with `credentialId`
|
98
|
-
*RusticiSoftwareCloudV2::AuthenticationApi* | [**get_app_token**](docs/AuthenticationApi.md#get_app_token) | **POST** /oauth/authenticate/application/token | Authenticates for a oauth token
|
99
|
-
*RusticiSoftwareCloudV2::CourseApi* | [**build_course_preview_launch_link**](docs/CourseApi.md#build_course_preview_launch_link) | **POST** /courses/{courseId}/preview | Returns the launch link to use to preview this course
|
100
|
-
*RusticiSoftwareCloudV2::CourseApi* | [**build_course_preview_launch_link_with_version**](docs/CourseApi.md#build_course_preview_launch_link_with_version) | **POST** /courses/{courseId}/versions/{versionId}/preview | Returns the link to use to preview this course
|
101
|
-
*RusticiSoftwareCloudV2::CourseApi* | [**create_fetch_and_import_course_job**](docs/CourseApi.md#create_fetch_and_import_course_job) | **POST** /courses/importJobs | Start a job to fetch and import a course.
|
102
|
-
*RusticiSoftwareCloudV2::CourseApi* | [**create_upload_and_import_course_job**](docs/CourseApi.md#create_upload_and_import_course_job) | **POST** /courses/importJobs/upload | Upload a course and start an import job for it.
|
103
|
-
*RusticiSoftwareCloudV2::CourseApi* | [**delete_course**](docs/CourseApi.md#delete_course) | **DELETE** /courses/{courseId} | Delete `courseId`
|
104
|
-
*RusticiSoftwareCloudV2::CourseApi* | [**delete_course_configuration_setting**](docs/CourseApi.md#delete_course_configuration_setting) | **DELETE** /courses/{courseId}/configuration/{settingId} | Clears the `settingId` value for this course
|
105
|
-
*RusticiSoftwareCloudV2::CourseApi* | [**delete_course_tags**](docs/CourseApi.md#delete_course_tags) | **DELETE** /courses/{courseId}/tags | Delete tags for this course
|
106
|
-
*RusticiSoftwareCloudV2::CourseApi* | [**delete_course_version**](docs/CourseApi.md#delete_course_version) | **DELETE** /courses/{courseId}/versions/{versionId} | Delete version `versionId` of `courseId`
|
107
|
-
*RusticiSoftwareCloudV2::CourseApi* | [**delete_course_version_configuration_setting**](docs/CourseApi.md#delete_course_version_configuration_setting) | **DELETE** /courses/{courseId}/versions/{versionId}/configuration/{settingId} | Clears the `settingId` value for this course and version.
|
108
|
-
*RusticiSoftwareCloudV2::CourseApi* | [**get_course**](docs/CourseApi.md#get_course) | **GET** /courses/{courseId} | Get information about `courseId`
|
109
|
-
*RusticiSoftwareCloudV2::CourseApi* | [**get_course_configuration**](docs/CourseApi.md#get_course_configuration) | **GET** /courses/{courseId}/configuration | Returns all configuration settings for this course
|
110
|
-
*RusticiSoftwareCloudV2::CourseApi* | [**get_course_statements**](docs/CourseApi.md#get_course_statements) | **GET** /courses/{courseId}/xAPIStatements | Get xAPI statements for `courseId`
|
111
|
-
*RusticiSoftwareCloudV2::CourseApi* | [**get_course_tags**](docs/CourseApi.md#get_course_tags) | **GET** /courses/{courseId}/tags | Get the tags for this course
|
112
|
-
*RusticiSoftwareCloudV2::CourseApi* | [**get_course_version_configuration**](docs/CourseApi.md#get_course_version_configuration) | **GET** /courses/{courseId}/versions/{versionId}/configuration | Returns all configuration settings for this course and version.
|
113
|
-
*RusticiSoftwareCloudV2::CourseApi* | [**get_course_version_info**](docs/CourseApi.md#get_course_version_info) | **GET** /courses/{courseId}/versions/{versionId} | Get version `versionId` of `courseId`
|
114
|
-
*RusticiSoftwareCloudV2::CourseApi* | [**get_course_version_statements**](docs/CourseApi.md#get_course_version_statements) | **GET** /courses/{courseId}/versions/{versionId}/xAPIStatements | Get xAPI statements for version `versionId` of `courseId`
|
115
|
-
*RusticiSoftwareCloudV2::CourseApi* | [**get_course_versions**](docs/CourseApi.md#get_course_versions) | **GET** /courses/{courseId}/versions | Get all versions of `courseId`
|
116
|
-
*RusticiSoftwareCloudV2::CourseApi* | [**get_courses**](docs/CourseApi.md#get_courses) | **GET** /courses | Get all courses for `appId`
|
117
|
-
*RusticiSoftwareCloudV2::CourseApi* | [**get_import_job_status**](docs/CourseApi.md#get_import_job_status) | **GET** /courses/importJobs/{importJobId} | Check the status of an import job.
|
118
|
-
*RusticiSoftwareCloudV2::CourseApi* | [**put_course_tags**](docs/CourseApi.md#put_course_tags) | **PUT** /courses/{courseId}/tags | Set the tags for this course
|
119
|
-
*RusticiSoftwareCloudV2::CourseApi* | [**put_course_tags_batch**](docs/CourseApi.md#put_course_tags_batch) | **PUT** /courses/tags | Sets all of the provided tags on all of the provided courses
|
120
|
-
*RusticiSoftwareCloudV2::CourseApi* | [**set_course_configuration**](docs/CourseApi.md#set_course_configuration) | **POST** /courses/{courseId}/configuration | Set configuration settings for this course.
|
121
|
-
*RusticiSoftwareCloudV2::CourseApi* | [**set_course_title**](docs/CourseApi.md#set_course_title) | **PUT** /courses/{courseId}/title | Sets the course title for `courseId`
|
122
|
-
*RusticiSoftwareCloudV2::CourseApi* | [**set_course_version_configuration**](docs/CourseApi.md#set_course_version_configuration) | **POST** /courses/{courseId}/versions/{versionId}/configuration | Set configuration settings for this course and version.
|
123
|
-
*RusticiSoftwareCloudV2::PingApi* | [**ping_app_id**](docs/PingApi.md#ping_app_id) | **GET** /ping | Get back a message indicating that the API is working.
|
124
|
-
*RusticiSoftwareCloudV2::RegistrationApi* | [**create_new_registration_instance**](docs/RegistrationApi.md#create_new_registration_instance) | **POST** /registrations/{registrationId}/instances | Create a new instance for this registration specified by the registration ID
|
125
|
-
*RusticiSoftwareCloudV2::RegistrationApi* | [**create_registration**](docs/RegistrationApi.md#create_registration) | **POST** /registrations | Create a registration.
|
126
|
-
*RusticiSoftwareCloudV2::RegistrationApi* | [**delete_registration**](docs/RegistrationApi.md#delete_registration) | **DELETE** /registrations/{registrationId} | Delete `registrationId`
|
127
|
-
*RusticiSoftwareCloudV2::RegistrationApi* | [**delete_registration_configuration_setting**](docs/RegistrationApi.md#delete_registration_configuration_setting) | **DELETE** /registrations/{registrationId}/configuration/{settingId} | Clears the `settingId` value for this registration
|
128
|
-
*RusticiSoftwareCloudV2::RegistrationApi* | [**delete_registration_instance_configuration_setting**](docs/RegistrationApi.md#delete_registration_instance_configuration_setting) | **DELETE** /registrations/{registrationId}/instances/{instanceId}/configuration/{settingId} | Clears the `settingId` value for this registration instance
|
129
|
-
*RusticiSoftwareCloudV2::RegistrationApi* | [**delete_registration_progress**](docs/RegistrationApi.md#delete_registration_progress) | **DELETE** /registrations/{registrationId}/progress | Delete registration progress (clear registration)
|
130
|
-
*RusticiSoftwareCloudV2::RegistrationApi* | [**delete_registration_tags**](docs/RegistrationApi.md#delete_registration_tags) | **DELETE** /registrations/{registrationId}/tags | Delete tags for this registration
|
131
|
-
*RusticiSoftwareCloudV2::RegistrationApi* | [**delete_registrations_global_data**](docs/RegistrationApi.md#delete_registrations_global_data) | **DELETE** /registrations/{registrationId}/globalData | Delete global data associated with `registrationId`
|
132
|
-
*RusticiSoftwareCloudV2::RegistrationApi* | [**get_registration_configuration**](docs/RegistrationApi.md#get_registration_configuration) | **GET** /registrations/{registrationId}/configuration | Returns all configuration settings for this registration
|
133
|
-
*RusticiSoftwareCloudV2::RegistrationApi* | [**get_registration_instance_configuration**](docs/RegistrationApi.md#get_registration_instance_configuration) | **GET** /registrations/{registrationId}/instances/{instanceId}/configuration | Returns all configuration settings for this registration instance
|
134
|
-
*RusticiSoftwareCloudV2::RegistrationApi* | [**get_registration_instance_launch_history**](docs/RegistrationApi.md#get_registration_instance_launch_history) | **GET** /registrations/{registrationId}/instances/{instanceId}/launchHistory | Returns history of this registration's launches
|
135
|
-
*RusticiSoftwareCloudV2::RegistrationApi* | [**get_registration_instance_progress**](docs/RegistrationApi.md#get_registration_instance_progress) | **GET** /registrations/{registrationId}/instances/{instanceId} | Get registration progress for instance `instanceId` of `registrationId`
|
136
|
-
*RusticiSoftwareCloudV2::RegistrationApi* | [**get_registration_instance_statements**](docs/RegistrationApi.md#get_registration_instance_statements) | **GET** /registrations/{registrationId}/instances/{instanceId}/xAPIStatements | Get xAPI statements for instance `instanceId` of `registrationId`
|
137
|
-
*RusticiSoftwareCloudV2::RegistrationApi* | [**get_registration_instances**](docs/RegistrationApi.md#get_registration_instances) | **GET** /registrations/{registrationId}/instances | Get all the instances of this the registration specified by the registration ID
|
138
|
-
*RusticiSoftwareCloudV2::RegistrationApi* | [**get_registration_launch_history**](docs/RegistrationApi.md#get_registration_launch_history) | **GET** /registrations/{registrationId}/launchHistory | Returns history of this registration's launches
|
139
|
-
*RusticiSoftwareCloudV2::RegistrationApi* | [**get_registration_launch_link**](docs/RegistrationApi.md#get_registration_launch_link) | **POST** /registrations/{registrationId}/launchLink | Returns the link to use to launch this registration
|
140
|
-
*RusticiSoftwareCloudV2::RegistrationApi* | [**get_registration_progress**](docs/RegistrationApi.md#get_registration_progress) | **GET** /registrations/{registrationId} | Get registration progress for `registrationId`
|
141
|
-
*RusticiSoftwareCloudV2::RegistrationApi* | [**get_registration_statements**](docs/RegistrationApi.md#get_registration_statements) | **GET** /registrations/{registrationId}/xAPIStatements | Get xAPI statements for `registrationId`
|
142
|
-
*RusticiSoftwareCloudV2::RegistrationApi* | [**get_registration_tags**](docs/RegistrationApi.md#get_registration_tags) | **GET** /registrations/{registrationId}/tags | Get the tags for this registration
|
143
|
-
*RusticiSoftwareCloudV2::RegistrationApi* | [**get_registrations**](docs/RegistrationApi.md#get_registrations) | **GET** /registrations | Gets a list of registrations including a summary of the status of each registration.
|
144
|
-
*RusticiSoftwareCloudV2::RegistrationApi* | [**put_registration_tags**](docs/RegistrationApi.md#put_registration_tags) | **PUT** /registrations/{registrationId}/tags | Set the tags for this registration
|
145
|
-
*RusticiSoftwareCloudV2::RegistrationApi* | [**put_registration_tags_batch**](docs/RegistrationApi.md#put_registration_tags_batch) | **PUT** /registrations/tags | Sets all of the provided tags on all of the provided registrations
|
146
|
-
*RusticiSoftwareCloudV2::RegistrationApi* | [**registration_exists**](docs/RegistrationApi.md#registration_exists) | **HEAD** /registrations/{registrationId} | Does this registration exist?
|
147
|
-
*RusticiSoftwareCloudV2::RegistrationApi* | [**set_registration_configuration**](docs/RegistrationApi.md#set_registration_configuration) | **POST** /registrations/{registrationId}/configuration | Set configuration settings for this registration.
|
148
|
-
*RusticiSoftwareCloudV2::RegistrationApi* | [**set_registration_instance_configuration**](docs/RegistrationApi.md#set_registration_instance_configuration) | **POST** /registrations/{registrationId}/instances/{instanceId}/configuration | Set configuration settings for this registration instance.
|
149
|
-
|
150
|
-
|
151
|
-
## Documentation for Models
|
152
|
-
|
153
|
-
- [RusticiSoftwareCloudV2::ActivityResultSchema](docs/ActivityResultSchema.md)
|
154
|
-
- [RusticiSoftwareCloudV2::ApplicationListSchema](docs/ApplicationListSchema.md)
|
155
|
-
- [RusticiSoftwareCloudV2::ApplicationSchema](docs/ApplicationSchema.md)
|
156
|
-
- [RusticiSoftwareCloudV2::ApplicationToken](docs/ApplicationToken.md)
|
157
|
-
- [RusticiSoftwareCloudV2::CommentSchema](docs/CommentSchema.md)
|
158
|
-
- [RusticiSoftwareCloudV2::CompletionAmountSchema](docs/CompletionAmountSchema.md)
|
159
|
-
- [RusticiSoftwareCloudV2::CourseActivitySchema](docs/CourseActivitySchema.md)
|
160
|
-
- [RusticiSoftwareCloudV2::CourseListNonPagedSchema](docs/CourseListNonPagedSchema.md)
|
161
|
-
- [RusticiSoftwareCloudV2::CourseListSchema](docs/CourseListSchema.md)
|
162
|
-
- [RusticiSoftwareCloudV2::CourseReferenceSchema](docs/CourseReferenceSchema.md)
|
163
|
-
- [RusticiSoftwareCloudV2::CourseSchema](docs/CourseSchema.md)
|
164
|
-
- [RusticiSoftwareCloudV2::CourseTagsBatchSchema](docs/CourseTagsBatchSchema.md)
|
165
|
-
- [RusticiSoftwareCloudV2::CreateRegistrationSchema](docs/CreateRegistrationSchema.md)
|
166
|
-
- [RusticiSoftwareCloudV2::CredentialCreatedSchema](docs/CredentialCreatedSchema.md)
|
167
|
-
- [RusticiSoftwareCloudV2::CredentialListSchema](docs/CredentialListSchema.md)
|
168
|
-
- [RusticiSoftwareCloudV2::CredentialRequestSchema](docs/CredentialRequestSchema.md)
|
169
|
-
- [RusticiSoftwareCloudV2::CredentialSchema](docs/CredentialSchema.md)
|
170
|
-
- [RusticiSoftwareCloudV2::ImportFetchRequestSchema](docs/ImportFetchRequestSchema.md)
|
171
|
-
- [RusticiSoftwareCloudV2::ImportJobResultSchema](docs/ImportJobResultSchema.md)
|
172
|
-
- [RusticiSoftwareCloudV2::ImportResultSchema](docs/ImportResultSchema.md)
|
173
|
-
- [RusticiSoftwareCloudV2::IntegerResultSchema](docs/IntegerResultSchema.md)
|
174
|
-
- [RusticiSoftwareCloudV2::ItemValuePairSchema](docs/ItemValuePairSchema.md)
|
175
|
-
- [RusticiSoftwareCloudV2::LaunchHistoryListSchema](docs/LaunchHistoryListSchema.md)
|
176
|
-
- [RusticiSoftwareCloudV2::LaunchHistorySchema](docs/LaunchHistorySchema.md)
|
177
|
-
- [RusticiSoftwareCloudV2::LaunchLinkRequestSchema](docs/LaunchLinkRequestSchema.md)
|
178
|
-
- [RusticiSoftwareCloudV2::LaunchLinkSchema](docs/LaunchLinkSchema.md)
|
179
|
-
- [RusticiSoftwareCloudV2::LearnerPreferenceSchema](docs/LearnerPreferenceSchema.md)
|
180
|
-
- [RusticiSoftwareCloudV2::LearnerSchema](docs/LearnerSchema.md)
|
181
|
-
- [RusticiSoftwareCloudV2::LinkSchema](docs/LinkSchema.md)
|
182
|
-
- [RusticiSoftwareCloudV2::MessageSchema](docs/MessageSchema.md)
|
183
|
-
- [RusticiSoftwareCloudV2::MetadataSchema](docs/MetadataSchema.md)
|
184
|
-
- [RusticiSoftwareCloudV2::ObjectiveSchema](docs/ObjectiveSchema.md)
|
185
|
-
- [RusticiSoftwareCloudV2::PermissionsSchema](docs/PermissionsSchema.md)
|
186
|
-
- [RusticiSoftwareCloudV2::PingSchema](docs/PingSchema.md)
|
187
|
-
- [RusticiSoftwareCloudV2::PostBackSchema](docs/PostBackSchema.md)
|
188
|
-
- [RusticiSoftwareCloudV2::RegistrationCompletion](docs/RegistrationCompletion.md)
|
189
|
-
- [RusticiSoftwareCloudV2::RegistrationListSchema](docs/RegistrationListSchema.md)
|
190
|
-
- [RusticiSoftwareCloudV2::RegistrationSchema](docs/RegistrationSchema.md)
|
191
|
-
- [RusticiSoftwareCloudV2::RegistrationSuccess](docs/RegistrationSuccess.md)
|
192
|
-
- [RusticiSoftwareCloudV2::RegistrationTagsBatchSchema](docs/RegistrationTagsBatchSchema.md)
|
193
|
-
- [RusticiSoftwareCloudV2::ResponseError](docs/ResponseError.md)
|
194
|
-
- [RusticiSoftwareCloudV2::RuntimeInteractionSchema](docs/RuntimeInteractionSchema.md)
|
195
|
-
- [RusticiSoftwareCloudV2::RuntimeObjectiveSchema](docs/RuntimeObjectiveSchema.md)
|
196
|
-
- [RusticiSoftwareCloudV2::RuntimeSchema](docs/RuntimeSchema.md)
|
197
|
-
- [RusticiSoftwareCloudV2::ScoreSchema](docs/ScoreSchema.md)
|
198
|
-
- [RusticiSoftwareCloudV2::SettingItem](docs/SettingItem.md)
|
199
|
-
- [RusticiSoftwareCloudV2::SettingListSchema](docs/SettingListSchema.md)
|
200
|
-
- [RusticiSoftwareCloudV2::SettingMetadata](docs/SettingMetadata.md)
|
201
|
-
- [RusticiSoftwareCloudV2::SettingValidValue](docs/SettingValidValue.md)
|
202
|
-
- [RusticiSoftwareCloudV2::SettingsIndividualSchema](docs/SettingsIndividualSchema.md)
|
203
|
-
- [RusticiSoftwareCloudV2::SettingsPostSchema](docs/SettingsPostSchema.md)
|
204
|
-
- [RusticiSoftwareCloudV2::SharedDataEntrySchema](docs/SharedDataEntrySchema.md)
|
205
|
-
- [RusticiSoftwareCloudV2::StaticPropertiesSchema](docs/StaticPropertiesSchema.md)
|
206
|
-
- [RusticiSoftwareCloudV2::StringResultSchema](docs/StringResultSchema.md)
|
207
|
-
- [RusticiSoftwareCloudV2::TagListSchema](docs/TagListSchema.md)
|
208
|
-
- [RusticiSoftwareCloudV2::TagPostSchema](docs/TagPostSchema.md)
|
209
|
-
- [RusticiSoftwareCloudV2::TitleSchema](docs/TitleSchema.md)
|
210
|
-
- [RusticiSoftwareCloudV2::TokenRequestSchema](docs/TokenRequestSchema.md)
|
211
|
-
- [RusticiSoftwareCloudV2::XapiAccount](docs/XapiAccount.md)
|
212
|
-
- [RusticiSoftwareCloudV2::XapiActivity](docs/XapiActivity.md)
|
213
|
-
- [RusticiSoftwareCloudV2::XapiActivityDefinition](docs/XapiActivityDefinition.md)
|
214
|
-
- [RusticiSoftwareCloudV2::XapiAgentGroup](docs/XapiAgentGroup.md)
|
215
|
-
- [RusticiSoftwareCloudV2::XapiAttachment](docs/XapiAttachment.md)
|
216
|
-
- [RusticiSoftwareCloudV2::XapiContext](docs/XapiContext.md)
|
217
|
-
- [RusticiSoftwareCloudV2::XapiContextActivity](docs/XapiContextActivity.md)
|
218
|
-
- [RusticiSoftwareCloudV2::XapiInteractionComponent](docs/XapiInteractionComponent.md)
|
219
|
-
- [RusticiSoftwareCloudV2::XapiResult](docs/XapiResult.md)
|
220
|
-
- [RusticiSoftwareCloudV2::XapiScore](docs/XapiScore.md)
|
221
|
-
- [RusticiSoftwareCloudV2::XapiStatement](docs/XapiStatement.md)
|
222
|
-
- [RusticiSoftwareCloudV2::XapiStatementReference](docs/XapiStatementReference.md)
|
223
|
-
- [RusticiSoftwareCloudV2::XapiStatementResult](docs/XapiStatementResult.md)
|
224
|
-
- [RusticiSoftwareCloudV2::XapiVerb](docs/XapiVerb.md)
|
225
|
-
|
226
|
-
|
227
|
-
## Documentation for Authorization
|
228
|
-
|
229
|
-
|
230
|
-
### APP_MANAGEMENT
|
231
|
-
|
232
|
-
- **Type**: HTTP basic authentication
|
233
|
-
|
234
|
-
### APP_NORMAL
|
235
|
-
|
236
|
-
- **Type**: HTTP basic authentication
|
237
|
-
|
238
|
-
### LAUNCH_TOKEN
|
239
|
-
|
240
|
-
- **Type**: API key
|
241
|
-
- **API key parameter name**: launchToken
|
242
|
-
- **Location**: URL query string
|
243
|
-
|
244
|
-
### OAUTH
|
245
|
-
|
246
|
-
- **Type**: OAuth
|
247
|
-
- **Flow**: application
|
248
|
-
- **Authorization URL**:
|
249
|
-
- **Scopes**:
|
250
|
-
- read: Grants read access
|
251
|
-
- write: Grants write access
|
252
|
-
- delete: Grants deletion access
|
253
|
-
- admin: Grants read, write, and account management access
|
254
|
-
- read:course: Grants read access to course methods
|
255
|
-
- write:course: Grants write access to course methods
|
256
|
-
- delete:course: Grants deletion access to course methods
|
257
|
-
- read:dispatch: Grants read access to dispatch methods
|
258
|
-
- write:dispatch: Grants write access to dispatch methods
|
259
|
-
- delete:dispatch: Grants deletion access to dispatch methods
|
260
|
-
- read:invitation: Grants read access to invitation methods
|
261
|
-
- write:invitation: Grants write access to invitation methods
|
262
|
-
- delete:invitation: Grants deletion access to invitation methods
|
263
|
-
- read:ping: Grants read access to the ping method
|
264
|
-
- read:registration: Grants read access to registration methods
|
265
|
-
- write:registration: Grants write access to registration methods
|
266
|
-
- delete:registration: Grants deletion access to registration methods
|
267
|
-
- read:reporting: Grants read access to reporting methods
|
268
|
-
- read:xapicredential: Grants read access to xapi credential methods
|
269
|
-
- write:xapicredential: Grants write access to xapi credential methods
|
270
|
-
- delete:xapicredential: Grants deletion access to xapi credential methods
|
271
|
-
- read:xapipipe: Grants read access to xapi pipe methods
|
272
|
-
- write:xapipipe: Grants write access to xapi pipe methods
|
273
|
-
- delete:xapipipe: Grants deletion access to xapi pipe methods
|
274
|
-
- read:appmgmt: Grants read access to app management methods
|
275
|
-
- write:appmgmt: Grants write access to app management methods
|
276
|
-
- delete:appmgmt: Grants deletion access to app management methods
|
277
|
-
|
278
|
-
### URL_TOKEN
|
279
|
-
|
280
|
-
- **Type**: API key
|
281
|
-
- **API key parameter name**: authtoken
|
282
|
-
- **Location**: URL query string
|
390
|
+
if __FILE__ == $0
|
391
|
+
main
|
392
|
+
end
|
283
393
|
|
394
|
+
```
|