2013-09-28 141 views
0

我試圖搜索YouTube視頻,該視頻的'syndicate'屬性設置爲'允許'(所以他們應該被允許播放在移動設備上)。Youtube數據API:搜索視頻,通過syndicate = true過濾

我嘗試了這種方式:

https://gdata.youtube.com/feeds/api/videos?q=music&v=2&prettyprint=true&fields=entry[yt:accessControl/@action='syndicate'](id,title,yt:accessControl) 

的回輸是這樣的:

<?xml version='1.0' encoding='UTF-8'?> 
<feed xmlns='http://www.w3.org/2005/Atom' xmlns:yt='http://gdata.youtube.com/schemas/2007'> 
<entry> 
    <id>tag:youtube.com,2008:video:XXXXXXX</id> 
    <title>XXXXXXX</title> 
    <yt:accessControl action='comment' permission='allowed'/> 
    <yt:accessControl action='commentVote' permission='allowed'/> 
    <yt:accessControl action='videoRespond' permission='moderated'/> 
    <yt:accessControl action='rate' permission='allowed'/> 
    <yt:accessControl action='embed' permission='allowed'/> 
    <yt:accessControl action='list' permission='allowed'/> 
    <yt:accessControl action='autoPlay' permission='allowed'/> 
    <yt:accessControl action='syndicate' permission='denied'/> 
</entry> 

這是好的,但現在我還需要整合「權限=‘允許’」條件。我已經嘗試過很多不同的組合(請參閱https://developers.google.com/youtube/2.0/developers_guide_protocol_partial?hl=de#Fields_Formatting_Rules),但無法使其工作。任何提示?

回答