Getting Google Drive API
Watch the video guide
This is a bit tricky. You need to add a Client ID also along with API key for Google Drive.
  1. 1.
  2. 2.
    Click on ‘Create Project’ button
  3. 3.
    Give your project a name and click on ‘Create’
  4. 4.
    Open API Library
  5. 5.
    Search for ‘Google Drive API’, click on it and enable it
  6. 6.
    Go back, search for ‘Google Picker API’ and enable it
  7. 7.
    Open ‘APIs & Services > Dashboard’ tab from the sidebar
  8. 8.
    Click on ‘OAuth consent screen’ tab, choose user type 'External' and click 'Create' button
  9. 9.
    On the following screen, enter App name, select support email, and add your domain name under 'Authorized domains'
  10. 10.
    Skip the following screens and Publish App
  11. 11.
    Go back to APIs & Services tab click on ‘Create Credentials’ dropdown button and select OAuth Client ID
  12. 12.
    Select ‘Web application’ as Application type, enter your WordPress website’s URL with ‘www.’ as Authorized Javascript origin (http://www.yourwebsite.com) and click on ‘Create button
  13. 13.
    Now you have your Client ID created. You are almost there. Let’s create your API key! Click on ‘Create credentials’ dropdown button again and click on ‘API Key’
  14. 14.
    Now copy Client ID and API Key from the ‘Credentials’ page and paste them in your website’s ‘Cloud Settings’ page
Copy link