title: retrieve video (categoryID) from youtube using json
body: <p>i want to upload youtube videos from my app and find those videos after. </p>
  
  <p>to do so i uploaded the videos using <a href="https://developers.google.com/youtube/v3/docs/videos/insert" rel="nofollow">v3 youtube api</a></p>
  
  <p>here is part of the code that use to add title, description Etc.</p>
  
  <pre><code> snippet.setTitle("Test Upload via Java on " + cal.getTime());
        snippet.setDescription(
            "Video uploaded via YouTube Data API V3 );
  
        // Set your keywords.
        List&lt;String&gt; tags = new ArrayList&lt;String&gt;();
        tags.add("test");
        tags.add("example");
        tags.add("java");
        tags.add("YouTube Data API V3");
        tags.add("erase me");
        snippet.setTags(tags);
  </code></pre>
  
  <p>i want to add catagotyid so i just add :</p>
  
  <pre><code>snippet.setCategoryId("test");
  </code></pre>
  
  <p>in this moment the upload code stop to work, why ? </p>
  
  <p><a href="https://developers.google.com/youtube/v3/docs/videoCategories/list" rel="nofollow">to retrieve all the video that upload by my app i need to fill in part line "snippet" (without Quotes) and in id line add my category id like "test" (without Quotes),
  and then result  catch by json ?</a> </p>
  
  <p>UPDATE : </p>
  
  <p>How should I fill the <a href="http://developers.google.com/youtube/v3/docs/videoCategories/list#try-it" rel="nofollow">"try it!"</a> ? to recieve list of catagoryID, And assume that I got the list, how do I know which category to choose?, I think I'm missing something and I do not know what </p>