I'm trying to build a video conglomerator using several different video hosting sites. I'm able to get videos from youtube and dailymotion with simple axios calls like:
const response = await axios({
method:'GET',
url:DAILYMOTION_API_URL,
params:{
search:searchTerm,
limit:limit,
}
});
but when I try to do the same with vimeo like:
const response = await axios({
method: 'GET',
url: VIMEO_API_URL,
params: {
secret:CLIENT_SECRET,
token:TOKEN,
identifier:CLIENT_IDENTIFIER,
query:searchTerm,
}
});
I get a 401 response. If I need to use python to do this I will but I'm hoping to avoid it. Is the get request formatted wrong?