title: getting list of videos from youtube using youtube data api v3 with php
body: <p>i have a problem getting a list of my uploded youtube videos, i think im following the documentation corectly but i always get the error "Uncaught exception 'Google_Service_Exception' with message 'Error calling GET <a href="https://www.googleapis.com/youtube/v3/videos?part=contentDetails&amp;chart=mostPopular" rel="nofollow">https://www.googleapis.com/youtube/v3/videos?part=contentDetails&amp;chart=mostPopular</a>: (403) Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."</p>
  
  <p>below is my code</p>
  
  <pre><code>$OAUTH2_CLIENT_ID = 'myclientid';
          $OAUTH2_CLIENT_SECRET = 'myclientsecret';
  
  
          $client = new Google_Client();
          $client-&gt;setClientId($OAUTH2_CLIENT_ID);
          $client-&gt;setClientSecret($OAUTH2_CLIENT_SECRET);
  
  
          $client-&gt;setScopes('https://www.googleapis.com/auth/youtube');
          $redirect = filter_var('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'],
                  FILTER_SANITIZE_URL);
          $client-&gt;setRedirectUri($redirect);
  
  
  
  
          // Define an object that will be used to make all API requests.
          $youtube = new Google_Service_YouTube($client);
  
  
          $m = $youtube-&gt;videos-&gt;listVideos('contentDetails', ['chart' =&gt; 'mostPopular','mine' =&gt; true]);
  
  
  
  
  var_dump($m-&gt;items());
  </code></pre>