Video Options: Google Drive API Key Setup

Setting up API keys for the Google Drive API is essential for accessing and fetching videos from Google Drive through the LYNX Video Player. This guide provides step-by-step instructions on how to create and configure Google Drive API keys.

Note: Google Drive is a free file storage service provided by Google. While Google allows for publicly sharing files stored on Google Drive, there are some reliability concerns based on user experiences. One of the most common issues encountered when integrating Google Drive with other services is the CORS (Cross-Origin Resource Sharing) policy. Resolving CORS issues is key to successfully using Google Drive for file storage and sharing in various applications.

Creating Google Drive API Keys

Log in to your Google Developer Console from here  using your Google account. If you don’t have an account, create one.

  1. Create a new project by clicking on “CREATE PROJECT.
  2. Enter a Project Name and click “Create.”
  3. Select the newly created project by clicking on “SELECT PROJECT“.
  4. Navigate to “APIs & Services> Library” in the Google Developer Console.
  5. Scroll down to find the “Google Drive API” and click on it.
  6. Click on the “Enable” button to enable the API.
  7. Next, navigate to “Credentials” in the Google Developer Console.
  8. Click on “+CREATE CREDENTIALS” and click on “API Key.”
  9. On Pop up box, you will see “API key created“.
  10. Copy the API Key generated and paste it into your Google Drive API Key settings field in the LYNX Video settings.

Additional API Key Settings(Optional):

  1. Go to the “Credentials” page in the Google Developer Console.
  2. Find and click on the API Key you just created.
  3. Rename your API Key for better identification.
  4. Set restrictions on your API Key to prevent unauthorized access:
    • Check “Websites” and click “+ADD” to add specific websites.
    • Set API restriction by checking “Restrict key” and selecting “Google Drive API.”
  5. Click on “Save” to apply the settings.