title: List all my youtube video with Apps Script
body: <p>I have some problem to list my youtube video list in my spreadsheet.
  'maxResults' value's max is just 50. so, I cannot list more than 50 videos!
  How to I get all of my youtube videos?</p>
  
  <pre><code>function searchListMine(part, params, pageToken) {
    params = removeEmptyParams(params); // See full sample for function
    var response = YouTube.Search.list(part, params);
    var title = "";
    var id = "";
    var lr = 0;
    var ss = SpreadsheetApp.getActiveSpreadsheet();
    var nextPageToken = 'nextPageToken';
    var sheet1 = ss.getSheetByName("시트2");
  
    Logger.log(response.items.length)
    for (var i = 0; i &lt; response.items.length; i++) {
        var item = response.items[i];
        title = item.snippet.title;
        id = item.id.videoId;
        lr = sheet1.getLastRow() + 1;
        sheet1.getRange(lr, 1).setValue(title);
        sheet1.getRange(lr, 2).setValue(id);
        lr++;
      }
  
  }
  
  function Main() {
    searchListMine('snippet', {'maxResults': '50',
                               'forMine': 'true',
                               'type': 'video',
                              });
  }
  </code></pre>