flat_api 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +7 -0
- data/README.md +248 -0
- data/Rakefile +8 -0
- data/docs/AccountApi.md +55 -0
- data/docs/Assignment.md +18 -0
- data/docs/AssignmentCopy.md +8 -0
- data/docs/AssignmentCreation.md +12 -0
- data/docs/AssignmentSubmission.md +19 -0
- data/docs/AssignmentSubmissionUpdate.md +11 -0
- data/docs/ClassApi.md +1051 -0
- data/docs/ClassAttachmentCreation.md +10 -0
- data/docs/ClassCreation.md +9 -0
- data/docs/ClassDetails.md +25 -0
- data/docs/ClassDetailsCanvas.md +9 -0
- data/docs/ClassDetailsClever.md +14 -0
- data/docs/ClassDetailsGoogleClassroom.md +11 -0
- data/docs/ClassDetailsGoogleDrive.md +9 -0
- data/docs/ClassDetailsLti.md +10 -0
- data/docs/ClassRoles.md +7 -0
- data/docs/ClassState.md +7 -0
- data/docs/ClassUpdate.md +9 -0
- data/docs/FlatErrorResponse.md +11 -0
- data/docs/FlatLocales.md +7 -0
- data/docs/GoogleClassroomCoursework.md +10 -0
- data/docs/GoogleClassroomSubmission.md +10 -0
- data/docs/Group.md +14 -0
- data/docs/GroupApi.md +167 -0
- data/docs/GroupDetails.md +14 -0
- data/docs/GroupType.md +7 -0
- data/docs/LicenseMode.md +7 -0
- data/docs/LicenseSources.md +7 -0
- data/docs/LmsName.md +7 -0
- data/docs/LtiCredentials.md +16 -0
- data/docs/LtiCredentialsCreation.md +9 -0
- data/docs/MediaAttachment.md +23 -0
- data/docs/MediaScoreSharingMode.md +7 -0
- data/docs/OrganizationApi.md +538 -0
- data/docs/OrganizationInvitation.md +14 -0
- data/docs/OrganizationInvitationCreation.md +9 -0
- data/docs/OrganizationRoles.md +7 -0
- data/docs/ScoreApi.md +1605 -0
- data/docs/ScoreCollaborator.md +15 -0
- data/docs/ScoreCollaboratorCreation.md +13 -0
- data/docs/ScoreComment.md +22 -0
- data/docs/ScoreCommentContext.md +14 -0
- data/docs/ScoreCommentCreation.md +13 -0
- data/docs/ScoreCommentUpdate.md +11 -0
- data/docs/ScoreCommentsCounts.md +11 -0
- data/docs/ScoreCreation.md +13 -0
- data/docs/ScoreCreationType.md +7 -0
- data/docs/ScoreData.md +7 -0
- data/docs/ScoreDataEncoding.md +7 -0
- data/docs/ScoreDetails.md +36 -0
- data/docs/ScoreFork.md +7 -0
- data/docs/ScoreLicense.md +7 -0
- data/docs/ScoreLikesCounts.md +10 -0
- data/docs/ScoreModification.md +13 -0
- data/docs/ScorePrivacy.md +7 -0
- data/docs/ScoreRevision.md +14 -0
- data/docs/ScoreRevisionCreation.md +11 -0
- data/docs/ScoreRevisionStatistics.md +9 -0
- data/docs/ScoreRights.md +9 -0
- data/docs/ScoreSource.md +8 -0
- data/docs/ScoreSummary.md +13 -0
- data/docs/ScoreTrack.md +19 -0
- data/docs/ScoreTrackCreation.md +12 -0
- data/docs/ScoreTrackPoint.md +10 -0
- data/docs/ScoreTrackState.md +7 -0
- data/docs/ScoreTrackType.md +7 -0
- data/docs/ScoreTrackUpdate.md +11 -0
- data/docs/ScoreViewsCounts.md +10 -0
- data/docs/UserAdminUpdate.md +9 -0
- data/docs/UserApi.md +173 -0
- data/docs/UserBasics.md +13 -0
- data/docs/UserCreation.md +11 -0
- data/docs/UserDetails.md +28 -0
- data/docs/UserDetailsAdmin.md +20 -0
- data/docs/UserDetailsAdminLicense.md +12 -0
- data/docs/UserInstruments.md +7 -0
- data/docs/UserPublic.md +25 -0
- data/docs/UserPublicSummary.md +17 -0
- data/flat_api.gemspec +48 -0
- data/git_push.sh +55 -0
- data/lib/flat_api.rb +117 -0
- data/lib/flat_api/api/account_api.rb +72 -0
- data/lib/flat_api/api/class_api.rb +1148 -0
- data/lib/flat_api/api/group_api.rb +191 -0
- data/lib/flat_api/api/organization_api.rb +599 -0
- data/lib/flat_api/api/score_api.rb +1737 -0
- data/lib/flat_api/api/user_api.rb +194 -0
- data/lib/flat_api/api_client.rb +389 -0
- data/lib/flat_api/api_error.rb +38 -0
- data/lib/flat_api/configuration.rb +209 -0
- data/lib/flat_api/models/assignment.rb +323 -0
- data/lib/flat_api/models/assignment_copy.rb +194 -0
- data/lib/flat_api/models/assignment_creation.rb +230 -0
- data/lib/flat_api/models/assignment_submission.rb +299 -0
- data/lib/flat_api/models/assignment_submission_update.rb +220 -0
- data/lib/flat_api/models/class_attachment_creation.rb +242 -0
- data/lib/flat_api/models/class_creation.rb +239 -0
- data/lib/flat_api/models/class_details.rb +351 -0
- data/lib/flat_api/models/class_details_canvas.rb +199 -0
- data/lib/flat_api/models/class_details_clever.rb +282 -0
- data/lib/flat_api/models/class_details_google_classroom.rb +219 -0
- data/lib/flat_api/models/class_details_google_drive.rb +199 -0
- data/lib/flat_api/models/class_details_lti.rb +209 -0
- data/lib/flat_api/models/class_roles.rb +22 -0
- data/lib/flat_api/models/class_state.rb +23 -0
- data/lib/flat_api/models/class_update.rb +231 -0
- data/lib/flat_api/models/flat_error_response.rb +219 -0
- data/lib/flat_api/models/flat_locales.rb +27 -0
- data/lib/flat_api/models/google_classroom_coursework.rb +209 -0
- data/lib/flat_api/models/google_classroom_submission.rb +209 -0
- data/lib/flat_api/models/group.rb +282 -0
- data/lib/flat_api/models/group_details.rb +248 -0
- data/lib/flat_api/models/group_type.rb +23 -0
- data/lib/flat_api/models/license_mode.rb +22 -0
- data/lib/flat_api/models/license_sources.rb +25 -0
- data/lib/flat_api/models/lms_name.rb +27 -0
- data/lib/flat_api/models/lti_credentials.rb +268 -0
- data/lib/flat_api/models/lti_credentials_creation.rb +227 -0
- data/lib/flat_api/models/media_attachment.rb +371 -0
- data/lib/flat_api/models/media_score_sharing_mode.rb +23 -0
- data/lib/flat_api/models/organization_invitation.rb +248 -0
- data/lib/flat_api/models/organization_invitation_creation.rb +198 -0
- data/lib/flat_api/models/organization_roles.rb +24 -0
- data/lib/flat_api/models/score_collaborator.rb +263 -0
- data/lib/flat_api/models/score_collaborator_creation.rb +245 -0
- data/lib/flat_api/models/score_comment.rb +363 -0
- data/lib/flat_api/models/score_comment_context.rb +282 -0
- data/lib/flat_api/models/score_comment_creation.rb +245 -0
- data/lib/flat_api/models/score_comment_update.rb +268 -0
- data/lib/flat_api/models/score_comments_counts.rb +219 -0
- data/lib/flat_api/models/score_creation.rb +240 -0
- data/lib/flat_api/models/score_creation_type.rb +23 -0
- data/lib/flat_api/models/score_data.rb +179 -0
- data/lib/flat_api/models/score_data_encoding.rb +21 -0
- data/lib/flat_api/models/score_details.rb +467 -0
- data/lib/flat_api/models/score_fork.rb +179 -0
- data/lib/flat_api/models/score_license.rb +28 -0
- data/lib/flat_api/models/score_likes_counts.rb +209 -0
- data/lib/flat_api/models/score_modification.rb +270 -0
- data/lib/flat_api/models/score_privacy.rb +24 -0
- data/lib/flat_api/models/score_revision.rb +249 -0
- data/lib/flat_api/models/score_revision_creation.rb +222 -0
- data/lib/flat_api/models/score_revision_statistics.rb +199 -0
- data/lib/flat_api/models/score_rights.rb +203 -0
- data/lib/flat_api/models/score_source.rb +189 -0
- data/lib/flat_api/models/score_summary.rb +237 -0
- data/lib/flat_api/models/score_track.rb +298 -0
- data/lib/flat_api/models/score_track_creation.rb +229 -0
- data/lib/flat_api/models/score_track_point.rb +252 -0
- data/lib/flat_api/models/score_track_state.rb +23 -0
- data/lib/flat_api/models/score_track_type.rb +24 -0
- data/lib/flat_api/models/score_track_update.rb +219 -0
- data/lib/flat_api/models/score_views_counts.rb +209 -0
- data/lib/flat_api/models/user_admin_update.rb +214 -0
- data/lib/flat_api/models/user_basics.rb +239 -0
- data/lib/flat_api/models/user_creation.rb +266 -0
- data/lib/flat_api/models/user_details.rb +418 -0
- data/lib/flat_api/models/user_details_admin.rb +306 -0
- data/lib/flat_api/models/user_details_admin_license.rb +227 -0
- data/lib/flat_api/models/user_instruments.rb +179 -0
- data/lib/flat_api/models/user_public.rb +356 -0
- data/lib/flat_api/models/user_public_summary.rb +277 -0
- data/lib/flat_api/version.rb +15 -0
- data/lib/swagger_client.rb +117 -0
- data/lib/swagger_client/api/account_api.rb +72 -0
- data/lib/swagger_client/api/class_api.rb +1148 -0
- data/lib/swagger_client/api/group_api.rb +191 -0
- data/lib/swagger_client/api/organization_api.rb +599 -0
- data/lib/swagger_client/api/score_api.rb +1737 -0
- data/lib/swagger_client/api/user_api.rb +194 -0
- data/lib/swagger_client/api_client.rb +389 -0
- data/lib/swagger_client/api_error.rb +38 -0
- data/lib/swagger_client/configuration.rb +209 -0
- data/lib/swagger_client/models/assignment.rb +323 -0
- data/lib/swagger_client/models/assignment_copy.rb +194 -0
- data/lib/swagger_client/models/assignment_creation.rb +230 -0
- data/lib/swagger_client/models/assignment_submission.rb +299 -0
- data/lib/swagger_client/models/assignment_submission_update.rb +220 -0
- data/lib/swagger_client/models/class_attachment_creation.rb +242 -0
- data/lib/swagger_client/models/class_creation.rb +239 -0
- data/lib/swagger_client/models/class_details.rb +351 -0
- data/lib/swagger_client/models/class_details_canvas.rb +199 -0
- data/lib/swagger_client/models/class_details_clever.rb +282 -0
- data/lib/swagger_client/models/class_details_google_classroom.rb +219 -0
- data/lib/swagger_client/models/class_details_google_drive.rb +199 -0
- data/lib/swagger_client/models/class_details_lti.rb +209 -0
- data/lib/swagger_client/models/class_roles.rb +22 -0
- data/lib/swagger_client/models/class_state.rb +23 -0
- data/lib/swagger_client/models/class_update.rb +231 -0
- data/lib/swagger_client/models/flat_error_response.rb +219 -0
- data/lib/swagger_client/models/flat_locales.rb +27 -0
- data/lib/swagger_client/models/google_classroom_coursework.rb +209 -0
- data/lib/swagger_client/models/google_classroom_submission.rb +209 -0
- data/lib/swagger_client/models/group.rb +282 -0
- data/lib/swagger_client/models/group_details.rb +248 -0
- data/lib/swagger_client/models/group_type.rb +23 -0
- data/lib/swagger_client/models/license_mode.rb +22 -0
- data/lib/swagger_client/models/license_sources.rb +25 -0
- data/lib/swagger_client/models/lms_name.rb +27 -0
- data/lib/swagger_client/models/lti_credentials.rb +268 -0
- data/lib/swagger_client/models/lti_credentials_creation.rb +227 -0
- data/lib/swagger_client/models/media_attachment.rb +371 -0
- data/lib/swagger_client/models/media_score_sharing_mode.rb +23 -0
- data/lib/swagger_client/models/organization_invitation.rb +248 -0
- data/lib/swagger_client/models/organization_invitation_creation.rb +198 -0
- data/lib/swagger_client/models/organization_roles.rb +24 -0
- data/lib/swagger_client/models/score_collaborator.rb +263 -0
- data/lib/swagger_client/models/score_collaborator_creation.rb +245 -0
- data/lib/swagger_client/models/score_comment.rb +363 -0
- data/lib/swagger_client/models/score_comment_context.rb +282 -0
- data/lib/swagger_client/models/score_comment_creation.rb +245 -0
- data/lib/swagger_client/models/score_comment_update.rb +268 -0
- data/lib/swagger_client/models/score_comments_counts.rb +219 -0
- data/lib/swagger_client/models/score_creation.rb +240 -0
- data/lib/swagger_client/models/score_creation_type.rb +23 -0
- data/lib/swagger_client/models/score_data.rb +179 -0
- data/lib/swagger_client/models/score_data_encoding.rb +21 -0
- data/lib/swagger_client/models/score_details.rb +467 -0
- data/lib/swagger_client/models/score_fork.rb +179 -0
- data/lib/swagger_client/models/score_license.rb +28 -0
- data/lib/swagger_client/models/score_likes_counts.rb +209 -0
- data/lib/swagger_client/models/score_modification.rb +270 -0
- data/lib/swagger_client/models/score_privacy.rb +24 -0
- data/lib/swagger_client/models/score_revision.rb +249 -0
- data/lib/swagger_client/models/score_revision_creation.rb +222 -0
- data/lib/swagger_client/models/score_revision_statistics.rb +199 -0
- data/lib/swagger_client/models/score_rights.rb +203 -0
- data/lib/swagger_client/models/score_source.rb +189 -0
- data/lib/swagger_client/models/score_summary.rb +237 -0
- data/lib/swagger_client/models/score_track.rb +298 -0
- data/lib/swagger_client/models/score_track_creation.rb +229 -0
- data/lib/swagger_client/models/score_track_point.rb +252 -0
- data/lib/swagger_client/models/score_track_state.rb +23 -0
- data/lib/swagger_client/models/score_track_type.rb +24 -0
- data/lib/swagger_client/models/score_track_update.rb +219 -0
- data/lib/swagger_client/models/score_views_counts.rb +209 -0
- data/lib/swagger_client/models/user_admin_update.rb +214 -0
- data/lib/swagger_client/models/user_basics.rb +239 -0
- data/lib/swagger_client/models/user_creation.rb +266 -0
- data/lib/swagger_client/models/user_details.rb +418 -0
- data/lib/swagger_client/models/user_details_admin.rb +306 -0
- data/lib/swagger_client/models/user_details_admin_license.rb +227 -0
- data/lib/swagger_client/models/user_instruments.rb +179 -0
- data/lib/swagger_client/models/user_public.rb +356 -0
- data/lib/swagger_client/models/user_public_summary.rb +277 -0
- data/lib/swagger_client/version.rb +15 -0
- data/spec/api/account_api_spec.rb +46 -0
- data/spec/api/class_api_spec.rb +278 -0
- data/spec/api/group_api_spec.rb +72 -0
- data/spec/api/organization_api_spec.rb +162 -0
- data/spec/api/score_api_spec.rb +411 -0
- data/spec/api/user_api_spec.rb +73 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/assignment_copy_spec.rb +42 -0
- data/spec/models/assignment_creation_spec.rb +66 -0
- data/spec/models/assignment_spec.rb +106 -0
- data/spec/models/assignment_submission_spec.rb +108 -0
- data/spec/models/assignment_submission_update_spec.rb +60 -0
- data/spec/models/class_attachment_creation_spec.rb +58 -0
- data/spec/models/class_creation_spec.rb +48 -0
- data/spec/models/class_details_canvas_spec.rb +48 -0
- data/spec/models/class_details_clever_spec.rb +82 -0
- data/spec/models/class_details_google_classroom_spec.rb +60 -0
- data/spec/models/class_details_google_drive_spec.rb +48 -0
- data/spec/models/class_details_lti_spec.rb +54 -0
- data/spec/models/class_details_spec.rb +144 -0
- data/spec/models/class_roles_spec.rb +36 -0
- data/spec/models/class_state_spec.rb +36 -0
- data/spec/models/class_update_spec.rb +48 -0
- data/spec/models/flat_error_response_spec.rb +60 -0
- data/spec/models/flat_locales_spec.rb +36 -0
- data/spec/models/google_classroom_coursework_spec.rb +54 -0
- data/spec/models/google_classroom_submission_spec.rb +54 -0
- data/spec/models/group_details_spec.rb +78 -0
- data/spec/models/group_spec.rb +82 -0
- data/spec/models/group_type_spec.rb +36 -0
- data/spec/models/license_mode_spec.rb +36 -0
- data/spec/models/license_sources_spec.rb +36 -0
- data/spec/models/lms_name_spec.rb +36 -0
- data/spec/models/lti_credentials_creation_spec.rb +48 -0
- data/spec/models/lti_credentials_spec.rb +90 -0
- data/spec/models/media_attachment_spec.rb +136 -0
- data/spec/models/media_score_sharing_mode_spec.rb +36 -0
- data/spec/models/organization_invitation_creation_spec.rb +48 -0
- data/spec/models/organization_invitation_spec.rb +78 -0
- data/spec/models/organization_roles_spec.rb +36 -0
- data/spec/models/score_collaborator_creation_spec.rb +72 -0
- data/spec/models/score_collaborator_spec.rb +84 -0
- data/spec/models/score_comment_context_spec.rb +78 -0
- data/spec/models/score_comment_creation_spec.rb +72 -0
- data/spec/models/score_comment_spec.rb +130 -0
- data/spec/models/score_comment_update_spec.rb +60 -0
- data/spec/models/score_comments_counts_spec.rb +60 -0
- data/spec/models/score_creation_spec.rb +72 -0
- data/spec/models/score_creation_type_spec.rb +36 -0
- data/spec/models/score_data_encoding_spec.rb +36 -0
- data/spec/models/score_data_spec.rb +36 -0
- data/spec/models/score_details_spec.rb +210 -0
- data/spec/models/score_fork_spec.rb +36 -0
- data/spec/models/score_license_spec.rb +36 -0
- data/spec/models/score_likes_counts_spec.rb +54 -0
- data/spec/models/score_modification_spec.rb +72 -0
- data/spec/models/score_privacy_spec.rb +36 -0
- data/spec/models/score_revision_creation_spec.rb +60 -0
- data/spec/models/score_revision_spec.rb +78 -0
- data/spec/models/score_revision_statistics_spec.rb +48 -0
- data/spec/models/score_rights_spec.rb +48 -0
- data/spec/models/score_source_spec.rb +42 -0
- data/spec/models/score_summary_spec.rb +72 -0
- data/spec/models/score_track_creation_spec.rb +66 -0
- data/spec/models/score_track_point_spec.rb +58 -0
- data/spec/models/score_track_spec.rb +108 -0
- data/spec/models/score_track_state_spec.rb +36 -0
- data/spec/models/score_track_type_spec.rb +36 -0
- data/spec/models/score_track_update_spec.rb +60 -0
- data/spec/models/score_views_counts_spec.rb +54 -0
- data/spec/models/user_admin_update_spec.rb +48 -0
- data/spec/models/user_basics_spec.rb +72 -0
- data/spec/models/user_creation_spec.rb +60 -0
- data/spec/models/user_details_admin_license_spec.rb +66 -0
- data/spec/models/user_details_admin_spec.rb +114 -0
- data/spec/models/user_details_spec.rb +166 -0
- data/spec/models/user_instruments_spec.rb +36 -0
- data/spec/models/user_public_spec.rb +144 -0
- data/spec/models/user_public_summary_spec.rb +96 -0
- data/spec/spec_helper.rb +111 -0
- metadata +640 -0
@@ -0,0 +1,23 @@
|
|
1
|
+
# FlatApi::MediaAttachment
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**type** | **String** | The type of the assignment resolved: * `rich`, `photo`, `video` are attachment types that are automatically resolved from a `link` attachment. * A `flat` attachment is a score document where the unique identifier will be specified in the `score` property. Its sharing mode will be provided in the `sharingMode` property. | [optional]
|
7
|
+
**score** | **String** | An unique Flat score identifier | [optional]
|
8
|
+
**revision** | **String** | An unique revision identifier of a score | [optional]
|
9
|
+
**correct** | **BOOLEAN** | If the attachment is an exercise question, this state will describe if it is correct or not.For exercise assignments only. | [optional]
|
10
|
+
**sharing_mode** | [**MediaScoreSharingMode**](MediaScoreSharingMode.md) | | [optional]
|
11
|
+
**title** | **String** | The resolved title of the attachment | [optional]
|
12
|
+
**description** | **String** | The resolved description of the attachment | [optional]
|
13
|
+
**html** | **String** | If the attachment type is `rich` or `video`, the HTML code of the media to display | [optional]
|
14
|
+
**html_width** | **String** | If the `html` is available, the width of the widget | [optional]
|
15
|
+
**html_height** | **String** | If the `html` is available, the height of the widget | [optional]
|
16
|
+
**url** | **String** | The url of the attachment | [optional]
|
17
|
+
**thumbnail_url** | **String** | If the attachment type is `rich`, `video`, `photo` or `link`, a displayable thumbnail for this attachment | [optional]
|
18
|
+
**thumbnail_width** | **String** | If the `thumbnailUrl` is available, the width of the thumbnail | [optional]
|
19
|
+
**thumbnail_height** | **String** | If the `thumbnailUrl` is available, the width of the thumbnail | [optional]
|
20
|
+
**author_name** | **String** | The resolved author name of the attachment | [optional]
|
21
|
+
**author_url** | **String** | The resolved author url of the attachment | [optional]
|
22
|
+
|
23
|
+
|
@@ -0,0 +1,538 @@
|
|
1
|
+
# FlatApi::OrganizationApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.flat.io/v2*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create_lti_credentials**](OrganizationApi.md#create_lti_credentials) | **POST** /organizations/lti/credentials | Create a new couple of LTI 1.x credentials
|
8
|
+
[**create_organization_invitation**](OrganizationApi.md#create_organization_invitation) | **POST** /organizations/invitations | Create a new invitation to join the organization
|
9
|
+
[**create_organization_user**](OrganizationApi.md#create_organization_user) | **POST** /organizations/users | Create a new user account
|
10
|
+
[**list_lti_credentials**](OrganizationApi.md#list_lti_credentials) | **GET** /organizations/lti/credentials | List LTI 1.x credentials
|
11
|
+
[**list_organization_invitations**](OrganizationApi.md#list_organization_invitations) | **GET** /organizations/invitations | List the organization invitations
|
12
|
+
[**list_organization_users**](OrganizationApi.md#list_organization_users) | **GET** /organizations/users | List the organization users
|
13
|
+
[**remove_organization_invitation**](OrganizationApi.md#remove_organization_invitation) | **DELETE** /organizations/invitations/{invitation} | Remove an organization invitation
|
14
|
+
[**remove_organization_user**](OrganizationApi.md#remove_organization_user) | **DELETE** /organizations/users/{user} | Remove an account from Flat
|
15
|
+
[**revoke_lti_credentials**](OrganizationApi.md#revoke_lti_credentials) | **DELETE** /organizations/lti/credentials/{credentials} | Revoke LTI 1.x credentials
|
16
|
+
[**update_organization_user**](OrganizationApi.md#update_organization_user) | **PUT** /organizations/users/{user} | Update account information
|
17
|
+
|
18
|
+
|
19
|
+
# **create_lti_credentials**
|
20
|
+
> LtiCredentials create_lti_credentials(body)
|
21
|
+
|
22
|
+
Create a new couple of LTI 1.x credentials
|
23
|
+
|
24
|
+
Flat for Education is a Certified LTI Provider. You can use these API methods to automate the creation of LTI credentials. You can read more about our LTI implementation, supported components and LTI Endpoints in our [Developer Documentation](https://flat.io/developers/docs/lti/).
|
25
|
+
|
26
|
+
### Example
|
27
|
+
```ruby
|
28
|
+
# load the gem
|
29
|
+
require 'flat_api'
|
30
|
+
# setup authorization
|
31
|
+
FlatApi.configure do |config|
|
32
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
33
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
34
|
+
end
|
35
|
+
|
36
|
+
api_instance = FlatApi::OrganizationApi.new
|
37
|
+
|
38
|
+
body = FlatApi::LtiCredentialsCreation.new # LtiCredentialsCreation |
|
39
|
+
|
40
|
+
|
41
|
+
begin
|
42
|
+
#Create a new couple of LTI 1.x credentials
|
43
|
+
result = api_instance.create_lti_credentials(body)
|
44
|
+
p result
|
45
|
+
rescue FlatApi::ApiError => e
|
46
|
+
puts "Exception when calling OrganizationApi->create_lti_credentials: #{e}"
|
47
|
+
end
|
48
|
+
```
|
49
|
+
|
50
|
+
### Parameters
|
51
|
+
|
52
|
+
Name | Type | Description | Notes
|
53
|
+
------------- | ------------- | ------------- | -------------
|
54
|
+
**body** | [**LtiCredentialsCreation**](LtiCredentialsCreation.md)| |
|
55
|
+
|
56
|
+
### Return type
|
57
|
+
|
58
|
+
[**LtiCredentials**](LtiCredentials.md)
|
59
|
+
|
60
|
+
### Authorization
|
61
|
+
|
62
|
+
[OAuth2](../README.md#OAuth2)
|
63
|
+
|
64
|
+
### HTTP request headers
|
65
|
+
|
66
|
+
- **Content-Type**: application/json
|
67
|
+
- **Accept**: application/json
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
# **create_organization_invitation**
|
72
|
+
> OrganizationInvitation create_organization_invitation(opts)
|
73
|
+
|
74
|
+
Create a new invitation to join the organization
|
75
|
+
|
76
|
+
This method creates and sends invitation for teachers and admins. Invitations can only be used by new Flat users or users who are not part of the organization yet. If the email of the user is already associated to a user of your organization, the API will simply update the role of the existing user and won't send an invitation. In this case, the property `usedBy` will be directly filled with the uniquer identifier of the corresponding user.
|
77
|
+
|
78
|
+
### Example
|
79
|
+
```ruby
|
80
|
+
# load the gem
|
81
|
+
require 'flat_api'
|
82
|
+
# setup authorization
|
83
|
+
FlatApi.configure do |config|
|
84
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
85
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
86
|
+
end
|
87
|
+
|
88
|
+
api_instance = FlatApi::OrganizationApi.new
|
89
|
+
|
90
|
+
opts = {
|
91
|
+
body: FlatApi::OrganizationInvitationCreation.new # OrganizationInvitationCreation |
|
92
|
+
}
|
93
|
+
|
94
|
+
begin
|
95
|
+
#Create a new invitation to join the organization
|
96
|
+
result = api_instance.create_organization_invitation(opts)
|
97
|
+
p result
|
98
|
+
rescue FlatApi::ApiError => e
|
99
|
+
puts "Exception when calling OrganizationApi->create_organization_invitation: #{e}"
|
100
|
+
end
|
101
|
+
```
|
102
|
+
|
103
|
+
### Parameters
|
104
|
+
|
105
|
+
Name | Type | Description | Notes
|
106
|
+
------------- | ------------- | ------------- | -------------
|
107
|
+
**body** | [**OrganizationInvitationCreation**](OrganizationInvitationCreation.md)| | [optional]
|
108
|
+
|
109
|
+
### Return type
|
110
|
+
|
111
|
+
[**OrganizationInvitation**](OrganizationInvitation.md)
|
112
|
+
|
113
|
+
### Authorization
|
114
|
+
|
115
|
+
[OAuth2](../README.md#OAuth2)
|
116
|
+
|
117
|
+
### HTTP request headers
|
118
|
+
|
119
|
+
- **Content-Type**: application/json
|
120
|
+
- **Accept**: application/json
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
# **create_organization_user**
|
125
|
+
> UserDetailsAdmin create_organization_user(opts)
|
126
|
+
|
127
|
+
Create a new user account
|
128
|
+
|
129
|
+
### Example
|
130
|
+
```ruby
|
131
|
+
# load the gem
|
132
|
+
require 'flat_api'
|
133
|
+
# setup authorization
|
134
|
+
FlatApi.configure do |config|
|
135
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
136
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
137
|
+
end
|
138
|
+
|
139
|
+
api_instance = FlatApi::OrganizationApi.new
|
140
|
+
|
141
|
+
opts = {
|
142
|
+
body: FlatApi::UserCreation.new # UserCreation |
|
143
|
+
}
|
144
|
+
|
145
|
+
begin
|
146
|
+
#Create a new user account
|
147
|
+
result = api_instance.create_organization_user(opts)
|
148
|
+
p result
|
149
|
+
rescue FlatApi::ApiError => e
|
150
|
+
puts "Exception when calling OrganizationApi->create_organization_user: #{e}"
|
151
|
+
end
|
152
|
+
```
|
153
|
+
|
154
|
+
### Parameters
|
155
|
+
|
156
|
+
Name | Type | Description | Notes
|
157
|
+
------------- | ------------- | ------------- | -------------
|
158
|
+
**body** | [**UserCreation**](UserCreation.md)| | [optional]
|
159
|
+
|
160
|
+
### Return type
|
161
|
+
|
162
|
+
[**UserDetailsAdmin**](UserDetailsAdmin.md)
|
163
|
+
|
164
|
+
### Authorization
|
165
|
+
|
166
|
+
[OAuth2](../README.md#OAuth2)
|
167
|
+
|
168
|
+
### HTTP request headers
|
169
|
+
|
170
|
+
- **Content-Type**: application/json
|
171
|
+
- **Accept**: application/json
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
# **list_lti_credentials**
|
176
|
+
> Array<LtiCredentials> list_lti_credentials
|
177
|
+
|
178
|
+
List LTI 1.x credentials
|
179
|
+
|
180
|
+
### Example
|
181
|
+
```ruby
|
182
|
+
# load the gem
|
183
|
+
require 'flat_api'
|
184
|
+
# setup authorization
|
185
|
+
FlatApi.configure do |config|
|
186
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
187
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
188
|
+
end
|
189
|
+
|
190
|
+
api_instance = FlatApi::OrganizationApi.new
|
191
|
+
|
192
|
+
begin
|
193
|
+
#List LTI 1.x credentials
|
194
|
+
result = api_instance.list_lti_credentials
|
195
|
+
p result
|
196
|
+
rescue FlatApi::ApiError => e
|
197
|
+
puts "Exception when calling OrganizationApi->list_lti_credentials: #{e}"
|
198
|
+
end
|
199
|
+
```
|
200
|
+
|
201
|
+
### Parameters
|
202
|
+
This endpoint does not need any parameter.
|
203
|
+
|
204
|
+
### Return type
|
205
|
+
|
206
|
+
[**Array<LtiCredentials>**](LtiCredentials.md)
|
207
|
+
|
208
|
+
### Authorization
|
209
|
+
|
210
|
+
[OAuth2](../README.md#OAuth2)
|
211
|
+
|
212
|
+
### HTTP request headers
|
213
|
+
|
214
|
+
- **Content-Type**: application/json
|
215
|
+
- **Accept**: application/json
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
# **list_organization_invitations**
|
220
|
+
> Array<OrganizationInvitation> list_organization_invitations(opts)
|
221
|
+
|
222
|
+
List the organization invitations
|
223
|
+
|
224
|
+
### Example
|
225
|
+
```ruby
|
226
|
+
# load the gem
|
227
|
+
require 'flat_api'
|
228
|
+
# setup authorization
|
229
|
+
FlatApi.configure do |config|
|
230
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
231
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
232
|
+
end
|
233
|
+
|
234
|
+
api_instance = FlatApi::OrganizationApi.new
|
235
|
+
|
236
|
+
opts = {
|
237
|
+
role: "role_example", # String | Filter users by role
|
238
|
+
limit: 50, # Integer | This is the maximum number of objects that may be returned
|
239
|
+
_next: "_next_example", # String | An opaque string cursor to fetch the next page of data. The paginated API URLs are returned in the `Link` header when requesting the API. These URLs will contain a `next` and `previous` cursor based on the available data.
|
240
|
+
previous: "previous_example" # String | An opaque string cursor to fetch the previous page of data. The paginated API URLs are returned in the `Link` header when requesting the API. These URLs will contain a `next` and `previous` cursor based on the available data.
|
241
|
+
}
|
242
|
+
|
243
|
+
begin
|
244
|
+
#List the organization invitations
|
245
|
+
result = api_instance.list_organization_invitations(opts)
|
246
|
+
p result
|
247
|
+
rescue FlatApi::ApiError => e
|
248
|
+
puts "Exception when calling OrganizationApi->list_organization_invitations: #{e}"
|
249
|
+
end
|
250
|
+
```
|
251
|
+
|
252
|
+
### Parameters
|
253
|
+
|
254
|
+
Name | Type | Description | Notes
|
255
|
+
------------- | ------------- | ------------- | -------------
|
256
|
+
**role** | **String**| Filter users by role | [optional]
|
257
|
+
**limit** | **Integer**| This is the maximum number of objects that may be returned | [optional] [default to 50]
|
258
|
+
**_next** | **String**| An opaque string cursor to fetch the next page of data. The paginated API URLs are returned in the `Link` header when requesting the API. These URLs will contain a `next` and `previous` cursor based on the available data. | [optional]
|
259
|
+
**previous** | **String**| An opaque string cursor to fetch the previous page of data. The paginated API URLs are returned in the `Link` header when requesting the API. These URLs will contain a `next` and `previous` cursor based on the available data. | [optional]
|
260
|
+
|
261
|
+
### Return type
|
262
|
+
|
263
|
+
[**Array<OrganizationInvitation>**](OrganizationInvitation.md)
|
264
|
+
|
265
|
+
### Authorization
|
266
|
+
|
267
|
+
[OAuth2](../README.md#OAuth2)
|
268
|
+
|
269
|
+
### HTTP request headers
|
270
|
+
|
271
|
+
- **Content-Type**: application/json
|
272
|
+
- **Accept**: application/json
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
# **list_organization_users**
|
277
|
+
> Array<UserDetailsAdmin> list_organization_users(opts)
|
278
|
+
|
279
|
+
List the organization users
|
280
|
+
|
281
|
+
### Example
|
282
|
+
```ruby
|
283
|
+
# load the gem
|
284
|
+
require 'flat_api'
|
285
|
+
# setup authorization
|
286
|
+
FlatApi.configure do |config|
|
287
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
288
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
289
|
+
end
|
290
|
+
|
291
|
+
api_instance = FlatApi::OrganizationApi.new
|
292
|
+
|
293
|
+
opts = {
|
294
|
+
role: "role_example", # String | Filter users by role
|
295
|
+
limit: 50, # Integer | This is the maximum number of objects that may be returned
|
296
|
+
_next: "_next_example", # String | An opaque string cursor to fetch the next page of data. The paginated API URLs are returned in the `Link` header when requesting the API. These URLs will contain a `next` and `previous` cursor based on the available data.
|
297
|
+
previous: "previous_example" # String | An opaque string cursor to fetch the previous page of data. The paginated API URLs are returned in the `Link` header when requesting the API. These URLs will contain a `next` and `previous` cursor based on the available data.
|
298
|
+
}
|
299
|
+
|
300
|
+
begin
|
301
|
+
#List the organization users
|
302
|
+
result = api_instance.list_organization_users(opts)
|
303
|
+
p result
|
304
|
+
rescue FlatApi::ApiError => e
|
305
|
+
puts "Exception when calling OrganizationApi->list_organization_users: #{e}"
|
306
|
+
end
|
307
|
+
```
|
308
|
+
|
309
|
+
### Parameters
|
310
|
+
|
311
|
+
Name | Type | Description | Notes
|
312
|
+
------------- | ------------- | ------------- | -------------
|
313
|
+
**role** | **String**| Filter users by role | [optional]
|
314
|
+
**limit** | **Integer**| This is the maximum number of objects that may be returned | [optional] [default to 50]
|
315
|
+
**_next** | **String**| An opaque string cursor to fetch the next page of data. The paginated API URLs are returned in the `Link` header when requesting the API. These URLs will contain a `next` and `previous` cursor based on the available data. | [optional]
|
316
|
+
**previous** | **String**| An opaque string cursor to fetch the previous page of data. The paginated API URLs are returned in the `Link` header when requesting the API. These URLs will contain a `next` and `previous` cursor based on the available data. | [optional]
|
317
|
+
|
318
|
+
### Return type
|
319
|
+
|
320
|
+
[**Array<UserDetailsAdmin>**](UserDetailsAdmin.md)
|
321
|
+
|
322
|
+
### Authorization
|
323
|
+
|
324
|
+
[OAuth2](../README.md#OAuth2)
|
325
|
+
|
326
|
+
### HTTP request headers
|
327
|
+
|
328
|
+
- **Content-Type**: application/json
|
329
|
+
- **Accept**: application/json
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
# **remove_organization_invitation**
|
334
|
+
> remove_organization_invitation(invitation)
|
335
|
+
|
336
|
+
Remove an organization invitation
|
337
|
+
|
338
|
+
### Example
|
339
|
+
```ruby
|
340
|
+
# load the gem
|
341
|
+
require 'flat_api'
|
342
|
+
# setup authorization
|
343
|
+
FlatApi.configure do |config|
|
344
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
345
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
346
|
+
end
|
347
|
+
|
348
|
+
api_instance = FlatApi::OrganizationApi.new
|
349
|
+
|
350
|
+
invitation = "invitation_example" # String | Unique identifier of the invitation
|
351
|
+
|
352
|
+
|
353
|
+
begin
|
354
|
+
#Remove an organization invitation
|
355
|
+
api_instance.remove_organization_invitation(invitation)
|
356
|
+
rescue FlatApi::ApiError => e
|
357
|
+
puts "Exception when calling OrganizationApi->remove_organization_invitation: #{e}"
|
358
|
+
end
|
359
|
+
```
|
360
|
+
|
361
|
+
### Parameters
|
362
|
+
|
363
|
+
Name | Type | Description | Notes
|
364
|
+
------------- | ------------- | ------------- | -------------
|
365
|
+
**invitation** | **String**| Unique identifier of the invitation |
|
366
|
+
|
367
|
+
### Return type
|
368
|
+
|
369
|
+
nil (empty response body)
|
370
|
+
|
371
|
+
### Authorization
|
372
|
+
|
373
|
+
[OAuth2](../README.md#OAuth2)
|
374
|
+
|
375
|
+
### HTTP request headers
|
376
|
+
|
377
|
+
- **Content-Type**: application/json
|
378
|
+
- **Accept**: application/json
|
379
|
+
|
380
|
+
|
381
|
+
|
382
|
+
# **remove_organization_user**
|
383
|
+
> remove_organization_user(user, opts)
|
384
|
+
|
385
|
+
Remove an account from Flat
|
386
|
+
|
387
|
+
This operation removes an account from Flat and its data, including: * The music scores created by this user (documents, history, comments, collaboration information) * Education related data (assignments and classroom information)
|
388
|
+
|
389
|
+
### Example
|
390
|
+
```ruby
|
391
|
+
# load the gem
|
392
|
+
require 'flat_api'
|
393
|
+
# setup authorization
|
394
|
+
FlatApi.configure do |config|
|
395
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
396
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
397
|
+
end
|
398
|
+
|
399
|
+
api_instance = FlatApi::OrganizationApi.new
|
400
|
+
|
401
|
+
user = "user_example" # String | Unique identifier of the Flat account
|
402
|
+
|
403
|
+
opts = {
|
404
|
+
convert_to_individual: true # BOOLEAN | If `true`, the account will be only removed from the organization and converted into an individual account on our public website, https://flat.io. This operation will remove the education-related data from the account. Before realizing this operation, you need to be sure that the user is at least 13 years old and that this one has read and agreed to the Individual Terms of Services of Flat available on https://flat.io/legal.
|
405
|
+
}
|
406
|
+
|
407
|
+
begin
|
408
|
+
#Remove an account from Flat
|
409
|
+
api_instance.remove_organization_user(user, opts)
|
410
|
+
rescue FlatApi::ApiError => e
|
411
|
+
puts "Exception when calling OrganizationApi->remove_organization_user: #{e}"
|
412
|
+
end
|
413
|
+
```
|
414
|
+
|
415
|
+
### Parameters
|
416
|
+
|
417
|
+
Name | Type | Description | Notes
|
418
|
+
------------- | ------------- | ------------- | -------------
|
419
|
+
**user** | **String**| Unique identifier of the Flat account |
|
420
|
+
**convert_to_individual** | **BOOLEAN**| If `true`, the account will be only removed from the organization and converted into an individual account on our public website, https://flat.io. This operation will remove the education-related data from the account. Before realizing this operation, you need to be sure that the user is at least 13 years old and that this one has read and agreed to the Individual Terms of Services of Flat available on https://flat.io/legal. | [optional]
|
421
|
+
|
422
|
+
### Return type
|
423
|
+
|
424
|
+
nil (empty response body)
|
425
|
+
|
426
|
+
### Authorization
|
427
|
+
|
428
|
+
[OAuth2](../README.md#OAuth2)
|
429
|
+
|
430
|
+
### HTTP request headers
|
431
|
+
|
432
|
+
- **Content-Type**: application/json
|
433
|
+
- **Accept**: application/json
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
# **revoke_lti_credentials**
|
438
|
+
> revoke_lti_credentials(credentials)
|
439
|
+
|
440
|
+
Revoke LTI 1.x credentials
|
441
|
+
|
442
|
+
### Example
|
443
|
+
```ruby
|
444
|
+
# load the gem
|
445
|
+
require 'flat_api'
|
446
|
+
# setup authorization
|
447
|
+
FlatApi.configure do |config|
|
448
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
449
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
450
|
+
end
|
451
|
+
|
452
|
+
api_instance = FlatApi::OrganizationApi.new
|
453
|
+
|
454
|
+
credentials = "credentials_example" # String | Credentials unique identifier
|
455
|
+
|
456
|
+
|
457
|
+
begin
|
458
|
+
#Revoke LTI 1.x credentials
|
459
|
+
api_instance.revoke_lti_credentials(credentials)
|
460
|
+
rescue FlatApi::ApiError => e
|
461
|
+
puts "Exception when calling OrganizationApi->revoke_lti_credentials: #{e}"
|
462
|
+
end
|
463
|
+
```
|
464
|
+
|
465
|
+
### Parameters
|
466
|
+
|
467
|
+
Name | Type | Description | Notes
|
468
|
+
------------- | ------------- | ------------- | -------------
|
469
|
+
**credentials** | **String**| Credentials unique identifier |
|
470
|
+
|
471
|
+
### Return type
|
472
|
+
|
473
|
+
nil (empty response body)
|
474
|
+
|
475
|
+
### Authorization
|
476
|
+
|
477
|
+
[OAuth2](../README.md#OAuth2)
|
478
|
+
|
479
|
+
### HTTP request headers
|
480
|
+
|
481
|
+
- **Content-Type**: application/json
|
482
|
+
- **Accept**: application/json
|
483
|
+
|
484
|
+
|
485
|
+
|
486
|
+
# **update_organization_user**
|
487
|
+
> UserDetailsAdmin update_organization_user(userbody)
|
488
|
+
|
489
|
+
Update account information
|
490
|
+
|
491
|
+
### Example
|
492
|
+
```ruby
|
493
|
+
# load the gem
|
494
|
+
require 'flat_api'
|
495
|
+
# setup authorization
|
496
|
+
FlatApi.configure do |config|
|
497
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
498
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
499
|
+
end
|
500
|
+
|
501
|
+
api_instance = FlatApi::OrganizationApi.new
|
502
|
+
|
503
|
+
user = "user_example" # String | Unique identifier of the Flat account
|
504
|
+
|
505
|
+
body = FlatApi::UserAdminUpdate.new # UserAdminUpdate |
|
506
|
+
|
507
|
+
|
508
|
+
begin
|
509
|
+
#Update account information
|
510
|
+
result = api_instance.update_organization_user(userbody)
|
511
|
+
p result
|
512
|
+
rescue FlatApi::ApiError => e
|
513
|
+
puts "Exception when calling OrganizationApi->update_organization_user: #{e}"
|
514
|
+
end
|
515
|
+
```
|
516
|
+
|
517
|
+
### Parameters
|
518
|
+
|
519
|
+
Name | Type | Description | Notes
|
520
|
+
------------- | ------------- | ------------- | -------------
|
521
|
+
**user** | **String**| Unique identifier of the Flat account |
|
522
|
+
**body** | [**UserAdminUpdate**](UserAdminUpdate.md)| |
|
523
|
+
|
524
|
+
### Return type
|
525
|
+
|
526
|
+
[**UserDetailsAdmin**](UserDetailsAdmin.md)
|
527
|
+
|
528
|
+
### Authorization
|
529
|
+
|
530
|
+
[OAuth2](../README.md#OAuth2)
|
531
|
+
|
532
|
+
### HTTP request headers
|
533
|
+
|
534
|
+
- **Content-Type**: application/json
|
535
|
+
- **Accept**: application/json
|
536
|
+
|
537
|
+
|
538
|
+
|