Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can use achieve this using video feeds from the <a href="https://developers.google.com/youtube/2.0/reference#Video_Feeds" rel="nofollow">Data Api</a>. So I'll assume that you know how to parse ATOM, RSS or JSON responses and that the user has logged in to your site with their google account, if they haven't they'll need to, otherwise this won't work. Having done that you can now get their youtube user id or username. With the username you can now query the data api with a uri such as this:</p> <pre><code>http://gdata.youtube.com/feeds/api/videos?alt=atom&amp;author=user1 #we are looking at user1's channel </code></pre> <p>This responds with an atom feed. You have an option of RSS, ATOM or JSON. What you'll be looking for is an <code>id</code> tag inside an <code>entry</code> namespace eg.</p> <pre><code>&lt;entry gd:etag='W/"A0IHQ347eCp7I2A9WhVTFEQ."'&gt; &lt;id&gt;tag:youtube.com,2008:video:L_30JzRGDHI&lt;/id&gt; ... &lt;title&gt;User1's first video&lt;/title&gt; </code></pre> <p><code>video:L_30JzRGDHI</code> is what you want. <code>L_30JzRGDHI</code> is the id of one of user1's videos. You can now collect all of user1's IDs and respective video titles and send the user to a page where he/she can select the videos to import to your site. </p> <p><a href="http://gdata.youtube.com/demo/index.html" rel="nofollow">Here's a page</a> where you can play around with the api and see what details you can collect from the response. This is for youtube, I don't know about the other sites, you have the idea now, just see whether it can work with the other sites' APIs</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload