This article will show you how easy it is to set up and start using the the Google Drive addon for GreenTools for G Suite.
After adding the G4G library to your library list, type G4GREGSVC on your command line and press F4 to prompt the command. You should see a screen that looks like the following:
This command only has a couple options.
Once you have the command set up, press enter and you will be brought to a new screen:
This next screen will include a link you will need to either click on (if your 5250 session allows) or you can simply copy the link text and place it in the location bar on your browser.
Once you finish this step, you will be brought to a BVSTools.com web page.
You should now be at a BVSTools.com web page. On this page there will be a link that you need to click on to start the registration process.
Click on the link provided. If you have multiple Google Accounts you will next be shown a list of accounts to use. Remember to select the same account that you used on Step 1 in the G4GREGSVC command.
If only have one Google Account and are already signed in, you will be brought to the next page. If you are not signed in you will need to go through the steps to sign in to your Google Account.
Once you have selected and signed in to the appropriate Google Account you will be asked to review and accept the permissions required by the specific GreenTools for G Suite service you are registering. In our case it was Google Drive:
Once you accept the permissions required for the specific G4G service you will return to the BVSTools.com web page that will have a specific authorization code.
You don't need to do anything with this code. When you get to this point you can return to your 5250 screen and complete the registration by pressing the F6 button. When you do this the application will connect with the BVSTools.com web page and retrieve the authorization code automatically for you. Once that is complete your registration is complete:
You are now ready to start using the specific service you just registered. In this example it was Google Drive, so let's try something simple like uploading a file to Google Drive This is done using the G4GUPLOAD command. (More commands and ILE interfaces for each specific interface can be found in the G4G Documentation).
Next press your Page Down key to see the next page of available parameters:
Once you press Enter you should get a message that says the file was uploaded similar to this:
File uploaded with id 0B2Sd62H63YjoXzI3R0NBZjRGazA as test.pdf
You can now go to your Google Drive and the file should be there! You will even see in the details bar to the right information about what was uploaded and how.