I want my private Zendesk App to store Voice recordings of Tickets on an external server.
While the File-saving functionality works, I am getting empty mp3 files on my server side.
Through Support API, I am getting the ticket's recording URL and trying the following:
let res = await client.request(recordingURL).then(res => res);
What I am getting returned is a String object that does not have the option to be converted to a Blob/File object of type mpeg or mp3. The string also looks like a massive unreadable character set.
Constructing a Blob Object with the request's string-result gives me a file of size 2.2MB whereas the manual download gives me a 1.3MB mp3-file.
What can I do to get a readable stream of the Recording located in the recordingURL?
Or at least, what can I do to get a response that I can work with?