title: Enable auto Video Link in Google Calendar API
body: <p>I'm trying to use the Google Calendar API to generate Hangouts link dynamically. For this, the account being used for authentication (say account <strong><em>A</em></strong>) must have Auto Video link option enabled under calendar settings.</p>
  
  <p>So, when I try to use the Service Account for authentication, everything works fine and the event is created but the <code>hangoutLink</code> in the response is <code>NULL</code> and when I try to use the <code>API_KEY</code> (of the same account <strong><em>A</em></strong>) for authentication I get unauthenticated error:</p>
  
  <blockquote>
    <p>Fatal error: Uncaught exception 'Google_Service_Exception' with message '{ "error": { "errors": [ { "domain": "global", "reason": "required", "message": "Login Required", "locationType": "header", "location": "Authorization" } ], "code": 401, "message": "Login Required" } }</p>
  </blockquote>
  
  <pre><code>$client = new Google_Client();
  $client-&gt;setApplicationName("MY APP NAME");
  $client-&gt;setDeveloperKey("MY_API_KEY");
  $client-&gt;setScopes("https://www.googleapis.com/auth/calendar");
  </code></pre>
  
  <p>Is there any way to enable the auto video option for the service account <strong>or</strong> to fix the 401?</p>