mandag 2. juni 2025
17:57
API request to 0Codekit-service requires a json format in the body with url to to “real” audio file f.ex. .mp3 or .wav. The audio file is saved on GoogleDrive and i use module “Get file”. But i can not use any variables from this module to link in the json format in the HTTP module /body/JSON format. Please find attached the images to illustrate my case.
could you help me how i can link a file on GoogleDrive to HTTP-module.
Hi @annapet_mikel,
It seems the issue you’re facing is related to linking the audio file from Google Drive to the HTTP request in the required JSON format. Here’s what I believe could be causing the issue:
Issue:
-
File URL Format: The 0Codekit service expects a URL that directly points to an audio file with an extension such as .mp3
or .wav
. Google Drive URLs don’t provide this kind of direct link.
-
File Accessibility: The file on Google Drive needs to be publicly accessible for the HTTP request to fetch it. By default, Google Drive files are private.
Suggested Solution:
Step 1: Use the Download Module: In Make.com, configure the Google Drive module to download the audio file. This will return the file data in a binary format.
Step 2: Encode to Base64: Use the base64 encoding function to convert the file’s binary data into a base64 string.
Step 3: Embed the Base64 Data: In the HTTP request, you can include the base64-encoded data directly in the JSON body. This method avoids the need for a direct URL to the file, as the file content is transmitted directly within the request.
1 Like
sorry, i didn’t find base64 encoding module, ref AI assistant: “The current blueprint does not include a base64 encoding module. I”
Hello @annapet_mikel,
Sorry for the confusion! base64
is not a module, it’s a function.
You can use the set variable
module and the base64
function as shown below:
1 Like