Skip to content

Commit

Permalink
update mkdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
grokify committed Sep 27, 2015
1 parent 86fda3f commit 410155e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/usage/messages/Call-Recordings.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ response.body['records'].each do |record|
req.url record['recording']['contentUri']
end
# Save call recording
filenameMp3 = 'recording_' + record['id'] + '.mp3'
File.open(filenameMp3, 'wb') { |fp| fp.write(response_file.body) }
file_mp3 = 'recording_' + record['id'] + '.mp3'
File.open(file_mp3, 'wb') { |fp| fp.write(response_file.body) }
# Save call log record (call recording metadata) using 'json'
filenameJson = 'recording_' + record['id'] + '.json'
File.open(filenameJson, 'wb') { |fp| fp.write(record.to_json) }
file_meta = 'recording_' + record['id'] + '.json'
File.open(file_meta, 'wb') { |fp| fp.write(record.to_json) }
end
```

0 comments on commit 410155e

Please sign in to comment.