Okay, it's now time for the big integration of the day, which is with Google, a full oath to integration
with Google so that we can do things like scan the Google Drive.
And this is taking us beyond the Google Sheets integration we did before.
And it all begins in this website, cloud.google.com, which is the GCP landing page for Google Cloud
Platform.
Cloud.google.com.
So if you go there and at the top here, if you don't even have a Google account, but you do have a
Google account, but if you didn't, then you might have to go to start free.
But I assume you do.
And so you can go to sign in and a free Google account like Gmail will do.
Or I've also got like a, like a paid Google Apps one here to uh, so anything you want.
Come on in.
Then you'll have to give your password and I will see you once you've signed up.
Now, if it's your first time coming into GCP, you've never done it before with your Google ID, then
you probably have to answer a few questions.
You probably have to get something about free credits, all sorts of other stuff it will tell you about
which you can all happily accept.
But we're not going to do anything that's paid at this point and so everything should be fine.
You should reach this point and then you're going to press the console button here.
So you're now going to be going to Console.cloud.google.com, which is where our adventure begins.
The first thing we're going to do is create a Google project.
And I already have some projects.
So I've got this project selector up here.
I could click here and then press New Project.
You may either click there and press New Project, or you might just have a create project or new project
button up there.
But this is what you do.
You come on in here so that you can have new projects.
Here we are.
And the name of your project is going to be amplify.
That's going to be this week is all about amplifying your business.
And amplify will be the name of our project.
Um, project ID cannot be changed later.
So we can also edit the project ID and make it amplify.
It's entirely possible this has to be unique across.
Uh, yeah.
There you go.
That's not available.
Uh, amplify is already a popular project ID.
The ID doesn't matter.
Uh, so we'll leave that as our project ID, uh.
Or I can make it.
I can make it like like amplify dash add, I imagine.
No, that's not available.
Amplify dash add.
Donna.
There we go.
That's available.
Ah, so you can make an amplify dash, your name or a number or whatever you want.
Let Google choose that.
What matters is the name has to be amplified.
And now we're going to say create.
And that has been created.
It's happening over here.
It's going to spend a minute creating it while you're brand new GCP project is created.
And I'll see you when it's done.
Okay.
Now I'm going to press Select Project right here.
Uh it's changed this to amplify.
I could equally well have clicked on here and ticked amplify like that and amplify is the current project
okay.
Now go to this menu bar up here, the navigation menu, which is where all this stuff appears that you
could do a GCP.
GCP is enormous, of course.
And we're we're not going to do very much uh, go to APIs and services and to library.
Uh, and again, there's a lot here.
There's obviously people have built entire professions around knowing how to work GCP, and we're going
to only do a few small things.
We're going to find the Google Drive API, Google Drive API.
There it is.
Uh, it's right there.
And the Google Drive API.
And we are going to enable it.
So we click on it and we press enable.
And it thinks.
And this will hopefully be enabled in just one second.
There we go.
It's enabled okay.
Now it gets real.
We're going to go to this screen here the OAuth consent screen.
Select this option right here.
This is this is where the action happens.
Now it's not as grueling as it could be because we're going to be doing this for internal only.
We're going to be telling Google that the only people that can have access to do this is people that
are in this Google organization.
In other words, us, you and me.
And because of that, that makes this all a bit easier.
Uh, but, uh, you'll say you'll you'll see.
So, uh, we have to, to press, uh, get started.
Okay.
Uh, the name of the app asking for consent.
So this we will call amplify.
Uh, for users to ask questions about their consent.
My email address coming in right there.
And now press next.
All right.
Here is a fork in the road.
If you are a Gmail user, if you're a Gmail user, you want to do external at this point.
And this is something that that uh, because because you're just, you're external to, uh, to, to,
to Gmail itself.
But because I am here in my own workspace, I say internal, it's only people within my organization.
And this is particularly easy because you don't need to submit your app for verification.
For people over here, you stay in testing mode, which makes it very, very easy.
So either way, this is going to be easy.
If you've also got your own Google Apps account like me or Google Workspace, then you keep it internal
like this and then you press next, okay, contact email addresses for Google to notify you.
That can just simply be same email address.
There we go.
Add a Madonna.com.
Feel free to email me and say hi.
Uh, finish I agree.
Yes, I agree, of course I agree.
Uh, and then we are going to create this and this is now creating, uh, the OAuth overview that we've
built and all is good.
Uh, we, we are in uh, we're in good shape.
Onwards.
Okay.
Next, the big step, we go back here, we go down to API and services and we go to credentials.
Last time we were in OAuth consent screen.
Now we're in credentials here.
Here is where it happens.
This is action time.
It is time for us to create credentials.
Oh hang on, let me just, uh.
Okay.
Got it.
Uh, create credentials up here.
All right.
Press that.
We are going to create an OAuth client ID.
This is something that will allow us to to get consent so that something can, can access our account.
Okay.
And now this is the part where you have to be super careful to fill in everything, right.
Okay.
First up, application type is a web application.
The first option web application.
All right then the name we need to give it a name.
So this is the name of the the of the auth to client.
It's used to identify it for us here in the console.
It's not something that's going to end users.
So we call it something like uh an For amplify.
That's that's what this is.
This is all about.
Okay?
And now.
And now this is where.
This is where things get hairy.
Uh, we need to add an authorized redirect URI.
And this this is the part where, uh, where things often go wrong.
This redirect URI.
So I'm opening this, and I'm saying, uh, this is this is a you are a URI URL that needs to be pasted
in here, which is where, um, where, where Google will redirect to when there's been a successful
authentication.
And so what is it that we're going to put in here?
Well, here's the thing.
This is a moment when we put this screen on pause for a second and we go back to N810.
N810.
Yes.
Here we go.
I'm flipping over to Nan.
This is me logged in to my workflow screen.
All right.
Let's go back to our project.
Here's my project right here with my first folder in there.
Go to credentials The credentials tab where we've set up our credentials and press Create Credential.
And now we're trying to find a credential we're trying to connect to.
Well we want the Google Drive Google Drive OAuth two API.
Select that and press continue.
And up comes this screen.
And why do we have to go through this rigmarole.
Because check that out.
Look at that.
The OAuth redirect URL right there.
Click to copy.
Go back to Google.
Click here and paste.
And this has to be right.
Ha.
If you get this wrong it's not going to work.
And it's going to be really hard to figure out why.
So you just have to follow this precisely.
You've got to go to and you've got to pick the right API.
You've got to get the right callback and put the right callback in there.
It's part of the fiddling ness of OAuth two.
You need to get this callback right.
Okay, hopefully you're not feeling fried by this point.
There are 1 or 2 steps.
I did warn you, it was a little bit hairy.
You now press create notes.
It might take a few minutes for your setup to be complete.
And here now we have the result.
It didn't take a few minutes.
It was instant.
It's being created.
There is a client ID and a client secret.
And I shouldn't be sharing it like this to you.
But don't worry, I'll delete it before you get your hands on it.
Uh, but here we have our client ID and the client secret.
These are two very important things.
And now don't get rid of this screen yet.
Now you have to be super careful, because these two things need to be taken across to N810.
And you have to do it correctly.
The client ID, I copy that to the clipboard.
I flip over to n810 the client id, I paste it, you see it there?
It's there, I was careful, I go back over here.
That was the client ID.
I'm now looking at the client secret.
I click to copy.
I go over here, I click in the client secret, I paste and it's in there.
I've been careful.
Okay.
You've been careful too.
And now we're almost ready to try this.