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
@@ -0,0 +1,528 @@
|
|
1
|
+
=begin
|
2
|
+
#SCORM Cloud Rest API
|
3
|
+
|
4
|
+
#REST API used for SCORM Cloud integrations.
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.12
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
|
15
|
+
module RusticiSoftwareCloudV2
|
16
|
+
class ZoomiApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Delete the Zoomi keys for an Application
|
23
|
+
# Deletes the Zoomi keys for an application.
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @return [nil]
|
26
|
+
def delete_application_zoomi_keys(opts = {})
|
27
|
+
delete_application_zoomi_keys_with_http_info(opts)
|
28
|
+
nil
|
29
|
+
end
|
30
|
+
|
31
|
+
# Delete the Zoomi keys for an Application
|
32
|
+
# Deletes the Zoomi keys for an application.
|
33
|
+
# @param [Hash] opts the optional parameters
|
34
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
35
|
+
def delete_application_zoomi_keys_with_http_info(opts = {})
|
36
|
+
if @api_client.config.debugging
|
37
|
+
@api_client.config.logger.debug 'Calling API: ZoomiApi.delete_application_zoomi_keys ...'
|
38
|
+
end
|
39
|
+
# resource path
|
40
|
+
local_var_path = '/zoomi/key'
|
41
|
+
|
42
|
+
# query parameters
|
43
|
+
query_params = {}
|
44
|
+
|
45
|
+
# header parameters
|
46
|
+
header_params = {}
|
47
|
+
# HTTP header 'Accept' (if needed)
|
48
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
49
|
+
# HTTP header 'Content-Type'
|
50
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
51
|
+
|
52
|
+
# form parameters
|
53
|
+
form_params = {}
|
54
|
+
|
55
|
+
# http body (model)
|
56
|
+
post_body = nil
|
57
|
+
auth_names = ['APP_NORMAL', 'OAUTH']
|
58
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
59
|
+
:header_params => header_params,
|
60
|
+
:query_params => query_params,
|
61
|
+
:form_params => form_params,
|
62
|
+
:body => post_body,
|
63
|
+
:auth_names => auth_names)
|
64
|
+
if @api_client.config.debugging
|
65
|
+
@api_client.config.logger.debug "API called: ZoomiApi#delete_application_zoomi_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
66
|
+
end
|
67
|
+
return data, status_code, headers
|
68
|
+
end
|
69
|
+
# Delete the Course from Zoomi
|
70
|
+
# Deletes the course from Zoomi, but the course will remain in SCORM Cloud.
|
71
|
+
# @param course_id
|
72
|
+
# @param version_id
|
73
|
+
# @param [Hash] opts the optional parameters
|
74
|
+
# @return [nil]
|
75
|
+
def delete_zoomi_course(course_id, version_id, opts = {})
|
76
|
+
delete_zoomi_course_with_http_info(course_id, version_id, opts)
|
77
|
+
nil
|
78
|
+
end
|
79
|
+
|
80
|
+
# Delete the Course from Zoomi
|
81
|
+
# Deletes the course from Zoomi, but the course will remain in SCORM Cloud.
|
82
|
+
# @param course_id
|
83
|
+
# @param version_id
|
84
|
+
# @param [Hash] opts the optional parameters
|
85
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
86
|
+
def delete_zoomi_course_with_http_info(course_id, version_id, opts = {})
|
87
|
+
if @api_client.config.debugging
|
88
|
+
@api_client.config.logger.debug 'Calling API: ZoomiApi.delete_zoomi_course ...'
|
89
|
+
end
|
90
|
+
# verify the required parameter 'course_id' is set
|
91
|
+
if course_id.nil?
|
92
|
+
fail ArgumentError, "Missing the required parameter 'course_id' when calling ZoomiApi.delete_zoomi_course"
|
93
|
+
end
|
94
|
+
# verify the required parameter 'version_id' is set
|
95
|
+
if version_id.nil?
|
96
|
+
fail ArgumentError, "Missing the required parameter 'version_id' when calling ZoomiApi.delete_zoomi_course"
|
97
|
+
end
|
98
|
+
# resource path
|
99
|
+
local_var_path = '/zoomi/course/{courseId}/version/{versionId}'.sub('{' + 'courseId' + '}', course_id.to_s).sub('{' + 'versionId' + '}', version_id.to_s)
|
100
|
+
|
101
|
+
# query parameters
|
102
|
+
query_params = {}
|
103
|
+
|
104
|
+
# header parameters
|
105
|
+
header_params = {}
|
106
|
+
# HTTP header 'Accept' (if needed)
|
107
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
108
|
+
# HTTP header 'Content-Type'
|
109
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
110
|
+
|
111
|
+
# form parameters
|
112
|
+
form_params = {}
|
113
|
+
|
114
|
+
# http body (model)
|
115
|
+
post_body = nil
|
116
|
+
auth_names = ['APP_NORMAL', 'OAUTH']
|
117
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
118
|
+
:header_params => header_params,
|
119
|
+
:query_params => query_params,
|
120
|
+
:form_params => form_params,
|
121
|
+
:body => post_body,
|
122
|
+
:auth_names => auth_names)
|
123
|
+
if @api_client.config.debugging
|
124
|
+
@api_client.config.logger.debug "API called: ZoomiApi#delete_zoomi_course\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
125
|
+
end
|
126
|
+
return data, status_code, headers
|
127
|
+
end
|
128
|
+
# Get the Zoomi company ID of an Application
|
129
|
+
# Returns the Zoomi company ID of an application.
|
130
|
+
# @param [Hash] opts the optional parameters
|
131
|
+
# @return [StringResultSchema]
|
132
|
+
def get_application_zoomi_company_id(opts = {})
|
133
|
+
data, _status_code, _headers = get_application_zoomi_company_id_with_http_info(opts)
|
134
|
+
data
|
135
|
+
end
|
136
|
+
|
137
|
+
# Get the Zoomi company ID of an Application
|
138
|
+
# Returns the Zoomi company ID of an application.
|
139
|
+
# @param [Hash] opts the optional parameters
|
140
|
+
# @return [Array<(StringResultSchema, Fixnum, Hash)>] StringResultSchema data, response status code and response headers
|
141
|
+
def get_application_zoomi_company_id_with_http_info(opts = {})
|
142
|
+
if @api_client.config.debugging
|
143
|
+
@api_client.config.logger.debug 'Calling API: ZoomiApi.get_application_zoomi_company_id ...'
|
144
|
+
end
|
145
|
+
# resource path
|
146
|
+
local_var_path = '/zoomi'
|
147
|
+
|
148
|
+
# query parameters
|
149
|
+
query_params = {}
|
150
|
+
|
151
|
+
# header parameters
|
152
|
+
header_params = {}
|
153
|
+
# HTTP header 'Accept' (if needed)
|
154
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
155
|
+
# HTTP header 'Content-Type'
|
156
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
157
|
+
|
158
|
+
# form parameters
|
159
|
+
form_params = {}
|
160
|
+
|
161
|
+
# http body (model)
|
162
|
+
post_body = nil
|
163
|
+
auth_names = ['APP_NORMAL', 'OAUTH']
|
164
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
165
|
+
:header_params => header_params,
|
166
|
+
:query_params => query_params,
|
167
|
+
:form_params => form_params,
|
168
|
+
:body => post_body,
|
169
|
+
:auth_names => auth_names,
|
170
|
+
:return_type => 'StringResultSchema')
|
171
|
+
if @api_client.config.debugging
|
172
|
+
@api_client.config.logger.debug "API called: ZoomiApi#get_application_zoomi_company_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
173
|
+
end
|
174
|
+
return data, status_code, headers
|
175
|
+
end
|
176
|
+
# Get the Zoomi public key for an Application
|
177
|
+
# Returns the Zoomi public key for an application.
|
178
|
+
# @param [Hash] opts the optional parameters
|
179
|
+
# @return [StringResultSchema]
|
180
|
+
def get_application_zoomi_public_key(opts = {})
|
181
|
+
data, _status_code, _headers = get_application_zoomi_public_key_with_http_info(opts)
|
182
|
+
data
|
183
|
+
end
|
184
|
+
|
185
|
+
# Get the Zoomi public key for an Application
|
186
|
+
# Returns the Zoomi public key for an application.
|
187
|
+
# @param [Hash] opts the optional parameters
|
188
|
+
# @return [Array<(StringResultSchema, Fixnum, Hash)>] StringResultSchema data, response status code and response headers
|
189
|
+
def get_application_zoomi_public_key_with_http_info(opts = {})
|
190
|
+
if @api_client.config.debugging
|
191
|
+
@api_client.config.logger.debug 'Calling API: ZoomiApi.get_application_zoomi_public_key ...'
|
192
|
+
end
|
193
|
+
# resource path
|
194
|
+
local_var_path = '/zoomi/key'
|
195
|
+
|
196
|
+
# query parameters
|
197
|
+
query_params = {}
|
198
|
+
|
199
|
+
# header parameters
|
200
|
+
header_params = {}
|
201
|
+
# HTTP header 'Accept' (if needed)
|
202
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
203
|
+
# HTTP header 'Content-Type'
|
204
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
205
|
+
|
206
|
+
# form parameters
|
207
|
+
form_params = {}
|
208
|
+
|
209
|
+
# http body (model)
|
210
|
+
post_body = nil
|
211
|
+
auth_names = ['APP_NORMAL', 'OAUTH']
|
212
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
213
|
+
:header_params => header_params,
|
214
|
+
:query_params => query_params,
|
215
|
+
:form_params => form_params,
|
216
|
+
:body => post_body,
|
217
|
+
:auth_names => auth_names,
|
218
|
+
:return_type => 'StringResultSchema')
|
219
|
+
if @api_client.config.debugging
|
220
|
+
@api_client.config.logger.debug "API called: ZoomiApi#get_application_zoomi_public_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
221
|
+
end
|
222
|
+
return data, status_code, headers
|
223
|
+
end
|
224
|
+
# Get the Zoomi enabled value of a Course Version
|
225
|
+
# Returns the Zoomi enabled value of a course version.
|
226
|
+
# @param course_id
|
227
|
+
# @param version_id
|
228
|
+
# @param [Hash] opts the optional parameters
|
229
|
+
# @return [EnabledSchema]
|
230
|
+
def get_course_zoomi_enabled(course_id, version_id, opts = {})
|
231
|
+
data, _status_code, _headers = get_course_zoomi_enabled_with_http_info(course_id, version_id, opts)
|
232
|
+
data
|
233
|
+
end
|
234
|
+
|
235
|
+
# Get the Zoomi enabled value of a Course Version
|
236
|
+
# Returns the Zoomi enabled value of a course version.
|
237
|
+
# @param course_id
|
238
|
+
# @param version_id
|
239
|
+
# @param [Hash] opts the optional parameters
|
240
|
+
# @return [Array<(EnabledSchema, Fixnum, Hash)>] EnabledSchema data, response status code and response headers
|
241
|
+
def get_course_zoomi_enabled_with_http_info(course_id, version_id, opts = {})
|
242
|
+
if @api_client.config.debugging
|
243
|
+
@api_client.config.logger.debug 'Calling API: ZoomiApi.get_course_zoomi_enabled ...'
|
244
|
+
end
|
245
|
+
# verify the required parameter 'course_id' is set
|
246
|
+
if course_id.nil?
|
247
|
+
fail ArgumentError, "Missing the required parameter 'course_id' when calling ZoomiApi.get_course_zoomi_enabled"
|
248
|
+
end
|
249
|
+
# verify the required parameter 'version_id' is set
|
250
|
+
if version_id.nil?
|
251
|
+
fail ArgumentError, "Missing the required parameter 'version_id' when calling ZoomiApi.get_course_zoomi_enabled"
|
252
|
+
end
|
253
|
+
# resource path
|
254
|
+
local_var_path = '/zoomi/course/{courseId}/version/{versionId}/enabled'.sub('{' + 'courseId' + '}', course_id.to_s).sub('{' + 'versionId' + '}', version_id.to_s)
|
255
|
+
|
256
|
+
# query parameters
|
257
|
+
query_params = {}
|
258
|
+
|
259
|
+
# header parameters
|
260
|
+
header_params = {}
|
261
|
+
# HTTP header 'Accept' (if needed)
|
262
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
263
|
+
# HTTP header 'Content-Type'
|
264
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
265
|
+
|
266
|
+
# form parameters
|
267
|
+
form_params = {}
|
268
|
+
|
269
|
+
# http body (model)
|
270
|
+
post_body = nil
|
271
|
+
auth_names = ['APP_NORMAL', 'OAUTH']
|
272
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
273
|
+
:header_params => header_params,
|
274
|
+
:query_params => query_params,
|
275
|
+
:form_params => form_params,
|
276
|
+
:body => post_body,
|
277
|
+
:auth_names => auth_names,
|
278
|
+
:return_type => 'EnabledSchema')
|
279
|
+
if @api_client.config.debugging
|
280
|
+
@api_client.config.logger.debug "API called: ZoomiApi#get_course_zoomi_enabled\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
281
|
+
end
|
282
|
+
return data, status_code, headers
|
283
|
+
end
|
284
|
+
# Get the status for a Course from Zoomi
|
285
|
+
# Returns the status for a course and starts the upload process to Zoomi if not started.
|
286
|
+
# @param course_id
|
287
|
+
# @param version_id
|
288
|
+
# @param [Hash] opts the optional parameters
|
289
|
+
# @return [StringResultSchema]
|
290
|
+
def get_zoomi_course_status(course_id, version_id, opts = {})
|
291
|
+
data, _status_code, _headers = get_zoomi_course_status_with_http_info(course_id, version_id, opts)
|
292
|
+
data
|
293
|
+
end
|
294
|
+
|
295
|
+
# Get the status for a Course from Zoomi
|
296
|
+
# Returns the status for a course and starts the upload process to Zoomi if not started.
|
297
|
+
# @param course_id
|
298
|
+
# @param version_id
|
299
|
+
# @param [Hash] opts the optional parameters
|
300
|
+
# @return [Array<(StringResultSchema, Fixnum, Hash)>] StringResultSchema data, response status code and response headers
|
301
|
+
def get_zoomi_course_status_with_http_info(course_id, version_id, opts = {})
|
302
|
+
if @api_client.config.debugging
|
303
|
+
@api_client.config.logger.debug 'Calling API: ZoomiApi.get_zoomi_course_status ...'
|
304
|
+
end
|
305
|
+
# verify the required parameter 'course_id' is set
|
306
|
+
if course_id.nil?
|
307
|
+
fail ArgumentError, "Missing the required parameter 'course_id' when calling ZoomiApi.get_zoomi_course_status"
|
308
|
+
end
|
309
|
+
# verify the required parameter 'version_id' is set
|
310
|
+
if version_id.nil?
|
311
|
+
fail ArgumentError, "Missing the required parameter 'version_id' when calling ZoomiApi.get_zoomi_course_status"
|
312
|
+
end
|
313
|
+
# resource path
|
314
|
+
local_var_path = '/zoomi/course/{courseId}/version/{versionId}'.sub('{' + 'courseId' + '}', course_id.to_s).sub('{' + 'versionId' + '}', version_id.to_s)
|
315
|
+
|
316
|
+
# query parameters
|
317
|
+
query_params = {}
|
318
|
+
|
319
|
+
# header parameters
|
320
|
+
header_params = {}
|
321
|
+
# HTTP header 'Accept' (if needed)
|
322
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
323
|
+
# HTTP header 'Content-Type'
|
324
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
325
|
+
|
326
|
+
# form parameters
|
327
|
+
form_params = {}
|
328
|
+
|
329
|
+
# http body (model)
|
330
|
+
post_body = nil
|
331
|
+
auth_names = ['APP_NORMAL', 'OAUTH']
|
332
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
333
|
+
:header_params => header_params,
|
334
|
+
:query_params => query_params,
|
335
|
+
:form_params => form_params,
|
336
|
+
:body => post_body,
|
337
|
+
:auth_names => auth_names,
|
338
|
+
:return_type => 'StringResultSchema')
|
339
|
+
if @api_client.config.debugging
|
340
|
+
@api_client.config.logger.debug "API called: ZoomiApi#get_zoomi_course_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
341
|
+
end
|
342
|
+
return data, status_code, headers
|
343
|
+
end
|
344
|
+
# Begin the import process with Zoomi
|
345
|
+
# Begins the import process with Zoomi. Must be followed up by a status call.
|
346
|
+
# @param course_id
|
347
|
+
# @param version_id
|
348
|
+
# @param zoomi_course_options
|
349
|
+
# @param [Hash] opts the optional parameters
|
350
|
+
# @return [nil]
|
351
|
+
def import_course_version_to_zoomi(course_id, version_id, zoomi_course_options, opts = {})
|
352
|
+
import_course_version_to_zoomi_with_http_info(course_id, version_id, zoomi_course_options, opts)
|
353
|
+
nil
|
354
|
+
end
|
355
|
+
|
356
|
+
# Begin the import process with Zoomi
|
357
|
+
# Begins the import process with Zoomi. Must be followed up by a status call.
|
358
|
+
# @param course_id
|
359
|
+
# @param version_id
|
360
|
+
# @param zoomi_course_options
|
361
|
+
# @param [Hash] opts the optional parameters
|
362
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
363
|
+
def import_course_version_to_zoomi_with_http_info(course_id, version_id, zoomi_course_options, opts = {})
|
364
|
+
if @api_client.config.debugging
|
365
|
+
@api_client.config.logger.debug 'Calling API: ZoomiApi.import_course_version_to_zoomi ...'
|
366
|
+
end
|
367
|
+
# verify the required parameter 'course_id' is set
|
368
|
+
if course_id.nil?
|
369
|
+
fail ArgumentError, "Missing the required parameter 'course_id' when calling ZoomiApi.import_course_version_to_zoomi"
|
370
|
+
end
|
371
|
+
# verify the required parameter 'version_id' is set
|
372
|
+
if version_id.nil?
|
373
|
+
fail ArgumentError, "Missing the required parameter 'version_id' when calling ZoomiApi.import_course_version_to_zoomi"
|
374
|
+
end
|
375
|
+
# verify the required parameter 'zoomi_course_options' is set
|
376
|
+
if zoomi_course_options.nil?
|
377
|
+
fail ArgumentError, "Missing the required parameter 'zoomi_course_options' when calling ZoomiApi.import_course_version_to_zoomi"
|
378
|
+
end
|
379
|
+
# resource path
|
380
|
+
local_var_path = '/zoomi/course/{courseId}/version/{versionId}/import'.sub('{' + 'courseId' + '}', course_id.to_s).sub('{' + 'versionId' + '}', version_id.to_s)
|
381
|
+
|
382
|
+
# query parameters
|
383
|
+
query_params = {}
|
384
|
+
|
385
|
+
# header parameters
|
386
|
+
header_params = {}
|
387
|
+
# HTTP header 'Accept' (if needed)
|
388
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
389
|
+
# HTTP header 'Content-Type'
|
390
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
391
|
+
|
392
|
+
# form parameters
|
393
|
+
form_params = {}
|
394
|
+
|
395
|
+
# http body (model)
|
396
|
+
post_body = @api_client.object_to_http_body(zoomi_course_options)
|
397
|
+
auth_names = ['APP_NORMAL', 'OAUTH']
|
398
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
399
|
+
:header_params => header_params,
|
400
|
+
:query_params => query_params,
|
401
|
+
:form_params => form_params,
|
402
|
+
:body => post_body,
|
403
|
+
:auth_names => auth_names)
|
404
|
+
if @api_client.config.debugging
|
405
|
+
@api_client.config.logger.debug "API called: ZoomiApi#import_course_version_to_zoomi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
406
|
+
end
|
407
|
+
return data, status_code, headers
|
408
|
+
end
|
409
|
+
# Set the Zoomi company ID of an Application
|
410
|
+
# Sets the Zoomi company ID value of an application.
|
411
|
+
# @param zoomi_company_id
|
412
|
+
# @param [Hash] opts the optional parameters
|
413
|
+
# @return [nil]
|
414
|
+
def set_application_zoomi_company_id(zoomi_company_id, opts = {})
|
415
|
+
set_application_zoomi_company_id_with_http_info(zoomi_company_id, opts)
|
416
|
+
nil
|
417
|
+
end
|
418
|
+
|
419
|
+
# Set the Zoomi company ID of an Application
|
420
|
+
# Sets the Zoomi company ID value of an application.
|
421
|
+
# @param zoomi_company_id
|
422
|
+
# @param [Hash] opts the optional parameters
|
423
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
424
|
+
def set_application_zoomi_company_id_with_http_info(zoomi_company_id, opts = {})
|
425
|
+
if @api_client.config.debugging
|
426
|
+
@api_client.config.logger.debug 'Calling API: ZoomiApi.set_application_zoomi_company_id ...'
|
427
|
+
end
|
428
|
+
# verify the required parameter 'zoomi_company_id' is set
|
429
|
+
if zoomi_company_id.nil?
|
430
|
+
fail ArgumentError, "Missing the required parameter 'zoomi_company_id' when calling ZoomiApi.set_application_zoomi_company_id"
|
431
|
+
end
|
432
|
+
# resource path
|
433
|
+
local_var_path = '/zoomi'
|
434
|
+
|
435
|
+
# query parameters
|
436
|
+
query_params = {}
|
437
|
+
|
438
|
+
# header parameters
|
439
|
+
header_params = {}
|
440
|
+
# HTTP header 'Accept' (if needed)
|
441
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
442
|
+
# HTTP header 'Content-Type'
|
443
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
444
|
+
|
445
|
+
# form parameters
|
446
|
+
form_params = {}
|
447
|
+
|
448
|
+
# http body (model)
|
449
|
+
post_body = @api_client.object_to_http_body(zoomi_company_id)
|
450
|
+
auth_names = ['APP_NORMAL', 'OAUTH']
|
451
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
452
|
+
:header_params => header_params,
|
453
|
+
:query_params => query_params,
|
454
|
+
:form_params => form_params,
|
455
|
+
:body => post_body,
|
456
|
+
:auth_names => auth_names)
|
457
|
+
if @api_client.config.debugging
|
458
|
+
@api_client.config.logger.debug "API called: ZoomiApi#set_application_zoomi_company_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
459
|
+
end
|
460
|
+
return data, status_code, headers
|
461
|
+
end
|
462
|
+
# Set the Zoomi enabled value of a Course Version
|
463
|
+
# Sets the Zoomi enabled value of a course version.
|
464
|
+
# @param course_id
|
465
|
+
# @param version_id
|
466
|
+
# @param enabled
|
467
|
+
# @param [Hash] opts the optional parameters
|
468
|
+
# @return [nil]
|
469
|
+
def set_course_zoomi_enabled(course_id, version_id, enabled, opts = {})
|
470
|
+
set_course_zoomi_enabled_with_http_info(course_id, version_id, enabled, opts)
|
471
|
+
nil
|
472
|
+
end
|
473
|
+
|
474
|
+
# Set the Zoomi enabled value of a Course Version
|
475
|
+
# Sets the Zoomi enabled value of a course version.
|
476
|
+
# @param course_id
|
477
|
+
# @param version_id
|
478
|
+
# @param enabled
|
479
|
+
# @param [Hash] opts the optional parameters
|
480
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
481
|
+
def set_course_zoomi_enabled_with_http_info(course_id, version_id, enabled, opts = {})
|
482
|
+
if @api_client.config.debugging
|
483
|
+
@api_client.config.logger.debug 'Calling API: ZoomiApi.set_course_zoomi_enabled ...'
|
484
|
+
end
|
485
|
+
# verify the required parameter 'course_id' is set
|
486
|
+
if course_id.nil?
|
487
|
+
fail ArgumentError, "Missing the required parameter 'course_id' when calling ZoomiApi.set_course_zoomi_enabled"
|
488
|
+
end
|
489
|
+
# verify the required parameter 'version_id' is set
|
490
|
+
if version_id.nil?
|
491
|
+
fail ArgumentError, "Missing the required parameter 'version_id' when calling ZoomiApi.set_course_zoomi_enabled"
|
492
|
+
end
|
493
|
+
# verify the required parameter 'enabled' is set
|
494
|
+
if enabled.nil?
|
495
|
+
fail ArgumentError, "Missing the required parameter 'enabled' when calling ZoomiApi.set_course_zoomi_enabled"
|
496
|
+
end
|
497
|
+
# resource path
|
498
|
+
local_var_path = '/zoomi/course/{courseId}/version/{versionId}/enabled'.sub('{' + 'courseId' + '}', course_id.to_s).sub('{' + 'versionId' + '}', version_id.to_s)
|
499
|
+
|
500
|
+
# query parameters
|
501
|
+
query_params = {}
|
502
|
+
|
503
|
+
# header parameters
|
504
|
+
header_params = {}
|
505
|
+
# HTTP header 'Accept' (if needed)
|
506
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
507
|
+
# HTTP header 'Content-Type'
|
508
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
509
|
+
|
510
|
+
# form parameters
|
511
|
+
form_params = {}
|
512
|
+
|
513
|
+
# http body (model)
|
514
|
+
post_body = @api_client.object_to_http_body(enabled)
|
515
|
+
auth_names = ['APP_NORMAL', 'OAUTH']
|
516
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
517
|
+
:header_params => header_params,
|
518
|
+
:query_params => query_params,
|
519
|
+
:form_params => form_params,
|
520
|
+
:body => post_body,
|
521
|
+
:auth_names => auth_names)
|
522
|
+
if @api_client.config.debugging
|
523
|
+
@api_client.config.logger.debug "API called: ZoomiApi#set_course_zoomi_enabled\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
524
|
+
end
|
525
|
+
return data, status_code, headers
|
526
|
+
end
|
527
|
+
end
|
528
|
+
end
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#REST API used for SCORM Cloud integrations.
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0
|
6
|
+
OpenAPI spec version: 2.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.12
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -15,7 +15,7 @@ require 'json'
|
|
15
15
|
require 'logger'
|
16
16
|
require 'tempfile'
|
17
17
|
require 'typhoeus'
|
18
|
-
require 'uri'
|
18
|
+
require 'addressable/uri'
|
19
19
|
|
20
20
|
module RusticiSoftwareCloudV2
|
21
21
|
class ApiClient
|
@@ -264,7 +264,7 @@ module RusticiSoftwareCloudV2
|
|
264
264
|
def build_request_url(path)
|
265
265
|
# Add leading and trailing slashes to path
|
266
266
|
path = "/#{path}".gsub(/\/+/, '/')
|
267
|
-
URI.encode(@config.base_url + path)
|
267
|
+
Addressable::URI.encode(@config.base_url + path)
|
268
268
|
end
|
269
269
|
|
270
270
|
# Builds the HTTP request body
|
@@ -303,7 +303,7 @@ module RusticiSoftwareCloudV2
|
|
303
303
|
def update_params_for_auth!(header_params, query_params, auth_names)
|
304
304
|
Array(auth_names).each do |auth_name|
|
305
305
|
auth_setting = @config.auth_settings[auth_name]
|
306
|
-
next unless auth_setting
|
306
|
+
next unless auth_setting && auth_setting[:value]
|
307
307
|
case auth_setting[:in]
|
308
308
|
when 'header' then header_params[auth_setting[:key]] = auth_setting[:value]
|
309
309
|
when 'query' then query_params[auth_setting[:key]] = auth_setting[:value]
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#REST API used for SCORM Cloud integrations.
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0
|
6
|
+
OpenAPI spec version: 2.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.12
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,14 +3,14 @@
|
|
3
3
|
|
4
4
|
#REST API used for SCORM Cloud integrations.
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0
|
6
|
+
OpenAPI spec version: 2.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.12
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require 'uri'
|
13
|
+
require 'addressable/uri'
|
14
14
|
|
15
15
|
module RusticiSoftwareCloudV2
|
16
16
|
class Configuration
|
@@ -175,7 +175,7 @@ module RusticiSoftwareCloudV2
|
|
175
175
|
|
176
176
|
def base_url
|
177
177
|
url = "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
|
178
|
-
URI.encode(url)
|
178
|
+
Addressable::URI.encode(url)
|
179
179
|
end
|
180
180
|
|
181
181
|
# Gets API key (with prefix if set).
|
@@ -190,7 +190,12 @@ module RusticiSoftwareCloudV2
|
|
190
190
|
|
191
191
|
# Gets Basic Auth token string
|
192
192
|
def basic_auth_token
|
193
|
-
'Basic ' + ["#{username}:#{password}"].pack('m').delete("\r\n")
|
193
|
+
@username ? 'Basic ' + ["#{username}:#{password}"].pack('m').delete("\r\n") : nil
|
194
|
+
end
|
195
|
+
|
196
|
+
# Gets the Oauth2 token string
|
197
|
+
def oauth2_token
|
198
|
+
@access_token ? "Bearer #{access_token}" : nil
|
194
199
|
end
|
195
200
|
|
196
201
|
# Returns Auth Settings hash for api client.
|
@@ -210,26 +215,12 @@ module RusticiSoftwareCloudV2
|
|
210
215
|
key: 'Authorization',
|
211
216
|
value: basic_auth_token
|
212
217
|
},
|
213
|
-
'LAUNCH_TOKEN' =>
|
214
|
-
{
|
215
|
-
type: 'api_key',
|
216
|
-
in: 'query',
|
217
|
-
key: 'launchToken',
|
218
|
-
value: api_key_with_prefix('launchToken')
|
219
|
-
},
|
220
218
|
'OAUTH' =>
|
221
219
|
{
|
222
220
|
type: 'oauth2',
|
223
221
|
in: 'header',
|
224
222
|
key: 'Authorization',
|
225
|
-
value:
|
226
|
-
},
|
227
|
-
'URL_TOKEN' =>
|
228
|
-
{
|
229
|
-
type: 'api_key',
|
230
|
-
in: 'query',
|
231
|
-
key: 'authtoken',
|
232
|
-
value: api_key_with_prefix('authtoken')
|
223
|
+
value: oauth2_token
|
233
224
|
},
|
234
225
|
}
|
235
226
|
end
|