title: How do I create a youtube playlist with the Google API node client?
body: <p>Using Google's google-api-nodejs-client (official google node library), I had this piece of code running many months ago. I had left it aside.</p>
  
  <pre><code>googleapis.discover('youtube', 'v3').execute(function (err, client) {
      var request = client.youtube.playlists.insert({
           part: 'snippet,status',
           resource: {
               snippet: {
                   title: "hello",
                   description: "description"
               },
               status: {
                   privacyStatus: "private"
               }
            }
       });
      request.withAuthClient(oauth2Client).execute(function (err, res) {...
  </code></pre>
  
  <p>I have restarted the project and downloaded the latest version of the library through npm and now when I run the code above I systematically get the following error object:</p>
  
  <pre><code>Object
       code: 400
       errors: Array[1]
           0: Object
               domain: "youtube.playlist"
               message: "Must specify playlist title."
               reason: "playlistTitleRequired"
           length: 1
                length: 1
       message: "Must specify playlist title."
  </code></pre>
  
  <p>Which according to the document and sample seems correct <a href="https://developers.google.com/youtube/v3/code_samples/javascript#create_a_playlist" rel="nofollow">google sample code</a></p>
  
  <p>I've stepped through the library code, it seems that the request is not being built properly but before reporting it as a possible bug I wanted to ask the hive mind.</p>
  
  <p>Anyone had success using the library recently? Thanks.</p>