如何在Vimeo中搜索视频?

时间:2017-12-21 14:39:22

标签: javascript vimeo-api

要在Vimeo中搜索视频,请使用this查询:

.rectangles{
        fill:       #ff3333;
        stroke:     #000000;
        stroke-width:   0.1; 

}
#rectangle1:hover{
        stroke:     #FF7F00;
        stroke-width:   0.1;
        fill:       #A52A2A;
}  
#rectangle2:hover{
        stroke:     #FF7F00;
        stroke-width:   0.1;
        fill:       #A52A2A;
}
#rectangle3:hover{
        stroke:     #FF7F00;
        stroke-width:   0.1;
        fill:       #006400;
}
#rectangle4:hover{
        stroke:     #FF7F00;
        stroke-width:   0.1;
        fill:       #000000;
}
#rectangle5:hover{
        stroke:     #FF7F00;
        stroke-width:   0.1;
        fill:       #006400;
}
#rectangle6:hover{
        stroke:     #FF7F00;
        stroke-width:   0.1;
        fill:       #000000;
}
#rectangle7:hover{
        stroke:     #FF7F00
        stroke-width:   0.1;
        fill:       #FFFFFF;
}
#rectangle8:hover{
        stroke:     #FF7F00;
        stroke-width:   0.1;
        fill:       #FFFFFF;
}

您可以看到我想在我的频道上搜索视频。如果我的 const path = pagingPath ? `https://api.vimeo.com${pagingPath}` : `https://api.vimeo.com/channels/${channel}/videos?per_page=20&query=${filter}&fields=link,name,pictures.sizes.link,status,release_time,width,height`; const { data } = await axios.get( path, { data: `app_id=${appConfig.VIMEO_APP_ID}&token=${appConfig.VIMEO_ACCESS_TOKEN}`, headers: { 'Authorization': `Basic ${new Buffer(`${appConfig.VIMEO_APP_ID}:${appConfig.VIMEO_CLIENT_SECRET}`).toString('base64')}`, 'Content-Type': 'application/x-www-form-urlencoded', } }, ); 仅包含完整单词,则此查询可以正常工作。 ('如何制造#1')。如果我发送请求'如何让'我什么也得不到。

This端点适用于查询的所有变体。但我无法发送filter

那么如何在我的频道中搜索Vimeo中的视频?

0 个答案:

没有答案