Enable Google Drive API

Make sure you have already created a project to enable APIs. To create, refer Create a Project in Google Developer Console.
  1. Log in to Google Developer Console with below URL.
  2. Select a newly created project from the projects dropdown located on top of the page.
    Selectaprojectfromthepopup
  3. Click Enable APIs and Services button.
    Click Enable Apisand Services

    The API Library page appears.

  4. Scroll down to the Google Workspace section.
  5. Click Google Drive API card.
    The Google Work Space Section
  6. Click Enable button to enable the Google Drive API.
    Click Enable Google Drive API