Skip to content

Commit

Permalink
Merge pull request #185 from vEnhance/update-install-doc
Browse files Browse the repository at this point in the history
Update install doc
  • Loading branch information
plainerman committed Sep 28, 2022
2 parents 1d1f6bf + eb37041 commit e1b3d53
Show file tree
Hide file tree
Showing 17 changed files with 50 additions and 11 deletions.
61 changes: 50 additions & 11 deletions docs/install-and-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ calendar] to know how to do it).
## Create the script

Copy the whole content of [this file][Main code file].
Open [Google Script][Google scripts website] and login if requested, then paste
the code into the page.
Open [Google Script][Google scripts website] and login if requested,
click "New project", then paste the code into the page.

[!["New Script" button](thumbnails/new-script.png)](screenshots/new-script.png)

## Customize the script

Expand Down Expand Up @@ -91,16 +93,53 @@ should never need or want to edit these.
## Activate API for the script

Now that the script is saved in your Google Drive folder we need to activate it.
To do so click the menu `Resources->Advanced Google services`.
To do so click the Services menu on the left-hand side.
In the popup which will open set "Calendar API" to `enabled` (click the switch
on its row on the right) and press "Okay".
Once you have done this, open [Google Cloud Platform API Dashboard][Google Cloud
Platform API Dashboard], click on the dropdown menu left at the top, next to
"Google Cloud Platform" and choose your Google Contacts Events Notifier project
from the list, then click on "Library" in the menu on the left, search for
"Google Calendar API" in the search box and open it. Now click `Enable` and
close this page. There is no need to create any credentials as suggested on the
page.
on its row on the right) and press "Okay".

[![Screenshot of location of Services
menu](thumbnails/add-service.png)](screenshots/add-service.png)

Next, you need to attach a Google Cloud Platform project to your script.
Open the Settings for your scripts in the far left,
and navigate to the section that says "Google Cloud Platform (GCP) Project",
then click the "Change Project" button.

[![Change project button under
settings](thumbnails/gcp-change-project.png)](screenshots/gcp-change-project.png)

We're prompted for a project number.

[![Prompt for a project number](thumbnails/gcp-enter-number.png)](screenshots/gcp-enter-number.png)

To get one, follow the instructions in Step 1; that is, open the
[Google Cloud Platform API Dashboard][Google Cloud Platform API Dashboard]
and create a new Google Cloud project
(or, you can use an existing one if you already have one).

[![Create new project](thumbnails/gcloud-create-new-project.png)](screenshots/gcloud-create-new-project.png)

Once you have a project either created or selected,
you should then see a project number on the dashboard.
Input it back on the prompt from the Scripts page to link the two together.

[![Project number](thumbnails/project-number.png)](screenshots/project-number.png)

Once you have done this, go back to the
[Google Cloud Platform API Dashboard][Google Cloud Platform API Dashboard]
and (with your project selected), open the hamburger menu on the left
and scroll through the myriad of services until you find "API & Services".
This takes you to a page which has a button "Enable API's and Services" at the
top; click that one.

[![Enable API's](thumbnails/enable-apis.png)](screenshots/enable-apis.png)

This opens up an enormous list of various API's
Search for "Google Calendar API" in the search box and open it.
Now click `Enable` and close this page.

[![Calendar API](thumbnails/calendar-api.png)](screenshots/calendar-api.png)

That's it for this step.

**Important note**: please double check that you have performed **all** steps
Expand Down
Binary file added docs/screenshots/add-service.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/screenshots/calendar-api.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/screenshots/enable-apis.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/screenshots/gcloud-create-new-project.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/screenshots/gcp-change-project.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/screenshots/gcp-enter-number.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/screenshots/new-script.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/screenshots/project-number.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/thumbnails/add-service.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/thumbnails/calendar-api.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/thumbnails/enable-apis.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/thumbnails/gcloud-create-new-project.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/thumbnails/gcp-change-project.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/thumbnails/gcp-enter-number.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/thumbnails/new-script.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/thumbnails/project-number.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e1b3d53

Please sign in to comment.