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,14 @@
|
|
1
|
+
# FlatApi::OrganizationInvitation
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | The invitation unique identifier | [optional]
|
7
|
+
**organization** | **String** | The unique identifier of the Organization owning this class | [optional]
|
8
|
+
**organization_role** | [**OrganizationRoles**](OrganizationRoles.md) | | [optional]
|
9
|
+
**custom_code** | **String** | Enrollment code to use when joining this organization | [optional]
|
10
|
+
**email** | **String** | The email address this invitation was sent to | [optional]
|
11
|
+
**invited_by** | **String** | The unique identifier of the User who created this invitation | [optional]
|
12
|
+
**used_by** | **String** | The unique identifier of the User who used this invitation | [optional]
|
13
|
+
|
14
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# FlatApi::OrganizationInvitationCreation
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**email** | **String** | The email address you want to send the invitation to | [optional]
|
7
|
+
**organization_role** | [**OrganizationRoles**](OrganizationRoles.md) | | [optional]
|
8
|
+
|
9
|
+
|
data/docs/ScoreApi.md
ADDED
@@ -0,0 +1,1605 @@
|
|
1
|
+
# FlatApi::ScoreApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.flat.io/v2*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**add_score_collaborator**](ScoreApi.md#add_score_collaborator) | **POST** /scores/{score}/collaborators | Add a new collaborator
|
8
|
+
[**add_score_track**](ScoreApi.md#add_score_track) | **POST** /scores/{score}/tracks | Add a new video or audio track to the score
|
9
|
+
[**create_score**](ScoreApi.md#create_score) | **POST** /scores | Create a new score
|
10
|
+
[**create_score_revision**](ScoreApi.md#create_score_revision) | **POST** /scores/{score}/revisions | Create a new revision
|
11
|
+
[**delete_score**](ScoreApi.md#delete_score) | **DELETE** /scores/{score} | Delete a score
|
12
|
+
[**delete_score_comment**](ScoreApi.md#delete_score_comment) | **DELETE** /scores/{score}/comments/{comment} | Delete a comment
|
13
|
+
[**delete_score_track**](ScoreApi.md#delete_score_track) | **DELETE** /scores/{score}/tracks/{track} | Remove an audio or video track linked to the score
|
14
|
+
[**edit_score**](ScoreApi.md#edit_score) | **PUT** /scores/{score} | Edit a score's metadata
|
15
|
+
[**fork_score**](ScoreApi.md#fork_score) | **POST** /scores/{score}/fork | Fork a score
|
16
|
+
[**ger_user_likes**](ScoreApi.md#ger_user_likes) | **GET** /users/{user}/likes | List liked scores
|
17
|
+
[**get_group_scores**](ScoreApi.md#get_group_scores) | **GET** /groups/{group}/scores | List group's scores
|
18
|
+
[**get_score**](ScoreApi.md#get_score) | **GET** /scores/{score} | Get a score's metadata
|
19
|
+
[**get_score_collaborator**](ScoreApi.md#get_score_collaborator) | **GET** /scores/{score}/collaborators/{collaborator} | Get a collaborator
|
20
|
+
[**get_score_collaborators**](ScoreApi.md#get_score_collaborators) | **GET** /scores/{score}/collaborators | List the collaborators
|
21
|
+
[**get_score_comments**](ScoreApi.md#get_score_comments) | **GET** /scores/{score}/comments | List comments
|
22
|
+
[**get_score_revision**](ScoreApi.md#get_score_revision) | **GET** /scores/{score}/revisions/{revision} | Get a score revision
|
23
|
+
[**get_score_revision_data**](ScoreApi.md#get_score_revision_data) | **GET** /scores/{score}/revisions/{revision}/{format} | Get a score revision data
|
24
|
+
[**get_score_revisions**](ScoreApi.md#get_score_revisions) | **GET** /scores/{score}/revisions | List the revisions
|
25
|
+
[**get_score_submissions**](ScoreApi.md#get_score_submissions) | **GET** /scores/{score}/submissions | List submissions related to the score
|
26
|
+
[**get_score_track**](ScoreApi.md#get_score_track) | **GET** /scores/{score}/tracks/{track} | Retrieve the details of an audio or video track linked to a score
|
27
|
+
[**get_user_scores**](ScoreApi.md#get_user_scores) | **GET** /users/{user}/scores | List user's scores
|
28
|
+
[**list_score_tracks**](ScoreApi.md#list_score_tracks) | **GET** /scores/{score}/tracks | List the audio or video tracks linked to a score
|
29
|
+
[**mark_score_comment_resolved**](ScoreApi.md#mark_score_comment_resolved) | **PUT** /scores/{score}/comments/{comment}/resolved | Mark the comment as resolved
|
30
|
+
[**mark_score_comment_unresolved**](ScoreApi.md#mark_score_comment_unresolved) | **DELETE** /scores/{score}/comments/{comment}/resolved | Mark the comment as unresolved
|
31
|
+
[**post_score_comment**](ScoreApi.md#post_score_comment) | **POST** /scores/{score}/comments | Post a new comment
|
32
|
+
[**remove_score_collaborator**](ScoreApi.md#remove_score_collaborator) | **DELETE** /scores/{score}/collaborators/{collaborator} | Delete a collaborator
|
33
|
+
[**update_score_comment**](ScoreApi.md#update_score_comment) | **PUT** /scores/{score}/comments/{comment} | Update an existing comment
|
34
|
+
[**update_score_track**](ScoreApi.md#update_score_track) | **PUT** /scores/{score}/tracks/{track} | Update an audio or video track linked to a score
|
35
|
+
|
36
|
+
|
37
|
+
# **add_score_collaborator**
|
38
|
+
> ScoreCollaborator add_score_collaborator(score, body)
|
39
|
+
|
40
|
+
Add a new collaborator
|
41
|
+
|
42
|
+
Share a score with a single user or a group. This API call allows to add, invite and update the collaborators of a document. - To add an existing Flat user to the document, specify its unique identifier in the `user` property. - To invite an external user to the document, specify its email in the `userEmail` property. - To add a Flat group to the document, specify its unique identifier in the `group` property. - To update an existing collaborator, process the same request with different rights.
|
43
|
+
|
44
|
+
### Example
|
45
|
+
```ruby
|
46
|
+
# load the gem
|
47
|
+
require 'flat_api'
|
48
|
+
# setup authorization
|
49
|
+
FlatApi.configure do |config|
|
50
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
51
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
52
|
+
end
|
53
|
+
|
54
|
+
api_instance = FlatApi::ScoreApi.new
|
55
|
+
|
56
|
+
score = "score_example" # String | Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`).
|
57
|
+
|
58
|
+
body = FlatApi::ScoreCollaboratorCreation.new # ScoreCollaboratorCreation |
|
59
|
+
|
60
|
+
|
61
|
+
begin
|
62
|
+
#Add a new collaborator
|
63
|
+
result = api_instance.add_score_collaborator(score, body)
|
64
|
+
p result
|
65
|
+
rescue FlatApi::ApiError => e
|
66
|
+
puts "Exception when calling ScoreApi->add_score_collaborator: #{e}"
|
67
|
+
end
|
68
|
+
```
|
69
|
+
|
70
|
+
### Parameters
|
71
|
+
|
72
|
+
Name | Type | Description | Notes
|
73
|
+
------------- | ------------- | ------------- | -------------
|
74
|
+
**score** | **String**| Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`). |
|
75
|
+
**body** | [**ScoreCollaboratorCreation**](ScoreCollaboratorCreation.md)| |
|
76
|
+
|
77
|
+
### Return type
|
78
|
+
|
79
|
+
[**ScoreCollaborator**](ScoreCollaborator.md)
|
80
|
+
|
81
|
+
### Authorization
|
82
|
+
|
83
|
+
[OAuth2](../README.md#OAuth2)
|
84
|
+
|
85
|
+
### HTTP request headers
|
86
|
+
|
87
|
+
- **Content-Type**: application/json
|
88
|
+
- **Accept**: application/json
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
# **add_score_track**
|
93
|
+
> ScoreTrack add_score_track(score, body)
|
94
|
+
|
95
|
+
Add a new video or audio track to the score
|
96
|
+
|
97
|
+
Use this method to add new track to the score. This track can then be played on flat.io or in an embedded score. This API method support medias hosted on SoundCloud, YouTube and Vimeo.
|
98
|
+
|
99
|
+
### Example
|
100
|
+
```ruby
|
101
|
+
# load the gem
|
102
|
+
require 'flat_api'
|
103
|
+
# setup authorization
|
104
|
+
FlatApi.configure do |config|
|
105
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
106
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
107
|
+
end
|
108
|
+
|
109
|
+
api_instance = FlatApi::ScoreApi.new
|
110
|
+
|
111
|
+
score = "score_example" # String | Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`).
|
112
|
+
|
113
|
+
body = FlatApi::ScoreTrackCreation.new # ScoreTrackCreation |
|
114
|
+
|
115
|
+
|
116
|
+
begin
|
117
|
+
#Add a new video or audio track to the score
|
118
|
+
result = api_instance.add_score_track(score, body)
|
119
|
+
p result
|
120
|
+
rescue FlatApi::ApiError => e
|
121
|
+
puts "Exception when calling ScoreApi->add_score_track: #{e}"
|
122
|
+
end
|
123
|
+
```
|
124
|
+
|
125
|
+
### Parameters
|
126
|
+
|
127
|
+
Name | Type | Description | Notes
|
128
|
+
------------- | ------------- | ------------- | -------------
|
129
|
+
**score** | **String**| Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`). |
|
130
|
+
**body** | [**ScoreTrackCreation**](ScoreTrackCreation.md)| |
|
131
|
+
|
132
|
+
### Return type
|
133
|
+
|
134
|
+
[**ScoreTrack**](ScoreTrack.md)
|
135
|
+
|
136
|
+
### Authorization
|
137
|
+
|
138
|
+
[OAuth2](../README.md#OAuth2)
|
139
|
+
|
140
|
+
### HTTP request headers
|
141
|
+
|
142
|
+
- **Content-Type**: application/json
|
143
|
+
- **Accept**: application/json
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
# **create_score**
|
148
|
+
> ScoreDetails create_score(body)
|
149
|
+
|
150
|
+
Create a new score
|
151
|
+
|
152
|
+
Use this API method to **create a new music score in the current User account**. You will need a MusicXML 3 (`vnd.recordare.musicxml` or `vnd.recordare.musicxml+xml`) or a MIDI (`audio/midi`) file to create the new Flat document. This API call will automatically create the first revision of the document, the score can be modified by the using our web application or by uploading a new revision of this file (`POST /v2/scores/{score}/revisions/{revision}`). The currently authenticated user will be granted owner of the file and will be able to add other collaborators (users and groups).
|
153
|
+
|
154
|
+
### Example
|
155
|
+
```ruby
|
156
|
+
# load the gem
|
157
|
+
require 'flat_api'
|
158
|
+
# setup authorization
|
159
|
+
FlatApi.configure do |config|
|
160
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
161
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
162
|
+
end
|
163
|
+
|
164
|
+
api_instance = FlatApi::ScoreApi.new
|
165
|
+
|
166
|
+
body = FlatApi::ScoreCreation.new # ScoreCreation |
|
167
|
+
|
168
|
+
|
169
|
+
begin
|
170
|
+
#Create a new score
|
171
|
+
result = api_instance.create_score(body)
|
172
|
+
p result
|
173
|
+
rescue FlatApi::ApiError => e
|
174
|
+
puts "Exception when calling ScoreApi->create_score: #{e}"
|
175
|
+
end
|
176
|
+
```
|
177
|
+
|
178
|
+
### Parameters
|
179
|
+
|
180
|
+
Name | Type | Description | Notes
|
181
|
+
------------- | ------------- | ------------- | -------------
|
182
|
+
**body** | [**ScoreCreation**](ScoreCreation.md)| |
|
183
|
+
|
184
|
+
### Return type
|
185
|
+
|
186
|
+
[**ScoreDetails**](ScoreDetails.md)
|
187
|
+
|
188
|
+
### Authorization
|
189
|
+
|
190
|
+
[OAuth2](../README.md#OAuth2)
|
191
|
+
|
192
|
+
### HTTP request headers
|
193
|
+
|
194
|
+
- **Content-Type**: application/json
|
195
|
+
- **Accept**: application/json
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
# **create_score_revision**
|
200
|
+
> ScoreRevision create_score_revision(score, body)
|
201
|
+
|
202
|
+
Create a new revision
|
203
|
+
|
204
|
+
Update a score by uploading a new revision for this one.
|
205
|
+
|
206
|
+
### Example
|
207
|
+
```ruby
|
208
|
+
# load the gem
|
209
|
+
require 'flat_api'
|
210
|
+
# setup authorization
|
211
|
+
FlatApi.configure do |config|
|
212
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
213
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
214
|
+
end
|
215
|
+
|
216
|
+
api_instance = FlatApi::ScoreApi.new
|
217
|
+
|
218
|
+
score = "score_example" # String | Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`).
|
219
|
+
|
220
|
+
body = FlatApi::ScoreRevisionCreation.new # ScoreRevisionCreation |
|
221
|
+
|
222
|
+
|
223
|
+
begin
|
224
|
+
#Create a new revision
|
225
|
+
result = api_instance.create_score_revision(score, body)
|
226
|
+
p result
|
227
|
+
rescue FlatApi::ApiError => e
|
228
|
+
puts "Exception when calling ScoreApi->create_score_revision: #{e}"
|
229
|
+
end
|
230
|
+
```
|
231
|
+
|
232
|
+
### Parameters
|
233
|
+
|
234
|
+
Name | Type | Description | Notes
|
235
|
+
------------- | ------------- | ------------- | -------------
|
236
|
+
**score** | **String**| Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`). |
|
237
|
+
**body** | [**ScoreRevisionCreation**](ScoreRevisionCreation.md)| |
|
238
|
+
|
239
|
+
### Return type
|
240
|
+
|
241
|
+
[**ScoreRevision**](ScoreRevision.md)
|
242
|
+
|
243
|
+
### Authorization
|
244
|
+
|
245
|
+
[OAuth2](../README.md#OAuth2)
|
246
|
+
|
247
|
+
### HTTP request headers
|
248
|
+
|
249
|
+
- **Content-Type**: application/json
|
250
|
+
- **Accept**: application/json
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
# **delete_score**
|
255
|
+
> delete_score(score, )
|
256
|
+
|
257
|
+
Delete a score
|
258
|
+
|
259
|
+
This API call will schedule the deletion of the score, its revisions, and whole history. The user calling this API method must have the `aclAdmin` rights on this document to process this action. The score won't be accessible anymore after calling this method and the user's quota will directly be updated.
|
260
|
+
|
261
|
+
### Example
|
262
|
+
```ruby
|
263
|
+
# load the gem
|
264
|
+
require 'flat_api'
|
265
|
+
# setup authorization
|
266
|
+
FlatApi.configure do |config|
|
267
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
268
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
269
|
+
end
|
270
|
+
|
271
|
+
api_instance = FlatApi::ScoreApi.new
|
272
|
+
|
273
|
+
score = "score_example" # String | Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`).
|
274
|
+
|
275
|
+
|
276
|
+
begin
|
277
|
+
#Delete a score
|
278
|
+
api_instance.delete_score(score, )
|
279
|
+
rescue FlatApi::ApiError => e
|
280
|
+
puts "Exception when calling ScoreApi->delete_score: #{e}"
|
281
|
+
end
|
282
|
+
```
|
283
|
+
|
284
|
+
### Parameters
|
285
|
+
|
286
|
+
Name | Type | Description | Notes
|
287
|
+
------------- | ------------- | ------------- | -------------
|
288
|
+
**score** | **String**| Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`). |
|
289
|
+
|
290
|
+
### Return type
|
291
|
+
|
292
|
+
nil (empty response body)
|
293
|
+
|
294
|
+
### Authorization
|
295
|
+
|
296
|
+
[OAuth2](../README.md#OAuth2)
|
297
|
+
|
298
|
+
### HTTP request headers
|
299
|
+
|
300
|
+
- **Content-Type**: application/json
|
301
|
+
- **Accept**: application/json
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
# **delete_score_comment**
|
306
|
+
> delete_score_comment(score, comment, opts)
|
307
|
+
|
308
|
+
Delete a comment
|
309
|
+
|
310
|
+
### Example
|
311
|
+
```ruby
|
312
|
+
# load the gem
|
313
|
+
require 'flat_api'
|
314
|
+
# setup authorization
|
315
|
+
FlatApi.configure do |config|
|
316
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
317
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
318
|
+
end
|
319
|
+
|
320
|
+
api_instance = FlatApi::ScoreApi.new
|
321
|
+
|
322
|
+
score = "score_example" # String | Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`).
|
323
|
+
|
324
|
+
comment = "comment_example" # String | Unique identifier of a sheet music comment
|
325
|
+
|
326
|
+
opts = {
|
327
|
+
sharing_key: "sharing_key_example", # String | This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
|
328
|
+
}
|
329
|
+
|
330
|
+
begin
|
331
|
+
#Delete a comment
|
332
|
+
api_instance.delete_score_comment(score, comment, opts)
|
333
|
+
rescue FlatApi::ApiError => e
|
334
|
+
puts "Exception when calling ScoreApi->delete_score_comment: #{e}"
|
335
|
+
end
|
336
|
+
```
|
337
|
+
|
338
|
+
### Parameters
|
339
|
+
|
340
|
+
Name | Type | Description | Notes
|
341
|
+
------------- | ------------- | ------------- | -------------
|
342
|
+
**score** | **String**| Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`). |
|
343
|
+
**comment** | **String**| Unique identifier of a sheet music comment |
|
344
|
+
**sharing_key** | **String**| This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
|
345
|
+
|
346
|
+
### Return type
|
347
|
+
|
348
|
+
nil (empty response body)
|
349
|
+
|
350
|
+
### Authorization
|
351
|
+
|
352
|
+
[OAuth2](../README.md#OAuth2)
|
353
|
+
|
354
|
+
### HTTP request headers
|
355
|
+
|
356
|
+
- **Content-Type**: application/json
|
357
|
+
- **Accept**: application/json
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
# **delete_score_track**
|
362
|
+
> delete_score_track(score, track)
|
363
|
+
|
364
|
+
Remove an audio or video track linked to the score
|
365
|
+
|
366
|
+
### Example
|
367
|
+
```ruby
|
368
|
+
# load the gem
|
369
|
+
require 'flat_api'
|
370
|
+
# setup authorization
|
371
|
+
FlatApi.configure do |config|
|
372
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
373
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
374
|
+
end
|
375
|
+
|
376
|
+
api_instance = FlatApi::ScoreApi.new
|
377
|
+
|
378
|
+
score = "score_example" # String | Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`).
|
379
|
+
|
380
|
+
track = "track_example" # String | Unique identifier of a score audio track
|
381
|
+
|
382
|
+
|
383
|
+
begin
|
384
|
+
#Remove an audio or video track linked to the score
|
385
|
+
api_instance.delete_score_track(score, track)
|
386
|
+
rescue FlatApi::ApiError => e
|
387
|
+
puts "Exception when calling ScoreApi->delete_score_track: #{e}"
|
388
|
+
end
|
389
|
+
```
|
390
|
+
|
391
|
+
### Parameters
|
392
|
+
|
393
|
+
Name | Type | Description | Notes
|
394
|
+
------------- | ------------- | ------------- | -------------
|
395
|
+
**score** | **String**| Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`). |
|
396
|
+
**track** | **String**| Unique identifier of a score audio track |
|
397
|
+
|
398
|
+
### Return type
|
399
|
+
|
400
|
+
nil (empty response body)
|
401
|
+
|
402
|
+
### Authorization
|
403
|
+
|
404
|
+
[OAuth2](../README.md#OAuth2)
|
405
|
+
|
406
|
+
### HTTP request headers
|
407
|
+
|
408
|
+
- **Content-Type**: application/json
|
409
|
+
- **Accept**: application/json
|
410
|
+
|
411
|
+
|
412
|
+
|
413
|
+
# **edit_score**
|
414
|
+
> ScoreDetails edit_score(score, , opts)
|
415
|
+
|
416
|
+
Edit a score's metadata
|
417
|
+
|
418
|
+
This API method allows you to change the metadata of a score document (e.g. its `title` or `privacy`), all the properties are optional. To edit the file itself, create a new revision using the appropriate method (`POST /v2/scores/{score}/revisions/{revision}`).
|
419
|
+
|
420
|
+
### Example
|
421
|
+
```ruby
|
422
|
+
# load the gem
|
423
|
+
require 'flat_api'
|
424
|
+
# setup authorization
|
425
|
+
FlatApi.configure do |config|
|
426
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
427
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
428
|
+
end
|
429
|
+
|
430
|
+
api_instance = FlatApi::ScoreApi.new
|
431
|
+
|
432
|
+
score = "score_example" # String | Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`).
|
433
|
+
|
434
|
+
opts = {
|
435
|
+
body: FlatApi::ScoreModification.new # ScoreModification |
|
436
|
+
}
|
437
|
+
|
438
|
+
begin
|
439
|
+
#Edit a score's metadata
|
440
|
+
result = api_instance.edit_score(score, , opts)
|
441
|
+
p result
|
442
|
+
rescue FlatApi::ApiError => e
|
443
|
+
puts "Exception when calling ScoreApi->edit_score: #{e}"
|
444
|
+
end
|
445
|
+
```
|
446
|
+
|
447
|
+
### Parameters
|
448
|
+
|
449
|
+
Name | Type | Description | Notes
|
450
|
+
------------- | ------------- | ------------- | -------------
|
451
|
+
**score** | **String**| Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`). |
|
452
|
+
**body** | [**ScoreModification**](ScoreModification.md)| | [optional]
|
453
|
+
|
454
|
+
### Return type
|
455
|
+
|
456
|
+
[**ScoreDetails**](ScoreDetails.md)
|
457
|
+
|
458
|
+
### Authorization
|
459
|
+
|
460
|
+
[OAuth2](../README.md#OAuth2)
|
461
|
+
|
462
|
+
### HTTP request headers
|
463
|
+
|
464
|
+
- **Content-Type**: application/json
|
465
|
+
- **Accept**: application/json
|
466
|
+
|
467
|
+
|
468
|
+
|
469
|
+
# **fork_score**
|
470
|
+
> ScoreDetails fork_score(score, body, opts)
|
471
|
+
|
472
|
+
Fork a score
|
473
|
+
|
474
|
+
This API call will make a copy of the last revision of the specified score and create a new score. The copy of the score will have a privacy set to `private`. When using a [Flat for Education](https://flat.io/edu) account, the inline and contextualized comments will be accessible in the child document.
|
475
|
+
|
476
|
+
### Example
|
477
|
+
```ruby
|
478
|
+
# load the gem
|
479
|
+
require 'flat_api'
|
480
|
+
# setup authorization
|
481
|
+
FlatApi.configure do |config|
|
482
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
483
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
484
|
+
end
|
485
|
+
|
486
|
+
api_instance = FlatApi::ScoreApi.new
|
487
|
+
|
488
|
+
score = "score_example" # String | Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`).
|
489
|
+
|
490
|
+
body = FlatApi::ScoreFork.new # ScoreFork |
|
491
|
+
|
492
|
+
opts = {
|
493
|
+
sharing_key: "sharing_key_example", # String | This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
|
494
|
+
}
|
495
|
+
|
496
|
+
begin
|
497
|
+
#Fork a score
|
498
|
+
result = api_instance.fork_score(score, body, opts)
|
499
|
+
p result
|
500
|
+
rescue FlatApi::ApiError => e
|
501
|
+
puts "Exception when calling ScoreApi->fork_score: #{e}"
|
502
|
+
end
|
503
|
+
```
|
504
|
+
|
505
|
+
### Parameters
|
506
|
+
|
507
|
+
Name | Type | Description | Notes
|
508
|
+
------------- | ------------- | ------------- | -------------
|
509
|
+
**score** | **String**| Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`). |
|
510
|
+
**body** | [**ScoreFork**](ScoreFork.md)| |
|
511
|
+
**sharing_key** | **String**| This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
|
512
|
+
|
513
|
+
### Return type
|
514
|
+
|
515
|
+
[**ScoreDetails**](ScoreDetails.md)
|
516
|
+
|
517
|
+
### Authorization
|
518
|
+
|
519
|
+
[OAuth2](../README.md#OAuth2)
|
520
|
+
|
521
|
+
### HTTP request headers
|
522
|
+
|
523
|
+
- **Content-Type**: application/json
|
524
|
+
- **Accept**: application/json
|
525
|
+
|
526
|
+
|
527
|
+
|
528
|
+
# **ger_user_likes**
|
529
|
+
> Array<ScoreDetails> ger_user_likes(user, opts)
|
530
|
+
|
531
|
+
List liked scores
|
532
|
+
|
533
|
+
### Example
|
534
|
+
```ruby
|
535
|
+
# load the gem
|
536
|
+
require 'flat_api'
|
537
|
+
# setup authorization
|
538
|
+
FlatApi.configure do |config|
|
539
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
540
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
541
|
+
end
|
542
|
+
|
543
|
+
api_instance = FlatApi::ScoreApi.new
|
544
|
+
|
545
|
+
user = "user_example" # String | Unique identifier of a Flat user. If you authenticated, you can use `me` to refer to the current user.
|
546
|
+
|
547
|
+
opts = {
|
548
|
+
ids: true # BOOLEAN | Return only the identifiers of the scores
|
549
|
+
}
|
550
|
+
|
551
|
+
begin
|
552
|
+
#List liked scores
|
553
|
+
result = api_instance.ger_user_likes(user, opts)
|
554
|
+
p result
|
555
|
+
rescue FlatApi::ApiError => e
|
556
|
+
puts "Exception when calling ScoreApi->ger_user_likes: #{e}"
|
557
|
+
end
|
558
|
+
```
|
559
|
+
|
560
|
+
### Parameters
|
561
|
+
|
562
|
+
Name | Type | Description | Notes
|
563
|
+
------------- | ------------- | ------------- | -------------
|
564
|
+
**user** | **String**| Unique identifier of a Flat user. If you authenticated, you can use `me` to refer to the current user. |
|
565
|
+
**ids** | **BOOLEAN**| Return only the identifiers of the scores | [optional]
|
566
|
+
|
567
|
+
### Return type
|
568
|
+
|
569
|
+
[**Array<ScoreDetails>**](ScoreDetails.md)
|
570
|
+
|
571
|
+
### Authorization
|
572
|
+
|
573
|
+
[OAuth2](../README.md#OAuth2)
|
574
|
+
|
575
|
+
### HTTP request headers
|
576
|
+
|
577
|
+
- **Content-Type**: application/json
|
578
|
+
- **Accept**: application/json
|
579
|
+
|
580
|
+
|
581
|
+
|
582
|
+
# **get_group_scores**
|
583
|
+
> Array<ScoreDetails> get_group_scores(group, opts)
|
584
|
+
|
585
|
+
List group's scores
|
586
|
+
|
587
|
+
Get the list of scores shared with a group.
|
588
|
+
|
589
|
+
### Example
|
590
|
+
```ruby
|
591
|
+
# load the gem
|
592
|
+
require 'flat_api'
|
593
|
+
# setup authorization
|
594
|
+
FlatApi.configure do |config|
|
595
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
596
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
597
|
+
end
|
598
|
+
|
599
|
+
api_instance = FlatApi::ScoreApi.new
|
600
|
+
|
601
|
+
group = "group_example" # String | Unique identifier of a Flat group
|
602
|
+
|
603
|
+
opts = {
|
604
|
+
parent: "parent_example" # String | Filter the score forked from the score id `parent`
|
605
|
+
}
|
606
|
+
|
607
|
+
begin
|
608
|
+
#List group's scores
|
609
|
+
result = api_instance.get_group_scores(group, opts)
|
610
|
+
p result
|
611
|
+
rescue FlatApi::ApiError => e
|
612
|
+
puts "Exception when calling ScoreApi->get_group_scores: #{e}"
|
613
|
+
end
|
614
|
+
```
|
615
|
+
|
616
|
+
### Parameters
|
617
|
+
|
618
|
+
Name | Type | Description | Notes
|
619
|
+
------------- | ------------- | ------------- | -------------
|
620
|
+
**group** | **String**| Unique identifier of a Flat group |
|
621
|
+
**parent** | **String**| Filter the score forked from the score id `parent` | [optional]
|
622
|
+
|
623
|
+
### Return type
|
624
|
+
|
625
|
+
[**Array<ScoreDetails>**](ScoreDetails.md)
|
626
|
+
|
627
|
+
### Authorization
|
628
|
+
|
629
|
+
[OAuth2](../README.md#OAuth2)
|
630
|
+
|
631
|
+
### HTTP request headers
|
632
|
+
|
633
|
+
- **Content-Type**: application/json
|
634
|
+
- **Accept**: application/json
|
635
|
+
|
636
|
+
|
637
|
+
|
638
|
+
# **get_score**
|
639
|
+
> ScoreDetails get_score(score, , opts)
|
640
|
+
|
641
|
+
Get a score's metadata
|
642
|
+
|
643
|
+
Get the details of a score identified by the `score` parameter in the URL. The currently authenticated user must have at least a read access to the document to use this API call.
|
644
|
+
|
645
|
+
### Example
|
646
|
+
```ruby
|
647
|
+
# load the gem
|
648
|
+
require 'flat_api'
|
649
|
+
# setup authorization
|
650
|
+
FlatApi.configure do |config|
|
651
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
652
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
653
|
+
end
|
654
|
+
|
655
|
+
api_instance = FlatApi::ScoreApi.new
|
656
|
+
|
657
|
+
score = "score_example" # String | Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`).
|
658
|
+
|
659
|
+
opts = {
|
660
|
+
sharing_key: "sharing_key_example", # String | This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
|
661
|
+
}
|
662
|
+
|
663
|
+
begin
|
664
|
+
#Get a score's metadata
|
665
|
+
result = api_instance.get_score(score, , opts)
|
666
|
+
p result
|
667
|
+
rescue FlatApi::ApiError => e
|
668
|
+
puts "Exception when calling ScoreApi->get_score: #{e}"
|
669
|
+
end
|
670
|
+
```
|
671
|
+
|
672
|
+
### Parameters
|
673
|
+
|
674
|
+
Name | Type | Description | Notes
|
675
|
+
------------- | ------------- | ------------- | -------------
|
676
|
+
**score** | **String**| Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`). |
|
677
|
+
**sharing_key** | **String**| This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
|
678
|
+
|
679
|
+
### Return type
|
680
|
+
|
681
|
+
[**ScoreDetails**](ScoreDetails.md)
|
682
|
+
|
683
|
+
### Authorization
|
684
|
+
|
685
|
+
[OAuth2](../README.md#OAuth2)
|
686
|
+
|
687
|
+
### HTTP request headers
|
688
|
+
|
689
|
+
- **Content-Type**: application/json
|
690
|
+
- **Accept**: application/json
|
691
|
+
|
692
|
+
|
693
|
+
|
694
|
+
# **get_score_collaborator**
|
695
|
+
> ScoreCollaborator get_score_collaborator(score, collaborator, opts)
|
696
|
+
|
697
|
+
Get a collaborator
|
698
|
+
|
699
|
+
Get the information about a collaborator (User or Group).
|
700
|
+
|
701
|
+
### Example
|
702
|
+
```ruby
|
703
|
+
# load the gem
|
704
|
+
require 'flat_api'
|
705
|
+
# setup authorization
|
706
|
+
FlatApi.configure do |config|
|
707
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
708
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
709
|
+
end
|
710
|
+
|
711
|
+
api_instance = FlatApi::ScoreApi.new
|
712
|
+
|
713
|
+
score = "score_example" # String | Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`).
|
714
|
+
|
715
|
+
collaborator = "collaborator_example" # String | Unique identifier of a **collaborator permission**, or unique identifier of a **User**, or unique identifier of a **Group**
|
716
|
+
|
717
|
+
opts = {
|
718
|
+
sharing_key: "sharing_key_example", # String | This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
|
719
|
+
}
|
720
|
+
|
721
|
+
begin
|
722
|
+
#Get a collaborator
|
723
|
+
result = api_instance.get_score_collaborator(score, collaborator, opts)
|
724
|
+
p result
|
725
|
+
rescue FlatApi::ApiError => e
|
726
|
+
puts "Exception when calling ScoreApi->get_score_collaborator: #{e}"
|
727
|
+
end
|
728
|
+
```
|
729
|
+
|
730
|
+
### Parameters
|
731
|
+
|
732
|
+
Name | Type | Description | Notes
|
733
|
+
------------- | ------------- | ------------- | -------------
|
734
|
+
**score** | **String**| Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`). |
|
735
|
+
**collaborator** | **String**| Unique identifier of a **collaborator permission**, or unique identifier of a **User**, or unique identifier of a **Group** |
|
736
|
+
**sharing_key** | **String**| This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
|
737
|
+
|
738
|
+
### Return type
|
739
|
+
|
740
|
+
[**ScoreCollaborator**](ScoreCollaborator.md)
|
741
|
+
|
742
|
+
### Authorization
|
743
|
+
|
744
|
+
[OAuth2](../README.md#OAuth2)
|
745
|
+
|
746
|
+
### HTTP request headers
|
747
|
+
|
748
|
+
- **Content-Type**: application/json
|
749
|
+
- **Accept**: application/json
|
750
|
+
|
751
|
+
|
752
|
+
|
753
|
+
# **get_score_collaborators**
|
754
|
+
> Array<ScoreCollaborator> get_score_collaborators(score, , opts)
|
755
|
+
|
756
|
+
List the collaborators
|
757
|
+
|
758
|
+
This API call will list the different collaborators of a score and their rights on the document. The returned list will at least contain the owner of the document. Collaborators can be a single user (the object `user` will be populated) or a group (the object `group` will be populated).
|
759
|
+
|
760
|
+
### Example
|
761
|
+
```ruby
|
762
|
+
# load the gem
|
763
|
+
require 'flat_api'
|
764
|
+
# setup authorization
|
765
|
+
FlatApi.configure do |config|
|
766
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
767
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
768
|
+
end
|
769
|
+
|
770
|
+
api_instance = FlatApi::ScoreApi.new
|
771
|
+
|
772
|
+
score = "score_example" # String | Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`).
|
773
|
+
|
774
|
+
opts = {
|
775
|
+
sharing_key: "sharing_key_example", # String | This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
|
776
|
+
}
|
777
|
+
|
778
|
+
begin
|
779
|
+
#List the collaborators
|
780
|
+
result = api_instance.get_score_collaborators(score, , opts)
|
781
|
+
p result
|
782
|
+
rescue FlatApi::ApiError => e
|
783
|
+
puts "Exception when calling ScoreApi->get_score_collaborators: #{e}"
|
784
|
+
end
|
785
|
+
```
|
786
|
+
|
787
|
+
### Parameters
|
788
|
+
|
789
|
+
Name | Type | Description | Notes
|
790
|
+
------------- | ------------- | ------------- | -------------
|
791
|
+
**score** | **String**| Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`). |
|
792
|
+
**sharing_key** | **String**| This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
|
793
|
+
|
794
|
+
### Return type
|
795
|
+
|
796
|
+
[**Array<ScoreCollaborator>**](ScoreCollaborator.md)
|
797
|
+
|
798
|
+
### Authorization
|
799
|
+
|
800
|
+
[OAuth2](../README.md#OAuth2)
|
801
|
+
|
802
|
+
### HTTP request headers
|
803
|
+
|
804
|
+
- **Content-Type**: application/json
|
805
|
+
- **Accept**: application/json
|
806
|
+
|
807
|
+
|
808
|
+
|
809
|
+
# **get_score_comments**
|
810
|
+
> Array<ScoreComment> get_score_comments(score, , opts)
|
811
|
+
|
812
|
+
List comments
|
813
|
+
|
814
|
+
This method lists the different comments added on a music score (documents and inline) sorted by their post dates.
|
815
|
+
|
816
|
+
### Example
|
817
|
+
```ruby
|
818
|
+
# load the gem
|
819
|
+
require 'flat_api'
|
820
|
+
# setup authorization
|
821
|
+
FlatApi.configure do |config|
|
822
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
823
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
824
|
+
end
|
825
|
+
|
826
|
+
api_instance = FlatApi::ScoreApi.new
|
827
|
+
|
828
|
+
score = "score_example" # String | Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`).
|
829
|
+
|
830
|
+
opts = {
|
831
|
+
sharing_key: "sharing_key_example", # String | This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
|
832
|
+
}
|
833
|
+
|
834
|
+
begin
|
835
|
+
#List comments
|
836
|
+
result = api_instance.get_score_comments(score, , opts)
|
837
|
+
p result
|
838
|
+
rescue FlatApi::ApiError => e
|
839
|
+
puts "Exception when calling ScoreApi->get_score_comments: #{e}"
|
840
|
+
end
|
841
|
+
```
|
842
|
+
|
843
|
+
### Parameters
|
844
|
+
|
845
|
+
Name | Type | Description | Notes
|
846
|
+
------------- | ------------- | ------------- | -------------
|
847
|
+
**score** | **String**| Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`). |
|
848
|
+
**sharing_key** | **String**| This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
|
849
|
+
|
850
|
+
### Return type
|
851
|
+
|
852
|
+
[**Array<ScoreComment>**](ScoreComment.md)
|
853
|
+
|
854
|
+
### Authorization
|
855
|
+
|
856
|
+
[OAuth2](../README.md#OAuth2)
|
857
|
+
|
858
|
+
### HTTP request headers
|
859
|
+
|
860
|
+
- **Content-Type**: application/json
|
861
|
+
- **Accept**: application/json
|
862
|
+
|
863
|
+
|
864
|
+
|
865
|
+
# **get_score_revision**
|
866
|
+
> ScoreRevision get_score_revision(score, revision, , opts)
|
867
|
+
|
868
|
+
Get a score revision
|
869
|
+
|
870
|
+
When creating a score or saving a new version of a score, a revision is created in our storage. This method allows you to get a specific revision metadata.
|
871
|
+
|
872
|
+
### Example
|
873
|
+
```ruby
|
874
|
+
# load the gem
|
875
|
+
require 'flat_api'
|
876
|
+
# setup authorization
|
877
|
+
FlatApi.configure do |config|
|
878
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
879
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
880
|
+
end
|
881
|
+
|
882
|
+
api_instance = FlatApi::ScoreApi.new
|
883
|
+
|
884
|
+
score = "score_example" # String | Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`).
|
885
|
+
|
886
|
+
revision = "revision_example" # String | Unique identifier of a score revision. You can use `last` to fetch the information related to the last version created.
|
887
|
+
|
888
|
+
opts = {
|
889
|
+
sharing_key: "sharing_key_example", # String | This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
|
890
|
+
}
|
891
|
+
|
892
|
+
begin
|
893
|
+
#Get a score revision
|
894
|
+
result = api_instance.get_score_revision(score, revision, , opts)
|
895
|
+
p result
|
896
|
+
rescue FlatApi::ApiError => e
|
897
|
+
puts "Exception when calling ScoreApi->get_score_revision: #{e}"
|
898
|
+
end
|
899
|
+
```
|
900
|
+
|
901
|
+
### Parameters
|
902
|
+
|
903
|
+
Name | Type | Description | Notes
|
904
|
+
------------- | ------------- | ------------- | -------------
|
905
|
+
**score** | **String**| Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`). |
|
906
|
+
**revision** | **String**| Unique identifier of a score revision. You can use `last` to fetch the information related to the last version created. |
|
907
|
+
**sharing_key** | **String**| This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
|
908
|
+
|
909
|
+
### Return type
|
910
|
+
|
911
|
+
[**ScoreRevision**](ScoreRevision.md)
|
912
|
+
|
913
|
+
### Authorization
|
914
|
+
|
915
|
+
[OAuth2](../README.md#OAuth2)
|
916
|
+
|
917
|
+
### HTTP request headers
|
918
|
+
|
919
|
+
- **Content-Type**: application/json
|
920
|
+
- **Accept**: application/json
|
921
|
+
|
922
|
+
|
923
|
+
|
924
|
+
# **get_score_revision_data**
|
925
|
+
> String get_score_revision_data(score, revision, format, opts)
|
926
|
+
|
927
|
+
Get a score revision data
|
928
|
+
|
929
|
+
Retrieve the file corresponding to a score revision (the following formats are available: Flat JSON/Adagio JSON `json`, MusicXML `mxl`/`xml`, MP3 `mp3`, WAV `wav`, MIDI `midi`, or a tumbnail of the first page `thumbnail.png`).
|
930
|
+
|
931
|
+
### Example
|
932
|
+
```ruby
|
933
|
+
# load the gem
|
934
|
+
require 'flat_api'
|
935
|
+
# setup authorization
|
936
|
+
FlatApi.configure do |config|
|
937
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
938
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
939
|
+
end
|
940
|
+
|
941
|
+
api_instance = FlatApi::ScoreApi.new
|
942
|
+
|
943
|
+
score = "score_example" # String | Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`).
|
944
|
+
|
945
|
+
revision = "revision_example" # String | Unique identifier of a score revision. You can use `last` to fetch the information related to the last version created.
|
946
|
+
|
947
|
+
format = "format_example" # String | The format of the file you will retrieve
|
948
|
+
|
949
|
+
opts = {
|
950
|
+
sharing_key: "sharing_key_example", # String | This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
|
951
|
+
only_cached: true, # BOOLEAN | Only return files already generated and cached in Flat's production cache. If the file is not availabe, a 404 will be returned
|
952
|
+
parts: "parts_example" # String | An optional a set of parts to be exported. This parameter must be specified with a list of integers. For example \"1,2,5\".
|
953
|
+
}
|
954
|
+
|
955
|
+
begin
|
956
|
+
#Get a score revision data
|
957
|
+
result = api_instance.get_score_revision_data(score, revision, format, opts)
|
958
|
+
p result
|
959
|
+
rescue FlatApi::ApiError => e
|
960
|
+
puts "Exception when calling ScoreApi->get_score_revision_data: #{e}"
|
961
|
+
end
|
962
|
+
```
|
963
|
+
|
964
|
+
### Parameters
|
965
|
+
|
966
|
+
Name | Type | Description | Notes
|
967
|
+
------------- | ------------- | ------------- | -------------
|
968
|
+
**score** | **String**| Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`). |
|
969
|
+
**revision** | **String**| Unique identifier of a score revision. You can use `last` to fetch the information related to the last version created. |
|
970
|
+
**format** | **String**| The format of the file you will retrieve |
|
971
|
+
**sharing_key** | **String**| This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
|
972
|
+
**only_cached** | **BOOLEAN**| Only return files already generated and cached in Flat's production cache. If the file is not availabe, a 404 will be returned | [optional]
|
973
|
+
**parts** | **String**| An optional a set of parts to be exported. This parameter must be specified with a list of integers. For example \"1,2,5\". | [optional]
|
974
|
+
|
975
|
+
### Return type
|
976
|
+
|
977
|
+
**String**
|
978
|
+
|
979
|
+
### Authorization
|
980
|
+
|
981
|
+
[OAuth2](../README.md#OAuth2)
|
982
|
+
|
983
|
+
### HTTP request headers
|
984
|
+
|
985
|
+
- **Content-Type**: application/json
|
986
|
+
- **Accept**: application/json, application/vnd.recordare.musicxml+xml, application/vnd.recordare.musicxml, audio/mp3, audio/wav, audio/midi, image/png
|
987
|
+
|
988
|
+
|
989
|
+
|
990
|
+
# **get_score_revisions**
|
991
|
+
> Array<ScoreRevision> get_score_revisions(score, , opts)
|
992
|
+
|
993
|
+
List the revisions
|
994
|
+
|
995
|
+
When creating a score or saving a new version of a score, a revision is created in our storage. This method allows you to list all of them, sorted by last modification. Depending the plan of the account, this list can be trunked to the few last revisions.
|
996
|
+
|
997
|
+
### Example
|
998
|
+
```ruby
|
999
|
+
# load the gem
|
1000
|
+
require 'flat_api'
|
1001
|
+
# setup authorization
|
1002
|
+
FlatApi.configure do |config|
|
1003
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
1004
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
1005
|
+
end
|
1006
|
+
|
1007
|
+
api_instance = FlatApi::ScoreApi.new
|
1008
|
+
|
1009
|
+
score = "score_example" # String | Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`).
|
1010
|
+
|
1011
|
+
opts = {
|
1012
|
+
sharing_key: "sharing_key_example", # String | This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
|
1013
|
+
}
|
1014
|
+
|
1015
|
+
begin
|
1016
|
+
#List the revisions
|
1017
|
+
result = api_instance.get_score_revisions(score, , opts)
|
1018
|
+
p result
|
1019
|
+
rescue FlatApi::ApiError => e
|
1020
|
+
puts "Exception when calling ScoreApi->get_score_revisions: #{e}"
|
1021
|
+
end
|
1022
|
+
```
|
1023
|
+
|
1024
|
+
### Parameters
|
1025
|
+
|
1026
|
+
Name | Type | Description | Notes
|
1027
|
+
------------- | ------------- | ------------- | -------------
|
1028
|
+
**score** | **String**| Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`). |
|
1029
|
+
**sharing_key** | **String**| This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
|
1030
|
+
|
1031
|
+
### Return type
|
1032
|
+
|
1033
|
+
[**Array<ScoreRevision>**](ScoreRevision.md)
|
1034
|
+
|
1035
|
+
### Authorization
|
1036
|
+
|
1037
|
+
[OAuth2](../README.md#OAuth2)
|
1038
|
+
|
1039
|
+
### HTTP request headers
|
1040
|
+
|
1041
|
+
- **Content-Type**: application/json
|
1042
|
+
- **Accept**: application/json
|
1043
|
+
|
1044
|
+
|
1045
|
+
|
1046
|
+
# **get_score_submissions**
|
1047
|
+
> Array<AssignmentSubmission> get_score_submissions(score, )
|
1048
|
+
|
1049
|
+
List submissions related to the score
|
1050
|
+
|
1051
|
+
This API call will list the different assignments submissions where the score is attached. This method can be used by anyone that are part of the organization and have at least read access to the document.
|
1052
|
+
|
1053
|
+
### Example
|
1054
|
+
```ruby
|
1055
|
+
# load the gem
|
1056
|
+
require 'flat_api'
|
1057
|
+
# setup authorization
|
1058
|
+
FlatApi.configure do |config|
|
1059
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
1060
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
1061
|
+
end
|
1062
|
+
|
1063
|
+
api_instance = FlatApi::ScoreApi.new
|
1064
|
+
|
1065
|
+
score = "score_example" # String | Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`).
|
1066
|
+
|
1067
|
+
|
1068
|
+
begin
|
1069
|
+
#List submissions related to the score
|
1070
|
+
result = api_instance.get_score_submissions(score, )
|
1071
|
+
p result
|
1072
|
+
rescue FlatApi::ApiError => e
|
1073
|
+
puts "Exception when calling ScoreApi->get_score_submissions: #{e}"
|
1074
|
+
end
|
1075
|
+
```
|
1076
|
+
|
1077
|
+
### Parameters
|
1078
|
+
|
1079
|
+
Name | Type | Description | Notes
|
1080
|
+
------------- | ------------- | ------------- | -------------
|
1081
|
+
**score** | **String**| Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`). |
|
1082
|
+
|
1083
|
+
### Return type
|
1084
|
+
|
1085
|
+
[**Array<AssignmentSubmission>**](AssignmentSubmission.md)
|
1086
|
+
|
1087
|
+
### Authorization
|
1088
|
+
|
1089
|
+
[OAuth2](../README.md#OAuth2)
|
1090
|
+
|
1091
|
+
### HTTP request headers
|
1092
|
+
|
1093
|
+
- **Content-Type**: application/json
|
1094
|
+
- **Accept**: application/json
|
1095
|
+
|
1096
|
+
|
1097
|
+
|
1098
|
+
# **get_score_track**
|
1099
|
+
> ScoreTrack get_score_track(score, track, opts)
|
1100
|
+
|
1101
|
+
Retrieve the details of an audio or video track linked to a score
|
1102
|
+
|
1103
|
+
### Example
|
1104
|
+
```ruby
|
1105
|
+
# load the gem
|
1106
|
+
require 'flat_api'
|
1107
|
+
# setup authorization
|
1108
|
+
FlatApi.configure do |config|
|
1109
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
1110
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
1111
|
+
end
|
1112
|
+
|
1113
|
+
api_instance = FlatApi::ScoreApi.new
|
1114
|
+
|
1115
|
+
score = "score_example" # String | Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`).
|
1116
|
+
|
1117
|
+
track = "track_example" # String | Unique identifier of a score audio track
|
1118
|
+
|
1119
|
+
opts = {
|
1120
|
+
sharing_key: "sharing_key_example", # String | This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
|
1121
|
+
}
|
1122
|
+
|
1123
|
+
begin
|
1124
|
+
#Retrieve the details of an audio or video track linked to a score
|
1125
|
+
result = api_instance.get_score_track(score, track, opts)
|
1126
|
+
p result
|
1127
|
+
rescue FlatApi::ApiError => e
|
1128
|
+
puts "Exception when calling ScoreApi->get_score_track: #{e}"
|
1129
|
+
end
|
1130
|
+
```
|
1131
|
+
|
1132
|
+
### Parameters
|
1133
|
+
|
1134
|
+
Name | Type | Description | Notes
|
1135
|
+
------------- | ------------- | ------------- | -------------
|
1136
|
+
**score** | **String**| Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`). |
|
1137
|
+
**track** | **String**| Unique identifier of a score audio track |
|
1138
|
+
**sharing_key** | **String**| This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
|
1139
|
+
|
1140
|
+
### Return type
|
1141
|
+
|
1142
|
+
[**ScoreTrack**](ScoreTrack.md)
|
1143
|
+
|
1144
|
+
### Authorization
|
1145
|
+
|
1146
|
+
[OAuth2](../README.md#OAuth2)
|
1147
|
+
|
1148
|
+
### HTTP request headers
|
1149
|
+
|
1150
|
+
- **Content-Type**: application/json
|
1151
|
+
- **Accept**: application/json
|
1152
|
+
|
1153
|
+
|
1154
|
+
|
1155
|
+
# **get_user_scores**
|
1156
|
+
> Array<ScoreDetails> get_user_scores(user, opts)
|
1157
|
+
|
1158
|
+
List user's scores
|
1159
|
+
|
1160
|
+
Get the list of scores owned by the User
|
1161
|
+
|
1162
|
+
### Example
|
1163
|
+
```ruby
|
1164
|
+
# load the gem
|
1165
|
+
require 'flat_api'
|
1166
|
+
# setup authorization
|
1167
|
+
FlatApi.configure do |config|
|
1168
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
1169
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
1170
|
+
end
|
1171
|
+
|
1172
|
+
api_instance = FlatApi::ScoreApi.new
|
1173
|
+
|
1174
|
+
user = "user_example" # String | Unique identifier of a Flat user. If you authenticated, you can use `me` to refer to the current user.
|
1175
|
+
|
1176
|
+
opts = {
|
1177
|
+
parent: "parent_example" # String | Filter the score forked from the score id `parent`
|
1178
|
+
}
|
1179
|
+
|
1180
|
+
begin
|
1181
|
+
#List user's scores
|
1182
|
+
result = api_instance.get_user_scores(user, opts)
|
1183
|
+
p result
|
1184
|
+
rescue FlatApi::ApiError => e
|
1185
|
+
puts "Exception when calling ScoreApi->get_user_scores: #{e}"
|
1186
|
+
end
|
1187
|
+
```
|
1188
|
+
|
1189
|
+
### Parameters
|
1190
|
+
|
1191
|
+
Name | Type | Description | Notes
|
1192
|
+
------------- | ------------- | ------------- | -------------
|
1193
|
+
**user** | **String**| Unique identifier of a Flat user. If you authenticated, you can use `me` to refer to the current user. |
|
1194
|
+
**parent** | **String**| Filter the score forked from the score id `parent` | [optional]
|
1195
|
+
|
1196
|
+
### Return type
|
1197
|
+
|
1198
|
+
[**Array<ScoreDetails>**](ScoreDetails.md)
|
1199
|
+
|
1200
|
+
### Authorization
|
1201
|
+
|
1202
|
+
[OAuth2](../README.md#OAuth2)
|
1203
|
+
|
1204
|
+
### HTTP request headers
|
1205
|
+
|
1206
|
+
- **Content-Type**: application/json
|
1207
|
+
- **Accept**: application/json
|
1208
|
+
|
1209
|
+
|
1210
|
+
|
1211
|
+
# **list_score_tracks**
|
1212
|
+
> Array<ScoreTrack> list_score_tracks(score, , opts)
|
1213
|
+
|
1214
|
+
List the audio or video tracks linked to a score
|
1215
|
+
|
1216
|
+
### Example
|
1217
|
+
```ruby
|
1218
|
+
# load the gem
|
1219
|
+
require 'flat_api'
|
1220
|
+
# setup authorization
|
1221
|
+
FlatApi.configure do |config|
|
1222
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
1223
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
1224
|
+
end
|
1225
|
+
|
1226
|
+
api_instance = FlatApi::ScoreApi.new
|
1227
|
+
|
1228
|
+
score = "score_example" # String | Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`).
|
1229
|
+
|
1230
|
+
opts = {
|
1231
|
+
sharing_key: "sharing_key_example", # String | This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
|
1232
|
+
}
|
1233
|
+
|
1234
|
+
begin
|
1235
|
+
#List the audio or video tracks linked to a score
|
1236
|
+
result = api_instance.list_score_tracks(score, , opts)
|
1237
|
+
p result
|
1238
|
+
rescue FlatApi::ApiError => e
|
1239
|
+
puts "Exception when calling ScoreApi->list_score_tracks: #{e}"
|
1240
|
+
end
|
1241
|
+
```
|
1242
|
+
|
1243
|
+
### Parameters
|
1244
|
+
|
1245
|
+
Name | Type | Description | Notes
|
1246
|
+
------------- | ------------- | ------------- | -------------
|
1247
|
+
**score** | **String**| Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`). |
|
1248
|
+
**sharing_key** | **String**| This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
|
1249
|
+
|
1250
|
+
### Return type
|
1251
|
+
|
1252
|
+
[**Array<ScoreTrack>**](ScoreTrack.md)
|
1253
|
+
|
1254
|
+
### Authorization
|
1255
|
+
|
1256
|
+
[OAuth2](../README.md#OAuth2)
|
1257
|
+
|
1258
|
+
### HTTP request headers
|
1259
|
+
|
1260
|
+
- **Content-Type**: application/json
|
1261
|
+
- **Accept**: application/json
|
1262
|
+
|
1263
|
+
|
1264
|
+
|
1265
|
+
# **mark_score_comment_resolved**
|
1266
|
+
> mark_score_comment_resolved(score, comment, opts)
|
1267
|
+
|
1268
|
+
Mark the comment as resolved
|
1269
|
+
|
1270
|
+
### Example
|
1271
|
+
```ruby
|
1272
|
+
# load the gem
|
1273
|
+
require 'flat_api'
|
1274
|
+
# setup authorization
|
1275
|
+
FlatApi.configure do |config|
|
1276
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
1277
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
1278
|
+
end
|
1279
|
+
|
1280
|
+
api_instance = FlatApi::ScoreApi.new
|
1281
|
+
|
1282
|
+
score = "score_example" # String | Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`).
|
1283
|
+
|
1284
|
+
comment = "comment_example" # String | Unique identifier of a sheet music comment
|
1285
|
+
|
1286
|
+
opts = {
|
1287
|
+
sharing_key: "sharing_key_example", # String | This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
|
1288
|
+
}
|
1289
|
+
|
1290
|
+
begin
|
1291
|
+
#Mark the comment as resolved
|
1292
|
+
api_instance.mark_score_comment_resolved(score, comment, opts)
|
1293
|
+
rescue FlatApi::ApiError => e
|
1294
|
+
puts "Exception when calling ScoreApi->mark_score_comment_resolved: #{e}"
|
1295
|
+
end
|
1296
|
+
```
|
1297
|
+
|
1298
|
+
### Parameters
|
1299
|
+
|
1300
|
+
Name | Type | Description | Notes
|
1301
|
+
------------- | ------------- | ------------- | -------------
|
1302
|
+
**score** | **String**| Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`). |
|
1303
|
+
**comment** | **String**| Unique identifier of a sheet music comment |
|
1304
|
+
**sharing_key** | **String**| This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
|
1305
|
+
|
1306
|
+
### Return type
|
1307
|
+
|
1308
|
+
nil (empty response body)
|
1309
|
+
|
1310
|
+
### Authorization
|
1311
|
+
|
1312
|
+
[OAuth2](../README.md#OAuth2)
|
1313
|
+
|
1314
|
+
### HTTP request headers
|
1315
|
+
|
1316
|
+
- **Content-Type**: application/json
|
1317
|
+
- **Accept**: application/json
|
1318
|
+
|
1319
|
+
|
1320
|
+
|
1321
|
+
# **mark_score_comment_unresolved**
|
1322
|
+
> mark_score_comment_unresolved(score, comment, opts)
|
1323
|
+
|
1324
|
+
Mark the comment as unresolved
|
1325
|
+
|
1326
|
+
### Example
|
1327
|
+
```ruby
|
1328
|
+
# load the gem
|
1329
|
+
require 'flat_api'
|
1330
|
+
# setup authorization
|
1331
|
+
FlatApi.configure do |config|
|
1332
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
1333
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
1334
|
+
end
|
1335
|
+
|
1336
|
+
api_instance = FlatApi::ScoreApi.new
|
1337
|
+
|
1338
|
+
score = "score_example" # String | Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`).
|
1339
|
+
|
1340
|
+
comment = "comment_example" # String | Unique identifier of a sheet music comment
|
1341
|
+
|
1342
|
+
opts = {
|
1343
|
+
sharing_key: "sharing_key_example", # String | This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
|
1344
|
+
}
|
1345
|
+
|
1346
|
+
begin
|
1347
|
+
#Mark the comment as unresolved
|
1348
|
+
api_instance.mark_score_comment_unresolved(score, comment, opts)
|
1349
|
+
rescue FlatApi::ApiError => e
|
1350
|
+
puts "Exception when calling ScoreApi->mark_score_comment_unresolved: #{e}"
|
1351
|
+
end
|
1352
|
+
```
|
1353
|
+
|
1354
|
+
### Parameters
|
1355
|
+
|
1356
|
+
Name | Type | Description | Notes
|
1357
|
+
------------- | ------------- | ------------- | -------------
|
1358
|
+
**score** | **String**| Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`). |
|
1359
|
+
**comment** | **String**| Unique identifier of a sheet music comment |
|
1360
|
+
**sharing_key** | **String**| This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
|
1361
|
+
|
1362
|
+
### Return type
|
1363
|
+
|
1364
|
+
nil (empty response body)
|
1365
|
+
|
1366
|
+
### Authorization
|
1367
|
+
|
1368
|
+
[OAuth2](../README.md#OAuth2)
|
1369
|
+
|
1370
|
+
### HTTP request headers
|
1371
|
+
|
1372
|
+
- **Content-Type**: application/json
|
1373
|
+
- **Accept**: application/json
|
1374
|
+
|
1375
|
+
|
1376
|
+
|
1377
|
+
# **post_score_comment**
|
1378
|
+
> ScoreComment post_score_comment(score, body, opts)
|
1379
|
+
|
1380
|
+
Post a new comment
|
1381
|
+
|
1382
|
+
Post a document or a contextualized comment on a document. Please note that this method includes an anti-spam system for public scores. We don't guarantee that your comments will be accepted and displayed to end-user. Comments are be blocked by returning a `403` HTTP error and hidden from other users when the `spam` property is `true`.
|
1383
|
+
|
1384
|
+
### Example
|
1385
|
+
```ruby
|
1386
|
+
# load the gem
|
1387
|
+
require 'flat_api'
|
1388
|
+
# setup authorization
|
1389
|
+
FlatApi.configure do |config|
|
1390
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
1391
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
1392
|
+
end
|
1393
|
+
|
1394
|
+
api_instance = FlatApi::ScoreApi.new
|
1395
|
+
|
1396
|
+
score = "score_example" # String | Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`).
|
1397
|
+
|
1398
|
+
body = FlatApi::ScoreCommentCreation.new # ScoreCommentCreation |
|
1399
|
+
|
1400
|
+
opts = {
|
1401
|
+
sharing_key: "sharing_key_example", # String | This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
|
1402
|
+
}
|
1403
|
+
|
1404
|
+
begin
|
1405
|
+
#Post a new comment
|
1406
|
+
result = api_instance.post_score_comment(score, body, opts)
|
1407
|
+
p result
|
1408
|
+
rescue FlatApi::ApiError => e
|
1409
|
+
puts "Exception when calling ScoreApi->post_score_comment: #{e}"
|
1410
|
+
end
|
1411
|
+
```
|
1412
|
+
|
1413
|
+
### Parameters
|
1414
|
+
|
1415
|
+
Name | Type | Description | Notes
|
1416
|
+
------------- | ------------- | ------------- | -------------
|
1417
|
+
**score** | **String**| Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`). |
|
1418
|
+
**body** | [**ScoreCommentCreation**](ScoreCommentCreation.md)| |
|
1419
|
+
**sharing_key** | **String**| This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
|
1420
|
+
|
1421
|
+
### Return type
|
1422
|
+
|
1423
|
+
[**ScoreComment**](ScoreComment.md)
|
1424
|
+
|
1425
|
+
### Authorization
|
1426
|
+
|
1427
|
+
[OAuth2](../README.md#OAuth2)
|
1428
|
+
|
1429
|
+
### HTTP request headers
|
1430
|
+
|
1431
|
+
- **Content-Type**: application/json
|
1432
|
+
- **Accept**: application/json
|
1433
|
+
|
1434
|
+
|
1435
|
+
|
1436
|
+
# **remove_score_collaborator**
|
1437
|
+
> remove_score_collaborator(score, collaborator)
|
1438
|
+
|
1439
|
+
Delete a collaborator
|
1440
|
+
|
1441
|
+
Remove the specified collaborator from the score
|
1442
|
+
|
1443
|
+
### Example
|
1444
|
+
```ruby
|
1445
|
+
# load the gem
|
1446
|
+
require 'flat_api'
|
1447
|
+
# setup authorization
|
1448
|
+
FlatApi.configure do |config|
|
1449
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
1450
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
1451
|
+
end
|
1452
|
+
|
1453
|
+
api_instance = FlatApi::ScoreApi.new
|
1454
|
+
|
1455
|
+
score = "score_example" # String | Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`).
|
1456
|
+
|
1457
|
+
collaborator = "collaborator_example" # String | Unique identifier of a **collaborator permission**, or unique identifier of a **User**, or unique identifier of a **Group**
|
1458
|
+
|
1459
|
+
|
1460
|
+
begin
|
1461
|
+
#Delete a collaborator
|
1462
|
+
api_instance.remove_score_collaborator(score, collaborator)
|
1463
|
+
rescue FlatApi::ApiError => e
|
1464
|
+
puts "Exception when calling ScoreApi->remove_score_collaborator: #{e}"
|
1465
|
+
end
|
1466
|
+
```
|
1467
|
+
|
1468
|
+
### Parameters
|
1469
|
+
|
1470
|
+
Name | Type | Description | Notes
|
1471
|
+
------------- | ------------- | ------------- | -------------
|
1472
|
+
**score** | **String**| Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`). |
|
1473
|
+
**collaborator** | **String**| Unique identifier of a **collaborator permission**, or unique identifier of a **User**, or unique identifier of a **Group** |
|
1474
|
+
|
1475
|
+
### Return type
|
1476
|
+
|
1477
|
+
nil (empty response body)
|
1478
|
+
|
1479
|
+
### Authorization
|
1480
|
+
|
1481
|
+
[OAuth2](../README.md#OAuth2)
|
1482
|
+
|
1483
|
+
### HTTP request headers
|
1484
|
+
|
1485
|
+
- **Content-Type**: application/json
|
1486
|
+
- **Accept**: application/json
|
1487
|
+
|
1488
|
+
|
1489
|
+
|
1490
|
+
# **update_score_comment**
|
1491
|
+
> ScoreComment update_score_comment(score, commentbody, opts)
|
1492
|
+
|
1493
|
+
Update an existing comment
|
1494
|
+
|
1495
|
+
### Example
|
1496
|
+
```ruby
|
1497
|
+
# load the gem
|
1498
|
+
require 'flat_api'
|
1499
|
+
# setup authorization
|
1500
|
+
FlatApi.configure do |config|
|
1501
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
1502
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
1503
|
+
end
|
1504
|
+
|
1505
|
+
api_instance = FlatApi::ScoreApi.new
|
1506
|
+
|
1507
|
+
score = "score_example" # String | Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`).
|
1508
|
+
|
1509
|
+
comment = "comment_example" # String | Unique identifier of a sheet music comment
|
1510
|
+
|
1511
|
+
body = FlatApi::ScoreCommentUpdate.new # ScoreCommentUpdate |
|
1512
|
+
|
1513
|
+
opts = {
|
1514
|
+
sharing_key: "sharing_key_example", # String | This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
|
1515
|
+
}
|
1516
|
+
|
1517
|
+
begin
|
1518
|
+
#Update an existing comment
|
1519
|
+
result = api_instance.update_score_comment(score, commentbody, opts)
|
1520
|
+
p result
|
1521
|
+
rescue FlatApi::ApiError => e
|
1522
|
+
puts "Exception when calling ScoreApi->update_score_comment: #{e}"
|
1523
|
+
end
|
1524
|
+
```
|
1525
|
+
|
1526
|
+
### Parameters
|
1527
|
+
|
1528
|
+
Name | Type | Description | Notes
|
1529
|
+
------------- | ------------- | ------------- | -------------
|
1530
|
+
**score** | **String**| Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`). |
|
1531
|
+
**comment** | **String**| Unique identifier of a sheet music comment |
|
1532
|
+
**body** | [**ScoreCommentUpdate**](ScoreCommentUpdate.md)| |
|
1533
|
+
**sharing_key** | **String**| This sharing key must be specified to access to a score with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
|
1534
|
+
|
1535
|
+
### Return type
|
1536
|
+
|
1537
|
+
[**ScoreComment**](ScoreComment.md)
|
1538
|
+
|
1539
|
+
### Authorization
|
1540
|
+
|
1541
|
+
[OAuth2](../README.md#OAuth2)
|
1542
|
+
|
1543
|
+
### HTTP request headers
|
1544
|
+
|
1545
|
+
- **Content-Type**: application/json
|
1546
|
+
- **Accept**: application/json
|
1547
|
+
|
1548
|
+
|
1549
|
+
|
1550
|
+
# **update_score_track**
|
1551
|
+
> ScoreTrack update_score_track(score, trackbody)
|
1552
|
+
|
1553
|
+
Update an audio or video track linked to a score
|
1554
|
+
|
1555
|
+
### Example
|
1556
|
+
```ruby
|
1557
|
+
# load the gem
|
1558
|
+
require 'flat_api'
|
1559
|
+
# setup authorization
|
1560
|
+
FlatApi.configure do |config|
|
1561
|
+
# Configure OAuth2 access token for authorization: OAuth2
|
1562
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
1563
|
+
end
|
1564
|
+
|
1565
|
+
api_instance = FlatApi::ScoreApi.new
|
1566
|
+
|
1567
|
+
score = "score_example" # String | Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`).
|
1568
|
+
|
1569
|
+
track = "track_example" # String | Unique identifier of a score audio track
|
1570
|
+
|
1571
|
+
body = FlatApi::ScoreTrackUpdate.new # ScoreTrackUpdate |
|
1572
|
+
|
1573
|
+
|
1574
|
+
begin
|
1575
|
+
#Update an audio or video track linked to a score
|
1576
|
+
result = api_instance.update_score_track(score, trackbody)
|
1577
|
+
p result
|
1578
|
+
rescue FlatApi::ApiError => e
|
1579
|
+
puts "Exception when calling ScoreApi->update_score_track: #{e}"
|
1580
|
+
end
|
1581
|
+
```
|
1582
|
+
|
1583
|
+
### Parameters
|
1584
|
+
|
1585
|
+
Name | Type | Description | Notes
|
1586
|
+
------------- | ------------- | ------------- | -------------
|
1587
|
+
**score** | **String**| Unique identifier of the score document. This can be a Flat Score unique identifier (i.e. `ScoreDetails.id`) or, if the score is also a Google Drive file, the Drive file unique identifier prefixed with `drive-` (e.g. `drive-0B000000000`). |
|
1588
|
+
**track** | **String**| Unique identifier of a score audio track |
|
1589
|
+
**body** | [**ScoreTrackUpdate**](ScoreTrackUpdate.md)| |
|
1590
|
+
|
1591
|
+
### Return type
|
1592
|
+
|
1593
|
+
[**ScoreTrack**](ScoreTrack.md)
|
1594
|
+
|
1595
|
+
### Authorization
|
1596
|
+
|
1597
|
+
[OAuth2](../README.md#OAuth2)
|
1598
|
+
|
1599
|
+
### HTTP request headers
|
1600
|
+
|
1601
|
+
- **Content-Type**: application/json
|
1602
|
+
- **Accept**: application/json
|
1603
|
+
|
1604
|
+
|
1605
|
+
|