2014-06-19 2 views
0

YouTube API에서 피드를받지 못했습니다.youtube videos 문제

https://www.youtube.com/user/keyurmistry53 

을 그에서 비디오를 가져 오기 위해 노력하고 있지만 공급에 대한 모든 비디오를받지 못하고 다음과 같이

나는 유튜브에 채널을 가지고있다. 다음은 피드 URL입니다.

http://gdata.youtube.com/feeds/api/videos?author=keyurmistry53&start-index=1&max-results=25

사람이 그와 함께 문제가 무엇이라고 말해 줄래?

답변

0

URL을 사용하면 YouTube의 채널에 2 개 이상의 동영상이 표시되지만 API 피드에는 2 개의 동영상 만 표시됩니다. 동영상 설정에서 차이점을 확인하십시오. api url은 더 이상 사용되지 않는 api 버전 2입니다. 거기에 당신이 전혀 피드를 얻을 수없는 경우

<?xml version='1.0' encoding='UTF-8'?> 
<feed xmlns='http://www.w3.org/2005/Atom'> 
    <entry> 
     <title type='text'>Tera Milna Sonu Nigam</title> 
     <link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=pwRoUHqn9Pw&amp;feature=youtube_gdata'/> 
     <link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/pwRoUHqn9Pw/related'/> 
     <link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=pwRoUHqn9Pw'/> 
     <link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/pwRoUHqn9Pw'/> 
     <author> 
      <name>Keyur Mistry</name> 
      <uri>http://gdata.youtube.com/feeds/api/users/keyurmistry53</uri> 
     </author> 
    </entry> 
    <entry> 
     <title type='text'>Gujarati Savariyo Re maro</title> 
     <link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=D4XA4mLZcAU&amp;feature=youtube_gdata'/> 
     <link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/D4XA4mLZcAU/related'/> 
     <link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=D4XA4mLZcAU'/> 
     <link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/D4XA4mLZcAU'/> 
     <author> 
      <name>Keyur Mistry</name> 
      <uri>http://gdata.youtube.com/feeds/api/users/keyurmistry53</uri> 
     </author> 
    </entry> 
</feed> 

은 다음 같다 : (전체 피드 데이터를 표시하지 않음)하는이 개 비디오를 보여줍니다 https://developers.google.com/youtube/v3/getting-started

귀하의 URL, http://gdata.youtube.com/feeds/api/videos?author=keyurmistry53&start-index=1&max-results=25 : API 버전 3 참조 코드에 문제가 있지만 사용 된 URL이 아닙니다.