flat_api 0.2.0 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (416) hide show
  1. checksums.yaml +5 -5
  2. data/lib/flat_api/api/account_api.rb +31 -21
  3. data/lib/flat_api/api/class_api.rb +1405 -405
  4. data/lib/flat_api/api/collection_api.rb +257 -169
  5. data/lib/flat_api/api/edu_resources_api.rb +851 -0
  6. data/lib/flat_api/api/group_api.rb +81 -55
  7. data/lib/flat_api/api/organization_api.rb +524 -180
  8. data/lib/flat_api/api/score_api.rb +944 -552
  9. data/lib/flat_api/api/task_api.rb +85 -0
  10. data/lib/flat_api/api/user_api.rb +112 -74
  11. data/lib/flat_api/api_client.rb +112 -107
  12. data/lib/flat_api/api_error.rb +24 -4
  13. data/lib/flat_api/configuration.rb +105 -16
  14. data/lib/flat_api/models/api_access_token.rb +268 -0
  15. data/lib/flat_api/models/app_scopes.rb +59 -0
  16. data/lib/flat_api/models/assignment.rb +192 -101
  17. data/lib/flat_api/models/assignment_capabilities.rb +283 -0
  18. data/lib/flat_api/models/assignment_capabilities_can_publish_in_class_error.rb +240 -0
  19. data/lib/flat_api/models/assignment_copy.rb +80 -169
  20. data/lib/flat_api/models/assignment_copy_response.rb +430 -0
  21. data/lib/flat_api/models/assignment_copy_to_class.rb +243 -0
  22. data/lib/flat_api/models/assignment_copy_to_resource_library.rb +233 -0
  23. data/lib/flat_api/models/assignment_submission.rb +249 -66
  24. data/lib/flat_api/models/assignment_submission_comment.rb +276 -0
  25. data/lib/flat_api/models/assignment_submission_comment_creation.rb +223 -0
  26. data/lib/flat_api/models/assignment_submission_comments.rb +225 -0
  27. data/lib/flat_api/models/assignment_submission_history.rb +384 -0
  28. data/lib/flat_api/models/assignment_submission_history_attachment.rb +235 -0
  29. data/lib/flat_api/models/assignment_submission_history_state.rb +43 -0
  30. data/lib/flat_api/models/assignment_submission_lti.rb +222 -0
  31. data/lib/flat_api/models/assignment_submission_playback_inner.rb +240 -0
  32. data/lib/flat_api/models/assignment_submission_state.rb +42 -0
  33. data/lib/flat_api/models/assignment_submission_update.rb +150 -50
  34. data/lib/flat_api/models/assignment_type.rb +44 -0
  35. data/lib/flat_api/models/assignment_update.rb +407 -0
  36. data/lib/flat_api/models/class_assignment.rb +613 -0
  37. data/lib/flat_api/models/class_assignment_all_of_canvas.rb +226 -0
  38. data/lib/flat_api/models/class_assignment_all_of_lti.rb +216 -0
  39. data/lib/flat_api/models/class_assignment_all_of_mfc.rb +226 -0
  40. data/lib/flat_api/models/class_assignment_update.rb +509 -0
  41. data/lib/flat_api/models/class_assignment_update_all_of_google_classroom.rb +217 -0
  42. data/lib/flat_api/models/class_assignment_update_all_of_microsoft_graph.rb +219 -0
  43. data/lib/flat_api/models/class_attachment_creation.rb +110 -41
  44. data/lib/flat_api/models/class_creation.rb +144 -43
  45. data/lib/flat_api/models/class_details.rb +175 -60
  46. data/lib/flat_api/models/class_details_canvas.rb +61 -34
  47. data/lib/flat_api/models/class_details_clever.rb +76 -48
  48. data/lib/flat_api/models/class_details_google_classroom.rb +66 -59
  49. data/lib/flat_api/models/class_details_google_drive.rb +63 -36
  50. data/lib/flat_api/models/class_details_issues.rb +218 -0
  51. data/lib/flat_api/models/class_details_issues_sync_inner.rb +270 -0
  52. data/lib/flat_api/models/class_details_lti.rb +65 -38
  53. data/lib/flat_api/models/class_details_mfc.rb +226 -0
  54. data/lib/flat_api/models/class_details_microsoft_graph.rb +215 -0
  55. data/lib/flat_api/models/class_grade_level.rb +43 -0
  56. data/lib/flat_api/models/class_roles.rb +18 -9
  57. data/lib/flat_api/models/class_state.rb +18 -9
  58. data/lib/flat_api/models/class_update.rb +144 -42
  59. data/lib/flat_api/models/collection.rb +138 -50
  60. data/lib/flat_api/models/collection_app.rb +236 -0
  61. data/lib/flat_api/models/collection_capabilities.rb +109 -47
  62. data/lib/flat_api/models/collection_creation.rb +132 -37
  63. data/lib/flat_api/models/collection_modification.rb +122 -35
  64. data/lib/flat_api/models/collection_privacy.rb +18 -9
  65. data/lib/flat_api/models/collection_type.rb +19 -9
  66. data/lib/flat_api/models/edu_library.rb +292 -0
  67. data/lib/flat_api/models/edu_resource.rb +366 -0
  68. data/lib/flat_api/models/edu_resource_capabilities.rb +236 -0
  69. data/lib/flat_api/models/edu_resource_copy.rb +223 -0
  70. data/lib/flat_api/models/edu_resource_creation.rb +301 -0
  71. data/lib/flat_api/models/edu_resource_folder.rb +216 -0
  72. data/lib/flat_api/models/edu_resource_lti_link.rb +223 -0
  73. data/lib/flat_api/models/edu_resource_move.rb +223 -0
  74. data/lib/flat_api/models/edu_resource_privacy.rb +41 -0
  75. data/lib/flat_api/models/edu_resource_resource.rb +105 -0
  76. data/lib/flat_api/models/edu_resource_type.rb +40 -0
  77. data/lib/flat_api/models/edu_resource_update.rb +277 -0
  78. data/lib/flat_api/models/edu_resource_use_in_class.rb +233 -0
  79. data/lib/flat_api/models/flat_error_response.rb +79 -38
  80. data/lib/flat_api/models/flat_locales.rb +30 -10
  81. data/lib/flat_api/models/google_classroom_coursework.rb +76 -38
  82. data/lib/flat_api/models/google_classroom_submission.rb +84 -36
  83. data/lib/flat_api/models/group.rb +72 -44
  84. data/lib/flat_api/models/group_details.rb +92 -43
  85. data/lib/flat_api/models/group_type.rb +18 -9
  86. data/lib/flat_api/models/license_mode.rb +18 -9
  87. data/lib/flat_api/models/license_sources.rb +21 -9
  88. data/lib/flat_api/models/lms_name.rb +19 -9
  89. data/lib/flat_api/models/lti_credentials.rb +95 -46
  90. data/lib/flat_api/models/lti_credentials_creation.rb +91 -38
  91. data/lib/flat_api/models/media_attachment.rb +167 -70
  92. data/lib/flat_api/models/media_score_sharing_mode.rb +19 -9
  93. data/lib/flat_api/models/microsoft_graph_assignment.rb +248 -0
  94. data/lib/flat_api/models/microsoft_graph_submission.rb +240 -0
  95. data/lib/flat_api/models/organization_invitation.rb +139 -44
  96. data/lib/flat_api/models/organization_invitation_creation.rb +99 -35
  97. data/lib/flat_api/models/organization_roles.rb +18 -9
  98. data/lib/flat_api/models/organization_user_access_token_creation.rb +225 -0
  99. data/lib/flat_api/models/resource_collaborator.rb +181 -51
  100. data/lib/flat_api/models/resource_collaborator_creation.rb +74 -47
  101. data/lib/flat_api/models/resource_rights.rb +145 -42
  102. data/lib/flat_api/models/score_comment.rb +93 -56
  103. data/lib/flat_api/models/score_comment_context.rb +103 -59
  104. data/lib/flat_api/models/score_comment_creation.rb +70 -41
  105. data/lib/flat_api/models/score_comment_moderation.rb +260 -0
  106. data/lib/flat_api/models/score_comment_update.rb +82 -49
  107. data/lib/flat_api/models/score_comments_counts.rb +67 -40
  108. data/lib/flat_api/models/score_creation.rb +81 -225
  109. data/lib/flat_api/models/score_creation_builder_data.rb +298 -0
  110. data/lib/flat_api/models/score_creation_builder_data_all_of_builder_data.rb +230 -0
  111. data/lib/flat_api/models/score_creation_builder_data_all_of_builder_data_layout_data.rb +322 -0
  112. data/lib/flat_api/models/score_creation_builder_data_all_of_builder_data_score_data.rb +274 -0
  113. data/lib/flat_api/models/score_creation_builder_data_all_of_builder_data_score_data_instruments.rb +269 -0
  114. data/lib/flat_api/models/score_creation_common.rb +268 -0
  115. data/lib/flat_api/models/score_creation_file_import.rb +324 -0
  116. data/lib/flat_api/models/score_creation_google_drive_import.rb +291 -0
  117. data/lib/flat_api/models/score_creation_type.rb +19 -9
  118. data/lib/flat_api/models/score_details.rb +272 -81
  119. data/lib/flat_api/models/score_fork.rb +88 -36
  120. data/lib/flat_api/models/score_license.rb +19 -9
  121. data/lib/flat_api/models/score_likes_counts.rb +83 -35
  122. data/lib/flat_api/models/score_modification.rb +180 -50
  123. data/lib/flat_api/models/score_plays_counts.rb +236 -0
  124. data/lib/flat_api/models/score_privacy.rb +18 -9
  125. data/lib/flat_api/models/score_revision.rb +80 -43
  126. data/lib/flat_api/models/score_revision_creation.rb +105 -40
  127. data/lib/flat_api/models/score_revision_statistics.rb +83 -36
  128. data/lib/flat_api/models/score_source.rb +61 -35
  129. data/lib/flat_api/models/score_summary.rb +124 -40
  130. data/lib/flat_api/models/score_track.rb +172 -51
  131. data/lib/flat_api/models/score_track_creation.rb +101 -39
  132. data/lib/flat_api/models/score_track_point.rb +70 -38
  133. data/lib/flat_api/models/score_track_purpose.rb +40 -0
  134. data/lib/flat_api/models/score_track_state.rb +18 -9
  135. data/lib/flat_api/models/score_track_type.rb +18 -9
  136. data/lib/flat_api/models/score_track_update.rb +88 -37
  137. data/lib/flat_api/models/score_views_counts.rb +62 -35
  138. data/lib/flat_api/models/task.rb +364 -0
  139. data/lib/flat_api/models/task_export_options.rb +218 -0
  140. data/lib/flat_api/models/task_progress.rb +226 -0
  141. data/lib/flat_api/models/task_result.rb +226 -0
  142. data/lib/flat_api/models/tutteo_product.rb +42 -0
  143. data/lib/flat_api/models/user_admin_update.rb +219 -41
  144. data/lib/flat_api/models/user_azure_details.rb +235 -0
  145. data/lib/flat_api/models/user_basics.rb +187 -55
  146. data/lib/flat_api/models/user_community_profile_links.rb +272 -0
  147. data/lib/flat_api/models/user_creation.rb +215 -49
  148. data/lib/flat_api/models/user_details.rb +258 -93
  149. data/lib/flat_api/models/user_details_admin.rb +220 -68
  150. data/lib/flat_api/models/user_details_admin_all_of_license.rb +278 -0
  151. data/lib/flat_api/models/user_public.rb +242 -79
  152. data/lib/flat_api/models/user_public_summary.rb +201 -61
  153. data/lib/flat_api/models/user_signin_link.rb +225 -0
  154. data/lib/flat_api/models/user_signin_link_creation.rb +217 -0
  155. data/lib/flat_api/version.rb +5 -5
  156. data/lib/flat_api.rb +78 -15
  157. data/spec/api/account_api_spec.rb +11 -10
  158. data/spec/api/class_api_spec.rb +212 -68
  159. data/spec/api/collection_api_spec.rb +36 -37
  160. data/spec/api/edu_resources_api_spec.rb +181 -0
  161. data/spec/api/group_api_spec.rb +14 -15
  162. data/spec/api/organization_api_spec.rb +78 -39
  163. data/spec/api/score_api_spec.rb +105 -91
  164. data/spec/api/task_api_spec.rb +47 -0
  165. data/spec/api/user_api_spec.rb +27 -25
  166. data/spec/models/api_access_token_spec.rb +66 -0
  167. data/spec/models/app_scopes_spec.rb +30 -0
  168. data/spec/models/assignment_capabilities_can_publish_in_class_error_spec.rb +42 -0
  169. data/spec/models/assignment_capabilities_spec.rb +60 -0
  170. data/spec/models/assignment_copy_response_spec.rb +124 -0
  171. data/spec/models/assignment_copy_spec.rb +13 -23
  172. data/spec/models/assignment_copy_to_class_spec.rb +48 -0
  173. data/spec/models/assignment_copy_to_resource_library_spec.rb +42 -0
  174. data/spec/models/assignment_spec.rb +51 -39
  175. data/spec/models/assignment_submission_comment_creation_spec.rb +36 -0
  176. data/spec/models/assignment_submission_comment_spec.rb +72 -0
  177. data/spec/models/assignment_submission_comments_spec.rb +42 -0
  178. data/spec/models/assignment_submission_history_attachment_spec.rb +48 -0
  179. data/spec/models/assignment_submission_history_spec.rb +112 -0
  180. data/spec/models/assignment_submission_history_state_spec.rb +30 -0
  181. data/spec/models/assignment_submission_lti_spec.rb +36 -0
  182. data/spec/models/assignment_submission_playback_inner_spec.rb +42 -0
  183. data/spec/models/assignment_submission_spec.rb +68 -32
  184. data/spec/models/assignment_submission_state_spec.rb +30 -0
  185. data/spec/models/assignment_submission_update_spec.rb +29 -23
  186. data/spec/models/assignment_type_spec.rb +30 -0
  187. data/spec/models/assignment_update_spec.rb +100 -0
  188. data/spec/models/class_assignment_all_of_canvas_spec.rb +42 -0
  189. data/spec/models/class_assignment_all_of_lti_spec.rb +36 -0
  190. data/spec/models/class_assignment_all_of_mfc_spec.rb +42 -0
  191. data/spec/models/class_assignment_spec.rb +216 -0
  192. data/spec/models/class_assignment_update_all_of_google_classroom_spec.rb +36 -0
  193. data/spec/models/class_assignment_update_all_of_microsoft_graph_spec.rb +36 -0
  194. data/spec/models/class_assignment_update_spec.rb +150 -0
  195. data/spec/models/class_attachment_creation_spec.rb +41 -23
  196. data/spec/models/class_creation_spec.rb +34 -18
  197. data/spec/models/class_details_canvas_spec.rb +12 -18
  198. data/spec/models/class_details_clever_spec.rb +21 -27
  199. data/spec/models/class_details_google_classroom_spec.rb +12 -30
  200. data/spec/models/class_details_google_drive_spec.rb +12 -18
  201. data/spec/models/class_details_issues_spec.rb +36 -0
  202. data/spec/models/class_details_issues_sync_inner_spec.rb +52 -0
  203. data/spec/models/class_details_lti_spec.rb +13 -19
  204. data/spec/models/class_details_mfc_spec.rb +42 -0
  205. data/spec/models/class_details_microsoft_graph_spec.rb +36 -0
  206. data/spec/models/class_details_spec.rb +68 -34
  207. data/spec/models/class_grade_level_spec.rb +30 -0
  208. data/spec/models/class_roles_spec.rb +10 -16
  209. data/spec/models/class_state_spec.rb +10 -16
  210. data/spec/models/class_update_spec.rb +34 -18
  211. data/spec/models/collection_app_spec.rb +48 -0
  212. data/spec/models/collection_capabilities_spec.rb +15 -21
  213. data/spec/models/collection_creation_spec.rb +17 -17
  214. data/spec/models/collection_modification_spec.rb +17 -17
  215. data/spec/models/collection_privacy_spec.rb +10 -16
  216. data/spec/models/collection_spec.rb +39 -27
  217. data/spec/models/collection_type_spec.rb +10 -16
  218. data/spec/models/edu_library_spec.rb +62 -0
  219. data/spec/models/edu_resource_capabilities_spec.rb +48 -0
  220. data/spec/models/edu_resource_copy_spec.rb +36 -0
  221. data/spec/models/edu_resource_creation_spec.rb +48 -0
  222. data/spec/models/edu_resource_folder_spec.rb +36 -0
  223. data/spec/models/edu_resource_lti_link_spec.rb +36 -0
  224. data/spec/models/edu_resource_move_spec.rb +36 -0
  225. data/spec/models/edu_resource_privacy_spec.rb +30 -0
  226. data/spec/models/edu_resource_resource_spec.rb +32 -0
  227. data/spec/models/edu_resource_spec.rb +96 -0
  228. data/spec/models/edu_resource_type_spec.rb +30 -0
  229. data/spec/models/edu_resource_update_spec.rb +42 -0
  230. data/spec/models/edu_resource_use_in_class_spec.rb +42 -0
  231. data/spec/models/flat_error_response_spec.rb +14 -20
  232. data/spec/models/flat_locales_spec.rb +10 -16
  233. data/spec/models/google_classroom_coursework_spec.rb +19 -19
  234. data/spec/models/google_classroom_submission_spec.rb +13 -19
  235. data/spec/models/group_details_spec.rb +17 -23
  236. data/spec/models/group_spec.rb +21 -27
  237. data/spec/models/group_type_spec.rb +10 -16
  238. data/spec/models/license_mode_spec.rb +10 -16
  239. data/spec/models/license_sources_spec.rb +10 -16
  240. data/spec/models/lms_name_spec.rb +10 -16
  241. data/spec/models/lti_credentials_creation_spec.rb +12 -18
  242. data/spec/models/lti_credentials_spec.rb +19 -25
  243. data/spec/models/media_attachment_spec.rb +67 -37
  244. data/spec/models/media_score_sharing_mode_spec.rb +10 -16
  245. data/spec/models/microsoft_graph_assignment_spec.rb +54 -0
  246. data/spec/models/microsoft_graph_submission_spec.rb +42 -0
  247. data/spec/models/organization_invitation_creation_spec.rb +16 -18
  248. data/spec/models/organization_invitation_spec.rb +29 -23
  249. data/spec/models/organization_roles_spec.rb +10 -16
  250. data/spec/models/organization_user_access_token_creation_spec.rb +36 -0
  251. data/spec/models/resource_collaborator_creation_spec.rb +17 -23
  252. data/spec/models/resource_collaborator_spec.rb +47 -25
  253. data/spec/models/resource_rights_spec.rb +29 -19
  254. data/spec/models/score_comment_context_spec.rb +23 -23
  255. data/spec/models/score_comment_creation_spec.rb +16 -22
  256. data/spec/models/score_comment_moderation_spec.rb +46 -0
  257. data/spec/models/score_comment_spec.rb +35 -35
  258. data/spec/models/score_comment_update_spec.rb +14 -20
  259. data/spec/models/score_comments_counts_spec.rb +14 -20
  260. data/spec/models/score_creation_builder_data_all_of_builder_data_layout_data_spec.rb +82 -0
  261. data/spec/models/score_creation_builder_data_all_of_builder_data_score_data_instruments_spec.rb +60 -0
  262. data/spec/models/score_creation_builder_data_all_of_builder_data_score_data_spec.rb +66 -0
  263. data/spec/models/score_creation_builder_data_all_of_builder_data_spec.rb +42 -0
  264. data/spec/models/score_creation_builder_data_spec.rb +60 -0
  265. data/spec/models/score_creation_common_spec.rb +54 -0
  266. data/spec/models/score_creation_file_import_spec.rb +76 -0
  267. data/spec/models/score_creation_google_drive_import_spec.rb +60 -0
  268. data/spec/models/score_creation_spec.rb +12 -58
  269. data/spec/models/score_creation_type_spec.rb +10 -16
  270. data/spec/models/score_details_spec.rb +75 -45
  271. data/spec/models/score_fork_spec.rb +23 -17
  272. data/spec/models/score_license_spec.rb +10 -16
  273. data/spec/models/score_likes_counts_spec.rb +13 -19
  274. data/spec/models/score_modification_spec.rb +47 -23
  275. data/spec/models/score_plays_counts_spec.rb +48 -0
  276. data/spec/models/score_privacy_spec.rb +10 -16
  277. data/spec/models/score_revision_creation_spec.rb +18 -20
  278. data/spec/models/score_revision_spec.rb +23 -23
  279. data/spec/models/score_revision_statistics_spec.rb +24 -18
  280. data/spec/models/score_source_spec.rb +11 -17
  281. data/spec/models/score_summary_spec.rb +16 -22
  282. data/spec/models/score_track_creation_spec.rb +21 -21
  283. data/spec/models/score_track_point_spec.rb +17 -23
  284. data/spec/models/score_track_purpose_spec.rb +30 -0
  285. data/spec/models/score_track_spec.rb +28 -28
  286. data/spec/models/score_track_state_spec.rb +10 -16
  287. data/spec/models/score_track_type_spec.rb +10 -16
  288. data/spec/models/score_track_update_spec.rb +14 -20
  289. data/spec/models/score_views_counts_spec.rb +13 -19
  290. data/spec/models/task_export_options_spec.rb +36 -0
  291. data/spec/models/task_progress_spec.rb +42 -0
  292. data/spec/models/task_result_spec.rb +42 -0
  293. data/spec/models/task_spec.rb +100 -0
  294. data/spec/models/tutteo_product_spec.rb +30 -0
  295. data/spec/models/user_admin_update_spec.rb +36 -18
  296. data/spec/models/user_azure_details_spec.rb +48 -0
  297. data/spec/models/user_basics_spec.rb +47 -25
  298. data/spec/models/user_community_profile_links_spec.rb +66 -0
  299. data/spec/models/user_creation_spec.rb +36 -20
  300. data/spec/models/user_details_admin_all_of_license_spec.rb +60 -0
  301. data/spec/models/user_details_admin_spec.rb +60 -32
  302. data/spec/models/user_details_spec.rb +93 -45
  303. data/spec/models/user_public_spec.rb +71 -37
  304. data/spec/models/user_public_summary_spec.rb +51 -29
  305. data/spec/models/user_signin_link_creation_spec.rb +36 -0
  306. data/spec/models/user_signin_link_spec.rb +42 -0
  307. data/spec/spec_helper.rb +4 -4
  308. metadata +279 -327
  309. data/CHANGELOG.md +0 -17
  310. data/Gemfile +0 -7
  311. data/README.md +0 -271
  312. data/Rakefile +0 -8
  313. data/docs/AccountApi.md +0 -55
  314. data/docs/Assignment.md +0 -18
  315. data/docs/AssignmentCopy.md +0 -8
  316. data/docs/AssignmentCreation.md +0 -12
  317. data/docs/AssignmentSubmission.md +0 -19
  318. data/docs/AssignmentSubmissionUpdate.md +0 -11
  319. data/docs/ClassApi.md +0 -1051
  320. data/docs/ClassAttachmentCreation.md +0 -10
  321. data/docs/ClassCreation.md +0 -9
  322. data/docs/ClassDetails.md +0 -25
  323. data/docs/ClassDetailsCanvas.md +0 -9
  324. data/docs/ClassDetailsClever.md +0 -14
  325. data/docs/ClassDetailsGoogleClassroom.md +0 -11
  326. data/docs/ClassDetailsGoogleDrive.md +0 -9
  327. data/docs/ClassDetailsLti.md +0 -10
  328. data/docs/ClassRoles.md +0 -7
  329. data/docs/ClassState.md +0 -7
  330. data/docs/ClassUpdate.md +0 -9
  331. data/docs/Collection.md +0 -18
  332. data/docs/CollectionApi.md +0 -521
  333. data/docs/CollectionCapabilities.md +0 -12
  334. data/docs/CollectionCreation.md +0 -8
  335. data/docs/CollectionModification.md +0 -8
  336. data/docs/CollectionPrivacy.md +0 -7
  337. data/docs/CollectionTitle.md +0 -7
  338. data/docs/CollectionType.md +0 -7
  339. data/docs/FlatErrorResponse.md +0 -11
  340. data/docs/FlatLocales.md +0 -7
  341. data/docs/GoogleClassroomCoursework.md +0 -10
  342. data/docs/GoogleClassroomSubmission.md +0 -10
  343. data/docs/Group.md +0 -14
  344. data/docs/GroupApi.md +0 -167
  345. data/docs/GroupDetails.md +0 -14
  346. data/docs/GroupType.md +0 -7
  347. data/docs/LicenseMode.md +0 -7
  348. data/docs/LicenseSources.md +0 -7
  349. data/docs/LmsName.md +0 -7
  350. data/docs/LtiCredentials.md +0 -16
  351. data/docs/LtiCredentialsCreation.md +0 -9
  352. data/docs/MediaAttachment.md +0 -23
  353. data/docs/MediaScoreSharingMode.md +0 -7
  354. data/docs/OrganizationApi.md +0 -538
  355. data/docs/OrganizationInvitation.md +0 -14
  356. data/docs/OrganizationInvitationCreation.md +0 -9
  357. data/docs/OrganizationRoles.md +0 -7
  358. data/docs/ResourceCollaborator.md +0 -16
  359. data/docs/ResourceCollaboratorCreation.md +0 -14
  360. data/docs/ResourceRights.md +0 -10
  361. data/docs/ResourceSharingKey.md +0 -7
  362. data/docs/ScoreApi.md +0 -1658
  363. data/docs/ScoreComment.md +0 -22
  364. data/docs/ScoreCommentContext.md +0 -14
  365. data/docs/ScoreCommentCreation.md +0 -13
  366. data/docs/ScoreCommentUpdate.md +0 -11
  367. data/docs/ScoreCommentsCounts.md +0 -11
  368. data/docs/ScoreCreation.md +0 -14
  369. data/docs/ScoreCreationType.md +0 -7
  370. data/docs/ScoreData.md +0 -7
  371. data/docs/ScoreDataEncoding.md +0 -7
  372. data/docs/ScoreDetails.md +0 -36
  373. data/docs/ScoreFork.md +0 -8
  374. data/docs/ScoreLicense.md +0 -7
  375. data/docs/ScoreLikesCounts.md +0 -10
  376. data/docs/ScoreModification.md +0 -14
  377. data/docs/ScorePrivacy.md +0 -7
  378. data/docs/ScoreRevision.md +0 -14
  379. data/docs/ScoreRevisionCreation.md +0 -11
  380. data/docs/ScoreRevisionStatistics.md +0 -9
  381. data/docs/ScoreSource.md +0 -8
  382. data/docs/ScoreSummary.md +0 -13
  383. data/docs/ScoreTrack.md +0 -19
  384. data/docs/ScoreTrackCreation.md +0 -12
  385. data/docs/ScoreTrackPoint.md +0 -10
  386. data/docs/ScoreTrackState.md +0 -7
  387. data/docs/ScoreTrackType.md +0 -7
  388. data/docs/ScoreTrackUpdate.md +0 -11
  389. data/docs/ScoreViewsCounts.md +0 -10
  390. data/docs/UserAdminUpdate.md +0 -9
  391. data/docs/UserApi.md +0 -173
  392. data/docs/UserBasics.md +0 -13
  393. data/docs/UserCreation.md +0 -11
  394. data/docs/UserDetails.md +0 -28
  395. data/docs/UserDetailsAdmin.md +0 -20
  396. data/docs/UserDetailsAdminLicense.md +0 -12
  397. data/docs/UserInstruments.md +0 -7
  398. data/docs/UserPublic.md +0 -25
  399. data/docs/UserPublicSummary.md +0 -17
  400. data/flat_api.gemspec +0 -48
  401. data/lib/flat_api/models/assignment_creation.rb +0 -230
  402. data/lib/flat_api/models/collection_title.rb +0 -179
  403. data/lib/flat_api/models/resource_sharing_key.rb +0 -179
  404. data/lib/flat_api/models/score_data.rb +0 -179
  405. data/lib/flat_api/models/score_data_encoding.rb +0 -30
  406. data/lib/flat_api/models/user_details_admin_license.rb +0 -227
  407. data/lib/flat_api/models/user_instruments.rb +0 -179
  408. data/spec/api_client_spec.rb +0 -226
  409. data/spec/configuration_spec.rb +0 -42
  410. data/spec/models/assignment_creation_spec.rb +0 -66
  411. data/spec/models/collection_title_spec.rb +0 -36
  412. data/spec/models/resource_sharing_key_spec.rb +0 -36
  413. data/spec/models/score_data_encoding_spec.rb +0 -36
  414. data/spec/models/score_data_spec.rb +0 -36
  415. data/spec/models/user_details_admin_license_spec.rb +0 -66
  416. data/spec/models/user_instruments_spec.rb +0 -36
data/docs/ScoreApi.md DELETED
@@ -1,1658 +0,0 @@
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
- [**untrash_score**](ScoreApi.md#untrash_score) | **POST** /scores/{score}/untrash | Untrash a score
34
- [**update_score_comment**](ScoreApi.md#update_score_comment) | **PUT** /scores/{score}/comments/{comment} | Update an existing comment
35
- [**update_score_track**](ScoreApi.md#update_score_track) | **PUT** /scores/{score}/tracks/{track} | Update an audio or video track linked to a score
36
-
37
-
38
- # **add_score_collaborator**
39
- > ResourceCollaborator add_score_collaborator(scorebody)
40
-
41
- Add a new collaborator
42
-
43
- Share a score with a single user or a group. This API call allows to add, invite and update the collaborators of a resource. - To add an existing Flat user to the resource, specify its unique identifier in the `user` property. - To invite an external user to the resource, specify its email in the `userEmail` property. - To add a Flat group to the resource, specify its unique identifier in the `group` property. - To update an existing collaborator, process the same request with different rights.
44
-
45
- ### Example
46
- ```ruby
47
- # load the gem
48
- require 'flat_api'
49
- # setup authorization
50
- FlatApi.configure do |config|
51
- # Configure OAuth2 access token for authorization: OAuth2
52
- config.access_token = 'YOUR ACCESS TOKEN'
53
- end
54
-
55
- api_instance = FlatApi::ScoreApi.new
56
-
57
- 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`).
58
-
59
- body = FlatApi::ResourceCollaboratorCreation.new # ResourceCollaboratorCreation |
60
-
61
-
62
- begin
63
- #Add a new collaborator
64
- result = api_instance.add_score_collaborator(scorebody)
65
- p result
66
- rescue FlatApi::ApiError => e
67
- puts "Exception when calling ScoreApi->add_score_collaborator: #{e}"
68
- end
69
- ```
70
-
71
- ### Parameters
72
-
73
- Name | Type | Description | Notes
74
- ------------- | ------------- | ------------- | -------------
75
- **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`). |
76
- **body** | [**ResourceCollaboratorCreation**](ResourceCollaboratorCreation.md)| |
77
-
78
- ### Return type
79
-
80
- [**ResourceCollaborator**](ResourceCollaborator.md)
81
-
82
- ### Authorization
83
-
84
- [OAuth2](../README.md#OAuth2)
85
-
86
- ### HTTP request headers
87
-
88
- - **Content-Type**: application/json
89
- - **Accept**: application/json
90
-
91
-
92
-
93
- # **add_score_track**
94
- > ScoreTrack add_score_track(scorebody)
95
-
96
- Add a new video or audio track to the score
97
-
98
- 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.
99
-
100
- ### Example
101
- ```ruby
102
- # load the gem
103
- require 'flat_api'
104
- # setup authorization
105
- FlatApi.configure do |config|
106
- # Configure OAuth2 access token for authorization: OAuth2
107
- config.access_token = 'YOUR ACCESS TOKEN'
108
- end
109
-
110
- api_instance = FlatApi::ScoreApi.new
111
-
112
- 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`).
113
-
114
- body = FlatApi::ScoreTrackCreation.new # ScoreTrackCreation |
115
-
116
-
117
- begin
118
- #Add a new video or audio track to the score
119
- result = api_instance.add_score_track(scorebody)
120
- p result
121
- rescue FlatApi::ApiError => e
122
- puts "Exception when calling ScoreApi->add_score_track: #{e}"
123
- end
124
- ```
125
-
126
- ### Parameters
127
-
128
- Name | Type | Description | Notes
129
- ------------- | ------------- | ------------- | -------------
130
- **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`). |
131
- **body** | [**ScoreTrackCreation**](ScoreTrackCreation.md)| |
132
-
133
- ### Return type
134
-
135
- [**ScoreTrack**](ScoreTrack.md)
136
-
137
- ### Authorization
138
-
139
- [OAuth2](../README.md#OAuth2)
140
-
141
- ### HTTP request headers
142
-
143
- - **Content-Type**: application/json
144
- - **Accept**: application/json
145
-
146
-
147
-
148
- # **create_score**
149
- > ScoreDetails create_score(body)
150
-
151
- Create a new score
152
-
153
- 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). If no `collection` is specified, the API will create the score in the most appropriate collection. This can be the `root` collection or a different collection based on the user's settings or API authentication method. If a `collection` is specified and this one has more public privacy settings than the score (e.g. `public` vs `private` for the score), the privacy settings of the created score will be adjusted to the collection ones. You can check the adjusted privacy settings in the returned score `privacy`, and optionally adjust these settings if needed using `PUT /scores/{score}`.
154
-
155
- ### Example
156
- ```ruby
157
- # load the gem
158
- require 'flat_api'
159
- # setup authorization
160
- FlatApi.configure do |config|
161
- # Configure OAuth2 access token for authorization: OAuth2
162
- config.access_token = 'YOUR ACCESS TOKEN'
163
- end
164
-
165
- api_instance = FlatApi::ScoreApi.new
166
-
167
- body = FlatApi::ScoreCreation.new # ScoreCreation |
168
-
169
-
170
- begin
171
- #Create a new score
172
- result = api_instance.create_score(body)
173
- p result
174
- rescue FlatApi::ApiError => e
175
- puts "Exception when calling ScoreApi->create_score: #{e}"
176
- end
177
- ```
178
-
179
- ### Parameters
180
-
181
- Name | Type | Description | Notes
182
- ------------- | ------------- | ------------- | -------------
183
- **body** | [**ScoreCreation**](ScoreCreation.md)| |
184
-
185
- ### Return type
186
-
187
- [**ScoreDetails**](ScoreDetails.md)
188
-
189
- ### Authorization
190
-
191
- [OAuth2](../README.md#OAuth2)
192
-
193
- ### HTTP request headers
194
-
195
- - **Content-Type**: application/json
196
- - **Accept**: application/json
197
-
198
-
199
-
200
- # **create_score_revision**
201
- > ScoreRevision create_score_revision(scorebody)
202
-
203
- Create a new revision
204
-
205
- Update a score by uploading a new revision for this one.
206
-
207
- ### Example
208
- ```ruby
209
- # load the gem
210
- require 'flat_api'
211
- # setup authorization
212
- FlatApi.configure do |config|
213
- # Configure OAuth2 access token for authorization: OAuth2
214
- config.access_token = 'YOUR ACCESS TOKEN'
215
- end
216
-
217
- api_instance = FlatApi::ScoreApi.new
218
-
219
- 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`).
220
-
221
- body = FlatApi::ScoreRevisionCreation.new # ScoreRevisionCreation |
222
-
223
-
224
- begin
225
- #Create a new revision
226
- result = api_instance.create_score_revision(scorebody)
227
- p result
228
- rescue FlatApi::ApiError => e
229
- puts "Exception when calling ScoreApi->create_score_revision: #{e}"
230
- end
231
- ```
232
-
233
- ### Parameters
234
-
235
- Name | Type | Description | Notes
236
- ------------- | ------------- | ------------- | -------------
237
- **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`). |
238
- **body** | [**ScoreRevisionCreation**](ScoreRevisionCreation.md)| |
239
-
240
- ### Return type
241
-
242
- [**ScoreRevision**](ScoreRevision.md)
243
-
244
- ### Authorization
245
-
246
- [OAuth2](../README.md#OAuth2)
247
-
248
- ### HTTP request headers
249
-
250
- - **Content-Type**: application/json
251
- - **Accept**: application/json
252
-
253
-
254
-
255
- # **delete_score**
256
- > delete_score(score)
257
-
258
- Delete a score
259
-
260
- This method can be used by the owner/admin (`aclAdmin` rights) of a score as well as regular collaborators. When called by an owner/admin, it will schedule the deletion of the score, its revisions, and complete history. The score won't be accessible anymore after calling this method and the user's quota will directly be updated. When called by a regular collaborator (`aclRead` / `aclWrite`), the score will be unshared (i.e. removed from the account & own collections).
261
-
262
- ### Example
263
- ```ruby
264
- # load the gem
265
- require 'flat_api'
266
- # setup authorization
267
- FlatApi.configure do |config|
268
- # Configure OAuth2 access token for authorization: OAuth2
269
- config.access_token = 'YOUR ACCESS TOKEN'
270
- end
271
-
272
- api_instance = FlatApi::ScoreApi.new
273
-
274
- 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`).
275
-
276
-
277
- begin
278
- #Delete a score
279
- api_instance.delete_score(score)
280
- rescue FlatApi::ApiError => e
281
- puts "Exception when calling ScoreApi->delete_score: #{e}"
282
- end
283
- ```
284
-
285
- ### Parameters
286
-
287
- Name | Type | Description | Notes
288
- ------------- | ------------- | ------------- | -------------
289
- **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`). |
290
-
291
- ### Return type
292
-
293
- nil (empty response body)
294
-
295
- ### Authorization
296
-
297
- [OAuth2](../README.md#OAuth2)
298
-
299
- ### HTTP request headers
300
-
301
- - **Content-Type**: application/json
302
- - **Accept**: application/json
303
-
304
-
305
-
306
- # **delete_score_comment**
307
- > delete_score_comment(scorecomment, opts)
308
-
309
- Delete a comment
310
-
311
- ### Example
312
- ```ruby
313
- # load the gem
314
- require 'flat_api'
315
- # setup authorization
316
- FlatApi.configure do |config|
317
- # Configure OAuth2 access token for authorization: OAuth2
318
- config.access_token = 'YOUR ACCESS TOKEN'
319
- end
320
-
321
- api_instance = FlatApi::ScoreApi.new
322
-
323
- 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`).
324
-
325
- comment = "comment_example" # String | Unique identifier of a sheet music comment
326
-
327
- opts = {
328
- sharing_key: "sharing_key_example" # String | This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
329
- }
330
-
331
- begin
332
- #Delete a comment
333
- api_instance.delete_score_comment(scorecomment, opts)
334
- rescue FlatApi::ApiError => e
335
- puts "Exception when calling ScoreApi->delete_score_comment: #{e}"
336
- end
337
- ```
338
-
339
- ### Parameters
340
-
341
- Name | Type | Description | Notes
342
- ------------- | ------------- | ------------- | -------------
343
- **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`). |
344
- **comment** | **String**| Unique identifier of a sheet music comment |
345
- **sharing_key** | **String**| This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
346
-
347
- ### Return type
348
-
349
- nil (empty response body)
350
-
351
- ### Authorization
352
-
353
- [OAuth2](../README.md#OAuth2)
354
-
355
- ### HTTP request headers
356
-
357
- - **Content-Type**: application/json
358
- - **Accept**: application/json
359
-
360
-
361
-
362
- # **delete_score_track**
363
- > delete_score_track(scoretrack)
364
-
365
- Remove an audio or video track linked to the score
366
-
367
- ### Example
368
- ```ruby
369
- # load the gem
370
- require 'flat_api'
371
- # setup authorization
372
- FlatApi.configure do |config|
373
- # Configure OAuth2 access token for authorization: OAuth2
374
- config.access_token = 'YOUR ACCESS TOKEN'
375
- end
376
-
377
- api_instance = FlatApi::ScoreApi.new
378
-
379
- 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`).
380
-
381
- track = "track_example" # String | Unique identifier of a score audio track
382
-
383
-
384
- begin
385
- #Remove an audio or video track linked to the score
386
- api_instance.delete_score_track(scoretrack)
387
- rescue FlatApi::ApiError => e
388
- puts "Exception when calling ScoreApi->delete_score_track: #{e}"
389
- end
390
- ```
391
-
392
- ### Parameters
393
-
394
- Name | Type | Description | Notes
395
- ------------- | ------------- | ------------- | -------------
396
- **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`). |
397
- **track** | **String**| Unique identifier of a score audio track |
398
-
399
- ### Return type
400
-
401
- nil (empty response body)
402
-
403
- ### Authorization
404
-
405
- [OAuth2](../README.md#OAuth2)
406
-
407
- ### HTTP request headers
408
-
409
- - **Content-Type**: application/json
410
- - **Accept**: application/json
411
-
412
-
413
-
414
- # **edit_score**
415
- > ScoreDetails edit_score(score, opts)
416
-
417
- Edit a score's metadata
418
-
419
- 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}`). When editing the `title` of the score, the API metadata are updated directly when calling this method, unlike the data itself. The title in the score data will be \"lazy\" updated at the next score save with the editor or our internal save.
420
-
421
- ### Example
422
- ```ruby
423
- # load the gem
424
- require 'flat_api'
425
- # setup authorization
426
- FlatApi.configure do |config|
427
- # Configure OAuth2 access token for authorization: OAuth2
428
- config.access_token = 'YOUR ACCESS TOKEN'
429
- end
430
-
431
- api_instance = FlatApi::ScoreApi.new
432
-
433
- 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`).
434
-
435
- opts = {
436
- body: FlatApi::ScoreModification.new # ScoreModification |
437
- }
438
-
439
- begin
440
- #Edit a score's metadata
441
- result = api_instance.edit_score(score, opts)
442
- p result
443
- rescue FlatApi::ApiError => e
444
- puts "Exception when calling ScoreApi->edit_score: #{e}"
445
- end
446
- ```
447
-
448
- ### Parameters
449
-
450
- Name | Type | Description | Notes
451
- ------------- | ------------- | ------------- | -------------
452
- **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`). |
453
- **body** | [**ScoreModification**](ScoreModification.md)| | [optional]
454
-
455
- ### Return type
456
-
457
- [**ScoreDetails**](ScoreDetails.md)
458
-
459
- ### Authorization
460
-
461
- [OAuth2](../README.md#OAuth2)
462
-
463
- ### HTTP request headers
464
-
465
- - **Content-Type**: application/json
466
- - **Accept**: application/json
467
-
468
-
469
-
470
- # **fork_score**
471
- > ScoreDetails fork_score(scorebody, opts)
472
-
473
- Fork a score
474
-
475
- 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.
476
-
477
- ### Example
478
- ```ruby
479
- # load the gem
480
- require 'flat_api'
481
- # setup authorization
482
- FlatApi.configure do |config|
483
- # Configure OAuth2 access token for authorization: OAuth2
484
- config.access_token = 'YOUR ACCESS TOKEN'
485
- end
486
-
487
- api_instance = FlatApi::ScoreApi.new
488
-
489
- 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`).
490
-
491
- body = FlatApi::ScoreFork.new # ScoreFork |
492
-
493
- opts = {
494
- sharing_key: "sharing_key_example" # String | This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
495
- }
496
-
497
- begin
498
- #Fork a score
499
- result = api_instance.fork_score(scorebody, opts)
500
- p result
501
- rescue FlatApi::ApiError => e
502
- puts "Exception when calling ScoreApi->fork_score: #{e}"
503
- end
504
- ```
505
-
506
- ### Parameters
507
-
508
- Name | Type | Description | Notes
509
- ------------- | ------------- | ------------- | -------------
510
- **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`). |
511
- **body** | [**ScoreFork**](ScoreFork.md)| |
512
- **sharing_key** | **String**| This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
513
-
514
- ### Return type
515
-
516
- [**ScoreDetails**](ScoreDetails.md)
517
-
518
- ### Authorization
519
-
520
- [OAuth2](../README.md#OAuth2)
521
-
522
- ### HTTP request headers
523
-
524
- - **Content-Type**: application/json
525
- - **Accept**: application/json
526
-
527
-
528
-
529
- # **ger_user_likes**
530
- > Array<ScoreDetails> ger_user_likes(user, opts)
531
-
532
- List liked scores
533
-
534
- ### Example
535
- ```ruby
536
- # load the gem
537
- require 'flat_api'
538
- # setup authorization
539
- FlatApi.configure do |config|
540
- # Configure OAuth2 access token for authorization: OAuth2
541
- config.access_token = 'YOUR ACCESS TOKEN'
542
- end
543
-
544
- api_instance = FlatApi::ScoreApi.new
545
-
546
- user = "user_example" # String | Unique identifier of a Flat user. If you authenticated, you can use `me` to refer to the current user.
547
-
548
- opts = {
549
- ids: true # BOOLEAN | Return only the identifiers of the scores
550
- }
551
-
552
- begin
553
- #List liked scores
554
- result = api_instance.ger_user_likes(user, opts)
555
- p result
556
- rescue FlatApi::ApiError => e
557
- puts "Exception when calling ScoreApi->ger_user_likes: #{e}"
558
- end
559
- ```
560
-
561
- ### Parameters
562
-
563
- Name | Type | Description | Notes
564
- ------------- | ------------- | ------------- | -------------
565
- **user** | **String**| Unique identifier of a Flat user. If you authenticated, you can use `me` to refer to the current user. |
566
- **ids** | **BOOLEAN**| Return only the identifiers of the scores | [optional]
567
-
568
- ### Return type
569
-
570
- [**Array<ScoreDetails>**](ScoreDetails.md)
571
-
572
- ### Authorization
573
-
574
- [OAuth2](../README.md#OAuth2)
575
-
576
- ### HTTP request headers
577
-
578
- - **Content-Type**: application/json
579
- - **Accept**: application/json
580
-
581
-
582
-
583
- # **get_group_scores**
584
- > Array<ScoreDetails> get_group_scores(group, opts)
585
-
586
- List group's scores
587
-
588
- Get the list of scores shared with a group.
589
-
590
- ### Example
591
- ```ruby
592
- # load the gem
593
- require 'flat_api'
594
- # setup authorization
595
- FlatApi.configure do |config|
596
- # Configure OAuth2 access token for authorization: OAuth2
597
- config.access_token = 'YOUR ACCESS TOKEN'
598
- end
599
-
600
- api_instance = FlatApi::ScoreApi.new
601
-
602
- group = "group_example" # String | Unique identifier of a Flat group
603
-
604
- opts = {
605
- parent: "parent_example" # String | Filter the score forked from the score id `parent`
606
- }
607
-
608
- begin
609
- #List group's scores
610
- result = api_instance.get_group_scores(group, opts)
611
- p result
612
- rescue FlatApi::ApiError => e
613
- puts "Exception when calling ScoreApi->get_group_scores: #{e}"
614
- end
615
- ```
616
-
617
- ### Parameters
618
-
619
- Name | Type | Description | Notes
620
- ------------- | ------------- | ------------- | -------------
621
- **group** | **String**| Unique identifier of a Flat group |
622
- **parent** | **String**| Filter the score forked from the score id `parent` | [optional]
623
-
624
- ### Return type
625
-
626
- [**Array<ScoreDetails>**](ScoreDetails.md)
627
-
628
- ### Authorization
629
-
630
- [OAuth2](../README.md#OAuth2)
631
-
632
- ### HTTP request headers
633
-
634
- - **Content-Type**: application/json
635
- - **Accept**: application/json
636
-
637
-
638
-
639
- # **get_score**
640
- > ScoreDetails get_score(score, opts)
641
-
642
- Get a score's metadata
643
-
644
- 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.
645
-
646
- ### Example
647
- ```ruby
648
- # load the gem
649
- require 'flat_api'
650
- # setup authorization
651
- FlatApi.configure do |config|
652
- # Configure OAuth2 access token for authorization: OAuth2
653
- config.access_token = 'YOUR ACCESS TOKEN'
654
- end
655
-
656
- api_instance = FlatApi::ScoreApi.new
657
-
658
- 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`).
659
-
660
- opts = {
661
- sharing_key: "sharing_key_example" # String | This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
662
- }
663
-
664
- begin
665
- #Get a score's metadata
666
- result = api_instance.get_score(score, opts)
667
- p result
668
- rescue FlatApi::ApiError => e
669
- puts "Exception when calling ScoreApi->get_score: #{e}"
670
- end
671
- ```
672
-
673
- ### Parameters
674
-
675
- Name | Type | Description | Notes
676
- ------------- | ------------- | ------------- | -------------
677
- **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`). |
678
- **sharing_key** | **String**| This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
679
-
680
- ### Return type
681
-
682
- [**ScoreDetails**](ScoreDetails.md)
683
-
684
- ### Authorization
685
-
686
- [OAuth2](../README.md#OAuth2)
687
-
688
- ### HTTP request headers
689
-
690
- - **Content-Type**: application/json
691
- - **Accept**: application/json
692
-
693
-
694
-
695
- # **get_score_collaborator**
696
- > ResourceCollaborator get_score_collaborator(scorecollaborator, opts)
697
-
698
- Get a collaborator
699
-
700
- Get the information about a collaborator (User or Group).
701
-
702
- ### Example
703
- ```ruby
704
- # load the gem
705
- require 'flat_api'
706
- # setup authorization
707
- FlatApi.configure do |config|
708
- # Configure OAuth2 access token for authorization: OAuth2
709
- config.access_token = 'YOUR ACCESS TOKEN'
710
- end
711
-
712
- api_instance = FlatApi::ScoreApi.new
713
-
714
- 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`).
715
-
716
- collaborator = "collaborator_example" # String | Unique identifier of a **collaborator permission**, or unique identifier of a **User**, or unique identifier of a **Group**
717
-
718
- opts = {
719
- sharing_key: "sharing_key_example" # String | This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
720
- }
721
-
722
- begin
723
- #Get a collaborator
724
- result = api_instance.get_score_collaborator(scorecollaborator, opts)
725
- p result
726
- rescue FlatApi::ApiError => e
727
- puts "Exception when calling ScoreApi->get_score_collaborator: #{e}"
728
- end
729
- ```
730
-
731
- ### Parameters
732
-
733
- Name | Type | Description | Notes
734
- ------------- | ------------- | ------------- | -------------
735
- **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`). |
736
- **collaborator** | **String**| Unique identifier of a **collaborator permission**, or unique identifier of a **User**, or unique identifier of a **Group** |
737
- **sharing_key** | **String**| This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
738
-
739
- ### Return type
740
-
741
- [**ResourceCollaborator**](ResourceCollaborator.md)
742
-
743
- ### Authorization
744
-
745
- [OAuth2](../README.md#OAuth2)
746
-
747
- ### HTTP request headers
748
-
749
- - **Content-Type**: application/json
750
- - **Accept**: application/json
751
-
752
-
753
-
754
- # **get_score_collaborators**
755
- > Array<ResourceCollaborator> get_score_collaborators(score, opts)
756
-
757
- List the collaborators
758
-
759
- 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).
760
-
761
- ### Example
762
- ```ruby
763
- # load the gem
764
- require 'flat_api'
765
- # setup authorization
766
- FlatApi.configure do |config|
767
- # Configure OAuth2 access token for authorization: OAuth2
768
- config.access_token = 'YOUR ACCESS TOKEN'
769
- end
770
-
771
- api_instance = FlatApi::ScoreApi.new
772
-
773
- 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`).
774
-
775
- opts = {
776
- sharing_key: "sharing_key_example" # String | This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
777
- }
778
-
779
- begin
780
- #List the collaborators
781
- result = api_instance.get_score_collaborators(score, opts)
782
- p result
783
- rescue FlatApi::ApiError => e
784
- puts "Exception when calling ScoreApi->get_score_collaborators: #{e}"
785
- end
786
- ```
787
-
788
- ### Parameters
789
-
790
- Name | Type | Description | Notes
791
- ------------- | ------------- | ------------- | -------------
792
- **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`). |
793
- **sharing_key** | **String**| This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
794
-
795
- ### Return type
796
-
797
- [**Array<ResourceCollaborator>**](ResourceCollaborator.md)
798
-
799
- ### Authorization
800
-
801
- [OAuth2](../README.md#OAuth2)
802
-
803
- ### HTTP request headers
804
-
805
- - **Content-Type**: application/json
806
- - **Accept**: application/json
807
-
808
-
809
-
810
- # **get_score_comments**
811
- > Array<ScoreComment> get_score_comments(score, opts)
812
-
813
- List comments
814
-
815
- This method lists the different comments added on a music score (documents and inline) sorted by their post dates.
816
-
817
- ### Example
818
- ```ruby
819
- # load the gem
820
- require 'flat_api'
821
- # setup authorization
822
- FlatApi.configure do |config|
823
- # Configure OAuth2 access token for authorization: OAuth2
824
- config.access_token = 'YOUR ACCESS TOKEN'
825
- end
826
-
827
- api_instance = FlatApi::ScoreApi.new
828
-
829
- 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`).
830
-
831
- opts = {
832
- sharing_key: "sharing_key_example" # String | This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
833
- type: "type_example", # String | Filter the comments by type
834
- sort: "sort_example", # String | Sort
835
- direction: "direction_example", # String | Sort direction
836
- }
837
-
838
- begin
839
- #List comments
840
- result = api_instance.get_score_comments(score, opts)
841
- p result
842
- rescue FlatApi::ApiError => e
843
- puts "Exception when calling ScoreApi->get_score_comments: #{e}"
844
- end
845
- ```
846
-
847
- ### Parameters
848
-
849
- Name | Type | Description | Notes
850
- ------------- | ------------- | ------------- | -------------
851
- **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`). |
852
- **sharing_key** | **String**| This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
853
- **type** | **String**| Filter the comments by type | [optional]
854
- **sort** | **String**| Sort | [optional]
855
- **direction** | **String**| Sort direction | [optional]
856
-
857
- ### Return type
858
-
859
- [**Array<ScoreComment>**](ScoreComment.md)
860
-
861
- ### Authorization
862
-
863
- [OAuth2](../README.md#OAuth2)
864
-
865
- ### HTTP request headers
866
-
867
- - **Content-Type**: application/json
868
- - **Accept**: application/json
869
-
870
-
871
-
872
- # **get_score_revision**
873
- > ScoreRevision get_score_revision(scorerevision, , opts)
874
-
875
- Get a score revision
876
-
877
- 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.
878
-
879
- ### Example
880
- ```ruby
881
- # load the gem
882
- require 'flat_api'
883
- # setup authorization
884
- FlatApi.configure do |config|
885
- # Configure OAuth2 access token for authorization: OAuth2
886
- config.access_token = 'YOUR ACCESS TOKEN'
887
- end
888
-
889
- api_instance = FlatApi::ScoreApi.new
890
-
891
- 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`).
892
-
893
- revision = "revision_example" # String | Unique identifier of a score revision. You can use `last` to fetch the information related to the last version created.
894
-
895
- opts = {
896
- sharing_key: "sharing_key_example" # String | This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
897
- }
898
-
899
- begin
900
- #Get a score revision
901
- result = api_instance.get_score_revision(scorerevision, , opts)
902
- p result
903
- rescue FlatApi::ApiError => e
904
- puts "Exception when calling ScoreApi->get_score_revision: #{e}"
905
- end
906
- ```
907
-
908
- ### Parameters
909
-
910
- Name | Type | Description | Notes
911
- ------------- | ------------- | ------------- | -------------
912
- **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`). |
913
- **revision** | **String**| Unique identifier of a score revision. You can use `last` to fetch the information related to the last version created. |
914
- **sharing_key** | **String**| This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
915
-
916
- ### Return type
917
-
918
- [**ScoreRevision**](ScoreRevision.md)
919
-
920
- ### Authorization
921
-
922
- [OAuth2](../README.md#OAuth2)
923
-
924
- ### HTTP request headers
925
-
926
- - **Content-Type**: application/json
927
- - **Accept**: application/json
928
-
929
-
930
-
931
- # **get_score_revision_data**
932
- > String get_score_revision_data(scorerevision, format, opts)
933
-
934
- Get a score revision data
935
-
936
- 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`).
937
-
938
- ### Example
939
- ```ruby
940
- # load the gem
941
- require 'flat_api'
942
- # setup authorization
943
- FlatApi.configure do |config|
944
- # Configure OAuth2 access token for authorization: OAuth2
945
- config.access_token = 'YOUR ACCESS TOKEN'
946
- end
947
-
948
- api_instance = FlatApi::ScoreApi.new
949
-
950
- 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`).
951
-
952
- revision = "revision_example" # String | Unique identifier of a score revision. You can use `last` to fetch the information related to the last version created.
953
-
954
- format = "format_example" # String | The format of the file you will retrieve
955
-
956
- opts = {
957
- sharing_key: "sharing_key_example" # String | This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
958
- 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\".
959
- 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
960
- }
961
-
962
- begin
963
- #Get a score revision data
964
- result = api_instance.get_score_revision_data(scorerevision, format, opts)
965
- p result
966
- rescue FlatApi::ApiError => e
967
- puts "Exception when calling ScoreApi->get_score_revision_data: #{e}"
968
- end
969
- ```
970
-
971
- ### Parameters
972
-
973
- Name | Type | Description | Notes
974
- ------------- | ------------- | ------------- | -------------
975
- **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`). |
976
- **revision** | **String**| Unique identifier of a score revision. You can use `last` to fetch the information related to the last version created. |
977
- **format** | **String**| The format of the file you will retrieve |
978
- **sharing_key** | **String**| This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
979
- **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]
980
- **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]
981
-
982
- ### Return type
983
-
984
- **String**
985
-
986
- ### Authorization
987
-
988
- [OAuth2](../README.md#OAuth2)
989
-
990
- ### HTTP request headers
991
-
992
- - **Content-Type**: application/json
993
- - **Accept**: application/json, application/vnd.recordare.musicxml+xml, application/vnd.recordare.musicxml, audio/mp3, audio/wav, audio/midi, image/png
994
-
995
-
996
-
997
- # **get_score_revisions**
998
- > Array<ScoreRevision> get_score_revisions(score, opts)
999
-
1000
- List the revisions
1001
-
1002
- 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.
1003
-
1004
- ### Example
1005
- ```ruby
1006
- # load the gem
1007
- require 'flat_api'
1008
- # setup authorization
1009
- FlatApi.configure do |config|
1010
- # Configure OAuth2 access token for authorization: OAuth2
1011
- config.access_token = 'YOUR ACCESS TOKEN'
1012
- end
1013
-
1014
- api_instance = FlatApi::ScoreApi.new
1015
-
1016
- 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`).
1017
-
1018
- opts = {
1019
- sharing_key: "sharing_key_example" # String | This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
1020
- }
1021
-
1022
- begin
1023
- #List the revisions
1024
- result = api_instance.get_score_revisions(score, opts)
1025
- p result
1026
- rescue FlatApi::ApiError => e
1027
- puts "Exception when calling ScoreApi->get_score_revisions: #{e}"
1028
- end
1029
- ```
1030
-
1031
- ### Parameters
1032
-
1033
- Name | Type | Description | Notes
1034
- ------------- | ------------- | ------------- | -------------
1035
- **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`). |
1036
- **sharing_key** | **String**| This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
1037
-
1038
- ### Return type
1039
-
1040
- [**Array<ScoreRevision>**](ScoreRevision.md)
1041
-
1042
- ### Authorization
1043
-
1044
- [OAuth2](../README.md#OAuth2)
1045
-
1046
- ### HTTP request headers
1047
-
1048
- - **Content-Type**: application/json
1049
- - **Accept**: application/json
1050
-
1051
-
1052
-
1053
- # **get_score_submissions**
1054
- > Array<AssignmentSubmission> get_score_submissions(score)
1055
-
1056
- List submissions related to the score
1057
-
1058
- 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.
1059
-
1060
- ### Example
1061
- ```ruby
1062
- # load the gem
1063
- require 'flat_api'
1064
- # setup authorization
1065
- FlatApi.configure do |config|
1066
- # Configure OAuth2 access token for authorization: OAuth2
1067
- config.access_token = 'YOUR ACCESS TOKEN'
1068
- end
1069
-
1070
- api_instance = FlatApi::ScoreApi.new
1071
-
1072
- 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`).
1073
-
1074
-
1075
- begin
1076
- #List submissions related to the score
1077
- result = api_instance.get_score_submissions(score)
1078
- p result
1079
- rescue FlatApi::ApiError => e
1080
- puts "Exception when calling ScoreApi->get_score_submissions: #{e}"
1081
- end
1082
- ```
1083
-
1084
- ### Parameters
1085
-
1086
- Name | Type | Description | Notes
1087
- ------------- | ------------- | ------------- | -------------
1088
- **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`). |
1089
-
1090
- ### Return type
1091
-
1092
- [**Array<AssignmentSubmission>**](AssignmentSubmission.md)
1093
-
1094
- ### Authorization
1095
-
1096
- [OAuth2](../README.md#OAuth2)
1097
-
1098
- ### HTTP request headers
1099
-
1100
- - **Content-Type**: application/json
1101
- - **Accept**: application/json
1102
-
1103
-
1104
-
1105
- # **get_score_track**
1106
- > ScoreTrack get_score_track(scoretrack, opts)
1107
-
1108
- Retrieve the details of an audio or video track linked to a score
1109
-
1110
- ### Example
1111
- ```ruby
1112
- # load the gem
1113
- require 'flat_api'
1114
- # setup authorization
1115
- FlatApi.configure do |config|
1116
- # Configure OAuth2 access token for authorization: OAuth2
1117
- config.access_token = 'YOUR ACCESS TOKEN'
1118
- end
1119
-
1120
- api_instance = FlatApi::ScoreApi.new
1121
-
1122
- 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`).
1123
-
1124
- track = "track_example" # String | Unique identifier of a score audio track
1125
-
1126
- opts = {
1127
- sharing_key: "sharing_key_example" # String | This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
1128
- }
1129
-
1130
- begin
1131
- #Retrieve the details of an audio or video track linked to a score
1132
- result = api_instance.get_score_track(scoretrack, opts)
1133
- p result
1134
- rescue FlatApi::ApiError => e
1135
- puts "Exception when calling ScoreApi->get_score_track: #{e}"
1136
- end
1137
- ```
1138
-
1139
- ### Parameters
1140
-
1141
- Name | Type | Description | Notes
1142
- ------------- | ------------- | ------------- | -------------
1143
- **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`). |
1144
- **track** | **String**| Unique identifier of a score audio track |
1145
- **sharing_key** | **String**| This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
1146
-
1147
- ### Return type
1148
-
1149
- [**ScoreTrack**](ScoreTrack.md)
1150
-
1151
- ### Authorization
1152
-
1153
- [OAuth2](../README.md#OAuth2)
1154
-
1155
- ### HTTP request headers
1156
-
1157
- - **Content-Type**: application/json
1158
- - **Accept**: application/json
1159
-
1160
-
1161
-
1162
- # **get_user_scores**
1163
- > Array<ScoreDetails> get_user_scores(user, opts)
1164
-
1165
- List user's scores
1166
-
1167
- Get the list of public scores owned by a User. **DEPRECATED**: Please note that the current behavior will be deprecrated on **2019-01-01**. This method will no longer list private and shared scores, but only public scores of a Flat account. If you want to access to private scores, please use the [Collections API](#tag/Collection) instead.
1168
-
1169
- ### Example
1170
- ```ruby
1171
- # load the gem
1172
- require 'flat_api'
1173
- # setup authorization
1174
- FlatApi.configure do |config|
1175
- # Configure OAuth2 access token for authorization: OAuth2
1176
- config.access_token = 'YOUR ACCESS TOKEN'
1177
- end
1178
-
1179
- api_instance = FlatApi::ScoreApi.new
1180
-
1181
- user = "user_example" # String | Unique identifier of a Flat user. If you authenticated, you can use `me` to refer to the current user.
1182
-
1183
- opts = {
1184
- parent: "parent_example" # String | Filter the score forked from the score id `parent`
1185
- }
1186
-
1187
- begin
1188
- #List user's scores
1189
- result = api_instance.get_user_scores(user, opts)
1190
- p result
1191
- rescue FlatApi::ApiError => e
1192
- puts "Exception when calling ScoreApi->get_user_scores: #{e}"
1193
- end
1194
- ```
1195
-
1196
- ### Parameters
1197
-
1198
- Name | Type | Description | Notes
1199
- ------------- | ------------- | ------------- | -------------
1200
- **user** | **String**| Unique identifier of a Flat user. If you authenticated, you can use `me` to refer to the current user. |
1201
- **parent** | **String**| Filter the score forked from the score id `parent` | [optional]
1202
-
1203
- ### Return type
1204
-
1205
- [**Array<ScoreDetails>**](ScoreDetails.md)
1206
-
1207
- ### Authorization
1208
-
1209
- [OAuth2](../README.md#OAuth2)
1210
-
1211
- ### HTTP request headers
1212
-
1213
- - **Content-Type**: application/json
1214
- - **Accept**: application/json
1215
-
1216
-
1217
-
1218
- # **list_score_tracks**
1219
- > Array<ScoreTrack> list_score_tracks(score, opts)
1220
-
1221
- List the audio or video tracks linked to a score
1222
-
1223
- ### Example
1224
- ```ruby
1225
- # load the gem
1226
- require 'flat_api'
1227
- # setup authorization
1228
- FlatApi.configure do |config|
1229
- # Configure OAuth2 access token for authorization: OAuth2
1230
- config.access_token = 'YOUR ACCESS TOKEN'
1231
- end
1232
-
1233
- api_instance = FlatApi::ScoreApi.new
1234
-
1235
- 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`).
1236
-
1237
- opts = {
1238
- sharing_key: "sharing_key_example" # String | This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
1239
- }
1240
-
1241
- begin
1242
- #List the audio or video tracks linked to a score
1243
- result = api_instance.list_score_tracks(score, opts)
1244
- p result
1245
- rescue FlatApi::ApiError => e
1246
- puts "Exception when calling ScoreApi->list_score_tracks: #{e}"
1247
- end
1248
- ```
1249
-
1250
- ### Parameters
1251
-
1252
- Name | Type | Description | Notes
1253
- ------------- | ------------- | ------------- | -------------
1254
- **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`). |
1255
- **sharing_key** | **String**| This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
1256
-
1257
- ### Return type
1258
-
1259
- [**Array<ScoreTrack>**](ScoreTrack.md)
1260
-
1261
- ### Authorization
1262
-
1263
- [OAuth2](../README.md#OAuth2)
1264
-
1265
- ### HTTP request headers
1266
-
1267
- - **Content-Type**: application/json
1268
- - **Accept**: application/json
1269
-
1270
-
1271
-
1272
- # **mark_score_comment_resolved**
1273
- > mark_score_comment_resolved(scorecomment, opts)
1274
-
1275
- Mark the comment as resolved
1276
-
1277
- ### Example
1278
- ```ruby
1279
- # load the gem
1280
- require 'flat_api'
1281
- # setup authorization
1282
- FlatApi.configure do |config|
1283
- # Configure OAuth2 access token for authorization: OAuth2
1284
- config.access_token = 'YOUR ACCESS TOKEN'
1285
- end
1286
-
1287
- api_instance = FlatApi::ScoreApi.new
1288
-
1289
- 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`).
1290
-
1291
- comment = "comment_example" # String | Unique identifier of a sheet music comment
1292
-
1293
- opts = {
1294
- sharing_key: "sharing_key_example" # String | This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
1295
- }
1296
-
1297
- begin
1298
- #Mark the comment as resolved
1299
- api_instance.mark_score_comment_resolved(scorecomment, opts)
1300
- rescue FlatApi::ApiError => e
1301
- puts "Exception when calling ScoreApi->mark_score_comment_resolved: #{e}"
1302
- end
1303
- ```
1304
-
1305
- ### Parameters
1306
-
1307
- Name | Type | Description | Notes
1308
- ------------- | ------------- | ------------- | -------------
1309
- **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`). |
1310
- **comment** | **String**| Unique identifier of a sheet music comment |
1311
- **sharing_key** | **String**| This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
1312
-
1313
- ### Return type
1314
-
1315
- nil (empty response body)
1316
-
1317
- ### Authorization
1318
-
1319
- [OAuth2](../README.md#OAuth2)
1320
-
1321
- ### HTTP request headers
1322
-
1323
- - **Content-Type**: application/json
1324
- - **Accept**: application/json
1325
-
1326
-
1327
-
1328
- # **mark_score_comment_unresolved**
1329
- > mark_score_comment_unresolved(scorecomment, opts)
1330
-
1331
- Mark the comment as unresolved
1332
-
1333
- ### Example
1334
- ```ruby
1335
- # load the gem
1336
- require 'flat_api'
1337
- # setup authorization
1338
- FlatApi.configure do |config|
1339
- # Configure OAuth2 access token for authorization: OAuth2
1340
- config.access_token = 'YOUR ACCESS TOKEN'
1341
- end
1342
-
1343
- api_instance = FlatApi::ScoreApi.new
1344
-
1345
- 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`).
1346
-
1347
- comment = "comment_example" # String | Unique identifier of a sheet music comment
1348
-
1349
- opts = {
1350
- sharing_key: "sharing_key_example" # String | This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
1351
- }
1352
-
1353
- begin
1354
- #Mark the comment as unresolved
1355
- api_instance.mark_score_comment_unresolved(scorecomment, opts)
1356
- rescue FlatApi::ApiError => e
1357
- puts "Exception when calling ScoreApi->mark_score_comment_unresolved: #{e}"
1358
- end
1359
- ```
1360
-
1361
- ### Parameters
1362
-
1363
- Name | Type | Description | Notes
1364
- ------------- | ------------- | ------------- | -------------
1365
- **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`). |
1366
- **comment** | **String**| Unique identifier of a sheet music comment |
1367
- **sharing_key** | **String**| This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
1368
-
1369
- ### Return type
1370
-
1371
- nil (empty response body)
1372
-
1373
- ### Authorization
1374
-
1375
- [OAuth2](../README.md#OAuth2)
1376
-
1377
- ### HTTP request headers
1378
-
1379
- - **Content-Type**: application/json
1380
- - **Accept**: application/json
1381
-
1382
-
1383
-
1384
- # **post_score_comment**
1385
- > ScoreComment post_score_comment(scorebody, opts)
1386
-
1387
- Post a new comment
1388
-
1389
- 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`.
1390
-
1391
- ### Example
1392
- ```ruby
1393
- # load the gem
1394
- require 'flat_api'
1395
- # setup authorization
1396
- FlatApi.configure do |config|
1397
- # Configure OAuth2 access token for authorization: OAuth2
1398
- config.access_token = 'YOUR ACCESS TOKEN'
1399
- end
1400
-
1401
- api_instance = FlatApi::ScoreApi.new
1402
-
1403
- 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`).
1404
-
1405
- body = FlatApi::ScoreCommentCreation.new # ScoreCommentCreation |
1406
-
1407
- opts = {
1408
- sharing_key: "sharing_key_example" # String | This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
1409
- }
1410
-
1411
- begin
1412
- #Post a new comment
1413
- result = api_instance.post_score_comment(scorebody, opts)
1414
- p result
1415
- rescue FlatApi::ApiError => e
1416
- puts "Exception when calling ScoreApi->post_score_comment: #{e}"
1417
- end
1418
- ```
1419
-
1420
- ### Parameters
1421
-
1422
- Name | Type | Description | Notes
1423
- ------------- | ------------- | ------------- | -------------
1424
- **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`). |
1425
- **body** | [**ScoreCommentCreation**](ScoreCommentCreation.md)| |
1426
- **sharing_key** | **String**| This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
1427
-
1428
- ### Return type
1429
-
1430
- [**ScoreComment**](ScoreComment.md)
1431
-
1432
- ### Authorization
1433
-
1434
- [OAuth2](../README.md#OAuth2)
1435
-
1436
- ### HTTP request headers
1437
-
1438
- - **Content-Type**: application/json
1439
- - **Accept**: application/json
1440
-
1441
-
1442
-
1443
- # **remove_score_collaborator**
1444
- > remove_score_collaborator(scorecollaborator)
1445
-
1446
- Delete a collaborator
1447
-
1448
- Remove the specified collaborator from the score
1449
-
1450
- ### Example
1451
- ```ruby
1452
- # load the gem
1453
- require 'flat_api'
1454
- # setup authorization
1455
- FlatApi.configure do |config|
1456
- # Configure OAuth2 access token for authorization: OAuth2
1457
- config.access_token = 'YOUR ACCESS TOKEN'
1458
- end
1459
-
1460
- api_instance = FlatApi::ScoreApi.new
1461
-
1462
- 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`).
1463
-
1464
- collaborator = "collaborator_example" # String | Unique identifier of a **collaborator permission**, or unique identifier of a **User**, or unique identifier of a **Group**
1465
-
1466
-
1467
- begin
1468
- #Delete a collaborator
1469
- api_instance.remove_score_collaborator(scorecollaborator)
1470
- rescue FlatApi::ApiError => e
1471
- puts "Exception when calling ScoreApi->remove_score_collaborator: #{e}"
1472
- end
1473
- ```
1474
-
1475
- ### Parameters
1476
-
1477
- Name | Type | Description | Notes
1478
- ------------- | ------------- | ------------- | -------------
1479
- **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`). |
1480
- **collaborator** | **String**| Unique identifier of a **collaborator permission**, or unique identifier of a **User**, or unique identifier of a **Group** |
1481
-
1482
- ### Return type
1483
-
1484
- nil (empty response body)
1485
-
1486
- ### Authorization
1487
-
1488
- [OAuth2](../README.md#OAuth2)
1489
-
1490
- ### HTTP request headers
1491
-
1492
- - **Content-Type**: application/json
1493
- - **Accept**: application/json
1494
-
1495
-
1496
-
1497
- # **untrash_score**
1498
- > untrash_score(score)
1499
-
1500
- Untrash a score
1501
-
1502
- This method will remove the score from the `trash` collection and from the deletion queue, and add it back to the original collections.
1503
-
1504
- ### Example
1505
- ```ruby
1506
- # load the gem
1507
- require 'flat_api'
1508
-
1509
- api_instance = FlatApi::ScoreApi.new
1510
-
1511
- 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`).
1512
-
1513
-
1514
- begin
1515
- #Untrash a score
1516
- api_instance.untrash_score(score)
1517
- rescue FlatApi::ApiError => e
1518
- puts "Exception when calling ScoreApi->untrash_score: #{e}"
1519
- end
1520
- ```
1521
-
1522
- ### Parameters
1523
-
1524
- Name | Type | Description | Notes
1525
- ------------- | ------------- | ------------- | -------------
1526
- **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`). |
1527
-
1528
- ### Return type
1529
-
1530
- nil (empty response body)
1531
-
1532
- ### Authorization
1533
-
1534
- No authorization required
1535
-
1536
- ### HTTP request headers
1537
-
1538
- - **Content-Type**: application/json
1539
- - **Accept**: application/json
1540
-
1541
-
1542
-
1543
- # **update_score_comment**
1544
- > ScoreComment update_score_comment(scorecommentbody, opts)
1545
-
1546
- Update an existing comment
1547
-
1548
- ### Example
1549
- ```ruby
1550
- # load the gem
1551
- require 'flat_api'
1552
- # setup authorization
1553
- FlatApi.configure do |config|
1554
- # Configure OAuth2 access token for authorization: OAuth2
1555
- config.access_token = 'YOUR ACCESS TOKEN'
1556
- end
1557
-
1558
- api_instance = FlatApi::ScoreApi.new
1559
-
1560
- 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`).
1561
-
1562
- comment = "comment_example" # String | Unique identifier of a sheet music comment
1563
-
1564
- body = FlatApi::ScoreCommentUpdate.new # ScoreCommentUpdate |
1565
-
1566
- opts = {
1567
- sharing_key: "sharing_key_example" # String | This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document.
1568
- }
1569
-
1570
- begin
1571
- #Update an existing comment
1572
- result = api_instance.update_score_comment(scorecommentbody, opts)
1573
- p result
1574
- rescue FlatApi::ApiError => e
1575
- puts "Exception when calling ScoreApi->update_score_comment: #{e}"
1576
- end
1577
- ```
1578
-
1579
- ### Parameters
1580
-
1581
- Name | Type | Description | Notes
1582
- ------------- | ------------- | ------------- | -------------
1583
- **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`). |
1584
- **comment** | **String**| Unique identifier of a sheet music comment |
1585
- **body** | [**ScoreCommentUpdate**](ScoreCommentUpdate.md)| |
1586
- **sharing_key** | **String**| This sharing key must be specified to access to a score or collection with a `privacy` mode set to `privateLink` and the current user is not a collaborator of the document. | [optional]
1587
-
1588
- ### Return type
1589
-
1590
- [**ScoreComment**](ScoreComment.md)
1591
-
1592
- ### Authorization
1593
-
1594
- [OAuth2](../README.md#OAuth2)
1595
-
1596
- ### HTTP request headers
1597
-
1598
- - **Content-Type**: application/json
1599
- - **Accept**: application/json
1600
-
1601
-
1602
-
1603
- # **update_score_track**
1604
- > ScoreTrack update_score_track(scoretrackbody)
1605
-
1606
- Update an audio or video track linked to a score
1607
-
1608
- ### Example
1609
- ```ruby
1610
- # load the gem
1611
- require 'flat_api'
1612
- # setup authorization
1613
- FlatApi.configure do |config|
1614
- # Configure OAuth2 access token for authorization: OAuth2
1615
- config.access_token = 'YOUR ACCESS TOKEN'
1616
- end
1617
-
1618
- api_instance = FlatApi::ScoreApi.new
1619
-
1620
- 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`).
1621
-
1622
- track = "track_example" # String | Unique identifier of a score audio track
1623
-
1624
- body = FlatApi::ScoreTrackUpdate.new # ScoreTrackUpdate |
1625
-
1626
-
1627
- begin
1628
- #Update an audio or video track linked to a score
1629
- result = api_instance.update_score_track(scoretrackbody)
1630
- p result
1631
- rescue FlatApi::ApiError => e
1632
- puts "Exception when calling ScoreApi->update_score_track: #{e}"
1633
- end
1634
- ```
1635
-
1636
- ### Parameters
1637
-
1638
- Name | Type | Description | Notes
1639
- ------------- | ------------- | ------------- | -------------
1640
- **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`). |
1641
- **track** | **String**| Unique identifier of a score audio track |
1642
- **body** | [**ScoreTrackUpdate**](ScoreTrackUpdate.md)| |
1643
-
1644
- ### Return type
1645
-
1646
- [**ScoreTrack**](ScoreTrack.md)
1647
-
1648
- ### Authorization
1649
-
1650
- [OAuth2](../README.md#OAuth2)
1651
-
1652
- ### HTTP request headers
1653
-
1654
- - **Content-Type**: application/json
1655
- - **Accept**: application/json
1656
-
1657
-
1658
-