2013-03-20 233 views
0

我使用從YouTube API此方法將視頻添加到播放列表:插入視頻到YouTube播放列表

POST /feeds/api/playlists/PLAYLIST_ID HTTP/1.1 
Host: gdata.youtube.com 
Content-Type: application/atom+xml 
Content-Length: CONTENT_LENGTH 
Authorization: Bearer ACCESS_TOKEN 
GData-Version: 2 
X-GData-Key: key=DEVELOPER_KEY 

<?xml version="1.0" encoding="UTF-8"?> 
<entry xmlns="http://www.w3.org/2005/Atom" 
    xmlns:yt="http://gdata.youtube.com/schemas/2007"> 
    <id>VIDEO_ID</id> 
    <yt:position>1</yt:position> 
</entry> 

正如API的信息,我需要的視頻後,視頻發送到多個視頻添加到播放列表中寫道。

,如果我不喜歡這樣,我得到味精後,20個視頻:

<?xml version='1.0' encoding='UTF-8'?><errors><error><domain>yt:quota</domain><code>too_many_recent_calls</code></error></errors> 

有任何其他方式插入視頻播放列表?

+0

您是否嘗試過** YouTube API ***在** C#**中?任何樣品處理配額? – Kiquenet 2015-05-19 09:26:48

回答

1

使用Youtube Data API v3,您可以通過playlistItems->insert實現結果。

YouTube Data API v3是目前建議並廣泛支持的一款,v3的配額相當不錯。

+0

不支持批量插入。 – 2013-03-29 16:54:50

+0

不支持未來版本插入多個視頻(批量)? – Kiquenet 2015-05-19 09:25:15