You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- You may have an _active_ column, with which you can enable or disable rows/entries.
66
70
- A Google Sheets demo spreadsheet is available [here](https://docs.google.com/spreadsheets/d/1gSc_7WCmt-HuSLX01-Ev58VsiFuhbpYVo8krbPCvvqA).
67
71
2. Share your sheet:
68
-
-[File]→[Publish to the web]→(Entire Document, Web page) [Publish]
72
+
-[File]→[Share]→On the bottom of the modal at "Get Link" click [Change to anyone with the link] to be "Viewer".
69
73
- Get the _Spreadsheet ID_ (i.e. `1gSc_7WCmt-HuSLX01-Ev58VsiFuhbpYVo8krbPCvvqA`): It is part of the Google spreadsheet URL.
70
-
- Get the _Worksheet ID_: The Worksheet IDs are increasing numbers, starting at 1.
74
+
- Get the _Sheet Name_: The name of the worksheet can be found at the bottom of your Google spreadsheet.
71
75
3. Optional: It may be a good idea to enable [2-Step Verification](https://www.google.com/landing/2step/) for your Google account, if you have not done it yet :wink:.
72
76
77
+
### Google Cloud Platform (GCP)
78
+
79
+
A good overview guide is the [Get started as a Workspace developer](https://developers.google.com/workspace/guides/getstarted-overview).
80
+
81
+
1. Create a new project in the [Google Cloud Console](https://console.cloud.google.com/).
82
+
2. Enable Google Sheets API: [APIs & Services]→[Enable APIs and Services]→ Search for "Google Sheets API" →[ENABLE].
83
+
3. Create an _API key_: [APIs & Services]→[Credentials]→[+ CREATE CREDENTIALS]→[API key]→[RESTRICT KEY]→ In "Application restrictions" choose "HTTP referrers (web sites)" with "Website restrictions" and in "API restrictions" choose "Restrict key" and select "Google Sheets API" →[SAVE].
84
+
4. Get the generated API key.
85
+
73
86
### Angular
74
87
75
88
Add `GoogleSheetsDbService` to your app's module as a provider and Angular's `HttpClientModule` to the imports:
@@ -136,34 +155,34 @@ For example, the Google spreadsheet column _Email Address_ is mapped to the outc
136
155
137
156
#### Nested objects
138
157
139
-
`contact` is an example of a nested object. You may define a `_prefix` as a prefix for all columns of the nested object.
158
+
`contact` is an example of a nested object. You may define a `_prefix` as a prefix for all columns of the nested object. Please note that the `_prefix` may need a trailing whitespace.
140
159
141
160
#### Lists
142
161
143
-
`skills` is an example of a list. You need to set `_listField` and a `_prefix` for all columns of the list. In this example, all columns starting with _Skill_ and an increasing number are part of the list, i.e. _Skill 1_, _Skill 2_, etc.
162
+
`skills` is an example of a list. You need to set `_listField` and a `_prefix` for all columns of the list. In this example, all columns starting with _Skill _ and an increasing number are part of the list, i.e. _Skill 1_, _Skill 2_, etc. Please note that the `_prefix` may need a trailing whitespace.
0 commit comments