Skip to content

Commit 5e16d23

Browse files
author
Burcu Dogan
committed
Merge pull request #69 from silvolu/master
DOCS(README): fixes for code snippets.
2 parents 0765bdb + 3a5048c commit 5e16d23

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ var gcloud = require('gcloud'),
8282
ds = new gcloud.datastore.Dataset({ projectId: YOUR_PROJECT_ID });
8383
~~~~
8484

85-
Elsewhere, initiate with project ID, service account's email and private key downloaded from Developer's Console.
85+
Elsewhere, initiate with project ID and private key downloaded from Developer's Console.
8686

8787
~~~~ js
8888
var gcloud = require('gcloud'),
@@ -285,12 +285,12 @@ var gcloud = require('gcloud'),
285285
bucket = new gcloud.storage.Bucket({ bucketName: YOUR_BUCKET_NAME });
286286
~~~~
287287

288-
Elsewhere, initiate with bucket's name, service account's email and private key downloaded from Developer's Console.
288+
Elsewhere, initiate with bucket's name and private key downloaded from Developer's Console.
289289

290290
~~~~ js
291291
var gcloud = require('gcloud'),
292292
bucket = new gcloud.storage.Bucket({
293-
projectId: YOUR_PROJECT_ID,
293+
bucketName: YOUR_BUCKET_NAME,
294294
keyFilename: '/path/to/the/key.json'
295295
});
296296
~~~~
@@ -332,7 +332,7 @@ and write the file contents to `/path/to/file`.
332332
bucket.createReadStream(filename)
333333
.pipe(fs.createWriteStream('/path/to/file'))
334334
.on('error', console.log)
335-
.on('completed', console.log);
335+
.on('complete', console.log);
336336
~~~~
337337

338338
#### Write file contents and metadata
@@ -391,8 +391,7 @@ and private key downloaded from Developer's Console.
391391
var gcloud = require('gcloud'),
392392
conn = new gcloud.pubsub.Connection({
393393
projectId: YOUR_PROJECT_ID,
394-
395-
pemFilePath: '/path/to/the/pem/private/key.pem'
394+
keyFilename: '/path/to/the/key.json'
396395
});
397396
~~~~
398397

0 commit comments

Comments
 (0)