Skip to content

Google credentials

Roi Peker edited this page Jul 26, 2021 · 1 revision

Setup google credentials for your project:

... step by step

If the linked tutorial is outdated, follow this steps:


step 1:

Go to https://console.developers.google.com/ step 1

step 2:

Click the project selector: step 2

step 3:

Click an existing project, or click NEW PROJECT: step 3

step 4:

Give it a name, click CREATE: step 4

step 5:

Wait a few seconds until the project is created, make sure the new project is the current selected one. Then click ENABLE APIS AND SERVICES: step 5

Now let's enable Google Drive and Google Sheets.

step 6:

Search for "drive" ... step 6

step 7:

Click on the "Google Drive API" item step 7

step 8:

Click on ENABLE: step 8

Do the same for Google Sheets now

step 9:

Search for "sheet" ... step 9

step 10:

Click on ENABLE: step 10

step 11:

Click on the hamburger menu: step 11

step 12:

Inside the menu, open APIs & Services ›, and click Credentials: step 12

step 13:

Inside Credentials section, click on + CREATE CREDENTIALS: step 13

step 14:

Select the Service account from the dropdown: step 14

step 15:

Inside Service account details, you just need to provide some account name. step (1): I will use "fts-flutter", then click CREATE AND CONTINUE: step 15

step 16:

step (2): No need to do anything else, click CONTINUE step 16

step 17:

step (3): No need to do anything else, click DONE step 17

step 18:

You will see the new item, under the Service Accounts section, click the pen icon to Edit service account: step 18

step 19:

On the tab bar, click on KEYS: step 19

step 20:

On the Keys section, click on the ADD KEY ▼ dropdown, and Create new key: step 20

step 21:

Select "Key type" > 🔘 JSON and click CREATE step 21

step 22:

Congratulations! You finally have your service credentials to use on any fts project. step 22

Final thoughts:

Ideally, rename the file to credentials.json and put it in some global folder in your computer. You can reuse it on many FTS projects, placing the absolute path to it.