How can I upload zoom recorded video on amazon s3 automatically, not the url the complete video using node js

How can I upload zoom recorded video on amazon s3 automatically, not the url the complete video using node js

@ayushi.singh
When you call the Get Recordings API, it gives you the download_url. You can download the recording from there and then create a custom logic that uploads it. We do not have a ready to use code for this

Can you please let me know what custom logic needs to be created, do you have any reference for this?

Here is a sample nodejs code to list and download zoom recordings:

const listRecordings = async () => {
    const response = await axios.get(`https://api.zoom.us/v2/users/${zoomUserId}/recordings`, {
        headers: {
            'Authorization': `Bearer ${zoomJwtToken}`,
            'Content-Type': 'application/json',
        },
    });

    return response.data;
};

const downloadRecording = async (url) => {
    const response = await axios.get(url, { responseType: 'stream' });

    response.data.pipe(fs.createWriteStream('recording.mp4'));

    return new Promise((resolve, reject) => {
        response.data.on('end', () => resolve());
        response.data.on('error', () => reject());
    });
};

//Your logic to upload recording to amazon s3 will go here