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
9) Click "Review Permissions", to Authorize application
30
30
10) When you see a warning, Click "Advanced" and "Go to json-google-docs Demo"
31
31
10) Review list of permissions required, and click "Allow"
32
-
11) Copy and paste URL
32
+
11) Copy and paste URL (note: if you're logged into multiple Google accounts you'll [have to manually remove "/u/0" or similar from the URL](https://stackoverflow.com/a/47050007/4869657) to avoid errors)
33
33
34
34
### NPM package
35
35
@@ -47,7 +47,7 @@ const uri = 'https://script.googleusercontent.com/macros/echo?user_content_key=h
47
47
constdoc=newDocument(uri)
48
48
49
49
doc.fetch().then(() => {
50
-
console.log(document.get('Title'))
50
+
console.log(doc.get('Title'))
51
51
})
52
52
```
53
53
@@ -58,7 +58,7 @@ var uri = 'https://script.googleusercontent.com/macros/echo?user_content_key=hqA
58
58
var doc =newJSONGoogleDocs.Document(uri)
59
59
60
60
doc.fetch().then(function() {
61
-
console.log(document.get('Title'))
61
+
console.log(doc.get('Title'))
62
62
})
63
63
```
64
64
@@ -73,7 +73,7 @@ var url = 'https://script.googleusercontent.com/macros/echo?user_content_key=hqA
0 commit comments