Skip to content

Commit

Permalink
Merge pull request #69 from silvolu/master
Browse files Browse the repository at this point in the history
DOCS(README): fixes for code snippets.
  • Loading branch information
Burcu Dogan committed Jul 30, 2014
2 parents 0765bdb + 3a5048c commit 5e16d23
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ var gcloud = require('gcloud'),
ds = new gcloud.datastore.Dataset({ projectId: YOUR_PROJECT_ID });
~~~~

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

~~~~ js
var gcloud = require('gcloud'),
Expand Down Expand Up @@ -285,12 +285,12 @@ var gcloud = require('gcloud'),
bucket = new gcloud.storage.Bucket({ bucketName: YOUR_BUCKET_NAME });
~~~~

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

~~~~ js
var gcloud = require('gcloud'),
bucket = new gcloud.storage.Bucket({
projectId: YOUR_PROJECT_ID,
bucketName: YOUR_BUCKET_NAME,
keyFilename: '/path/to/the/key.json'
});
~~~~
Expand Down Expand Up @@ -332,7 +332,7 @@ and write the file contents to `/path/to/file`.
bucket.createReadStream(filename)
.pipe(fs.createWriteStream('/path/to/file'))
.on('error', console.log)
.on('completed', console.log);
.on('complete', console.log);
~~~~

#### Write file contents and metadata
Expand Down Expand Up @@ -391,8 +391,7 @@ and private key downloaded from Developer's Console.
var gcloud = require('gcloud'),
conn = new gcloud.pubsub.Connection({
projectId: YOUR_PROJECT_ID,
email: '[email protected]',
pemFilePath: '/path/to/the/pem/private/key.pem'
keyFilename: '/path/to/the/key.json'
});
~~~~

Expand Down

0 comments on commit 5e16d23

Please sign in to comment.