title: Google Calendar API error - "API key not valid. Please pass a valid API key.",
body: <p>I've started getting the error from google rest api since yesterday</p>
  <pre><code>{
    &quot;error&quot;: {
      &quot;code&quot;: 400,
      &quot;message&quot;: &quot;API key not valid. Please pass a valid API key.&quot;,
      &quot;errors&quot;: [
        {
          &quot;message&quot;: &quot;API key not valid. Please pass a valid API key.&quot;,
          &quot;domain&quot;: &quot;global&quot;,
          &quot;reason&quot;: &quot;badRequest&quot;
        }
      ],
      &quot;status&quot;: &quot;INVALID_ARGUMENT&quot;
    }
  }
  </code></pre>
  <p>API endpoint is:
  <a href="https://www.googleapis.com/calendar/v3/calendars/%5BCALENDAR_ID%5D/events?timeMax=2020-06-22T23%3A59%3A59.000%2B06%3A00&amp;timeMin=2020-06-22T00%3A00%3A00.000%2B06%3A00&amp;key=%5BSECRET_KEY%5D" rel="nofollow noreferrer">https://www.googleapis.com/calendar/v3/calendars/[CALENDAR_ID]/events?timeMax=2020-06-22T23%3A59%3A59.000%2B06%3A00&amp;timeMin=2020-06-22T00%3A00%3A00.000%2B06%3A00&amp;key=[SECRET_KEY]</a></p>
  <p>headers are:</p>
  <pre><code>&quot;Content-length&quot;    &quot;0&quot;
  &quot;Content-Type&quot;  &quot;application/x-www-form-urlencoded&quot;
  &quot;Host&quot;  &quot;www.googleapis.com&quot;
  &quot;Authorization&quot; &quot;Bearer [APPILCATION_ID]&quot;
  &quot;Accept&quot;    &quot;application/json&quot;
  </code></pre>
  <p>I have oAuth 2.0 client id in developer console.
  And send the same request as 3 month before
  What may be wrong?</p>