Setting procedure (creating authentication information) for using GoogleDriveAPI
Aug 24, 2020
PHP
GoogleDrive
GoogleDriveAPI
Memorandum of set procedure
Project creation
https://console.developers.google.com/apis/dashboard
- Log in to Google and access the above URL
- Press “IAM and Management> Resource Management” from the menu on the upper left
- Press the “Create Project” link
- Enter the project name and press “Create” (which is entered by default)
Specify the API used in the project
- With the project selected from the top of the Google Cloud Platform screen Press “APIs & Services> Libraries” or “APIs & Services> Enable APIs & Services”
- Select Google Drive API and press “Enable”
Create credentials
- Press “Create authentication information” on the screen after redirect (API summary screen) or With the project selected from the top of the Google Cloud platform screen, click “Credentials> Create credentials”
- Select “OAuth Client ID” or press “Client ID” link -For the first time, the phrase “To create an OAuth client ID, you must first set the service name on the consent screen.” and the link “Set consent screen” are displayed. The set
- Select “Web application” on the OAuth client ID creation screen
- Enter the name of your OAuth client ID
- Enter your site’s URL in an approved JavaScript generator
- Enter the URL you want to redirect after authentication to the approved redirect URI
- Press “Create” to save
OAuth consent screen settings
- Open the OAuth consent screen and select “External”
- Enter application name, set scope and save