We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2b607d commit dc1d50cCopy full SHA for dc1d50c
spec/openapi.yaml
@@ -180,6 +180,23 @@ paths:
180
- OAuth2:
181
- scores
182
x-codegen-request-body-name: body
183
+ x-codeSamples:
184
+ - lang: 'Ruby'
185
+ source: |
186
+ require 'flat_api'
187
+ FlatApi.configure do |config|
188
+ config.access_token = ''
189
+ end
190
+ begin
191
+ score_data = File.open("my-score.musicxml", "r:UTF-8") { |f| f.read }
192
+ body = FlatApi::ScoreCreationFileImport.new({
193
+ title: 'Score Title',
194
+ data: score_data,
195
+ })
196
+ p FlatApi::ScoreApi.new.create_score(body)
197
+ rescue FlatApi::ApiError => e
198
+ puts "Error when calling ScoreApi->create_score: #{e}"
199
200
/scores/{score}:
201
parameters:
202
- name: score
0 commit comments