Skip to content

Commit 413fab4

Browse files
dariuskcolingagnon
authored andcommittedDec 6, 2017
fix: Fixes README and example code (#4)
1 parent 0ce416e commit 413fab4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ https://techcoop.github.io/json-google-docs/
2020
1) Open your google doc document
2121
2) Click on "Tools" > "Script Editor..."
2222
3) Name your project something memorable
23-
4) Replace contents of code.gs with [this file](https://github.com/techcoop/json-google-docs/src/GoogleScript/Code.gs)
23+
4) Replace contents of code.gs with [this file](https://github.com/techcoop/json-google-docs/blob/master/src/GoogleScript/Code.gs)
2424
4) Click on Publish and select "Deploy as web app"
2525
5) Select new and type a version name (e.g 0.1.0) (or update existing)
2626
6) In "Execute the app as" select yourself
@@ -29,7 +29,7 @@ https://techcoop.github.io/json-google-docs/
2929
9) Click "Review Permissions", to Authorize application
3030
10) When you see a warning, Click "Advanced" and "Go to json-google-docs Demo"
3131
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)
3333

3434
### NPM package
3535

@@ -47,7 +47,7 @@ const uri = 'https://script.googleusercontent.com/macros/echo?user_content_key=h
4747
const doc = new Document(uri)
4848

4949
doc.fetch().then(() => {
50-
console.log(document.get('Title'))
50+
console.log(doc.get('Title'))
5151
})
5252
```
5353

@@ -58,7 +58,7 @@ var uri = 'https://script.googleusercontent.com/macros/echo?user_content_key=hqA
5858
var doc = new JSONGoogleDocs.Document(uri)
5959

6060
doc.fetch().then(function() {
61-
console.log(document.get('Title'))
61+
console.log(doc.get('Title'))
6262
})
6363
```
6464

@@ -73,7 +73,7 @@ var url = 'https://script.googleusercontent.com/macros/echo?user_content_key=hqA
7373
var doc = new JSONGoogleDocs.Document(url)
7474

7575
doc.fetch().then(function() {
76-
console.log(document.get('Title'))
76+
console.log(doc.get('Title'))
7777
})
7878
```
7979

0 commit comments

Comments
 (0)
Please sign in to comment.