This tutorial shows how to create a project and enable the Google Drive API for a specific Google account, and get access credentials.
![](https://help.scriptcase.net/galleryDocuments/edbsn8daa75e334887a0efb822868784d64a51abbb4a513af0a4922314da60ec19e69e97f360d60ef7f61983e5d5dec5487db?inline=true)
2) After login select or create a new project:
3) Create or select an existing project:
Creating a Project
1 - Enter a name and the organization your project will be linked to:
![](https://help.scriptcase.net/galleryDocuments/edbsn7c148d9d901ce384f24656eddfc35e5c65789320c5f3305923ce78a0ce8ff04fa65e6ad4955ea74ce10bdbca65b53099?inline=true)
2 - Then click on the “Select Project” item to access the project:
Enabling API
1) Click on the item “ACTIVATE APIS AND SERVICES”:
2) Search for "Google Drive API", select this option and on the next screen click "ACTIVATE":
3) In the left menu ("APIs and Services"), click on "OAuth Permission Screen":
4) Check the “External” option and click the “Create” button:
![](https://help.scriptcase.net/galleryDocuments/edbsnc645473599edd264d483499f692868cd53658a1f655def73ea1839683497830b6e33da51eb39b8465ed008bfd8377b53?inline=true)
5) Enter the name of your application and click on the "SAVE" button:
NOTE: Leave all other options at their default values.
Using credentials in local environment
1) After creating the OAuth consent screen, select the item “Credentials” from the left menu (“APIs and services”)
![](https://help.scriptcase.net/galleryDocuments/edbsn70beb02ec138ac89f1f16072dd83fcdc08b3e32b172840d164199f32d6f3fcbd743bcba2a7a0972605109a08679b5b71?inline=true)
2) Click on the “CREATE CREDENTIALS” item.
![](https://help.scriptcase.net/galleryDocuments/edbsn1ba692276bac0431db06bc069f83bdcba4b5470d3e9e2ddc358b6fbc1cccdc77068c0834e63c5919a67e3f1f619befcd?inline=true)
3) Select the “OAuth Client ID” item
![](https://help.scriptcase.net/galleryDocuments/edbsn8daa75e334887a0efb822868784d64a5e1469d439cf07a1bc0d148f16db65eab38e5c15ee7687dd2e1d693c195504066?inline=true)
4) Select the “Web App Computer App” option, type the name and click “Create”.
![](https://help.scriptcase.net/galleryDocuments/edbsne607224c0cef1a855f99796b0f77332208dcd43286e4d689e8f48f5e909b542eed45590e10bc4b616b310c8d2ef7a799?inline=true)
10) Immediately, “
Customer ID” and “
Secret Key” of the customer will be created. Click OK.
Using credentials in external environment
1 - To use your credentials in an external environment, go to the "CREATE CREDENTIALS" button again and select the option "Help me choose":2 - Select the options:
- Select an API: Google Drive API
- Check the option: User data.
- Click the NEXT button
3 - On the scopes screen, click on the button to “Add or remove scopes”:
4 - Enable all extensions containing the API name: Google Drive API and Google Sheets API. Click the button to “Save and continue":
5 - In the next step, select the option: “Web application” and inform the name of the application:
![Notes](https://static.zohocdn.com/zoho-desk-editor/static/images/file.png/)
This name will be informed in the scriptcase API interface credentials
6 - In the Redirect URL option, click to add your URL then click on the “CREATE” button:
Click CONCLUDE to finish the process.
Adding the API on Scriptcase
1) After creating the credentials, download the JSON file in the registry that was created:
![](https://help.scriptcase.net/galleryDocuments/edbsnddb9613c5c1f04b7641fbcff2ffd741d0997e0be62bff5798bb14b80a0d2fecc9ff14c60833cd86ccb931ea253ba231c?inline=true)
2) After this procedure, access the scriptcase “API” interface:
- Enter the name of the application created in the OAuth consent screen in the API settings.
- In the JSON OAUTH field, insert the content of the JSON
file downloaded in the previous procedure.
NOTE: After entering these values, click on the “AUTH” button.
![](https://help.scriptcase.net/galleryDocuments/edbsn1411c4728455cb161b76bb84185216e411666503a471dc60214fd88e7b3469c65e08af94299282f26e195050eeadc570?inline=true)
3) Soon after, select your gmail account again, as the authentication code will be generated. Copy and paste the “authentication code” into the API settings field and click the “SAVE” button.