Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOCS(README): fixes for code snippets. #69

Merged
merged 1 commit into from
Jul 30, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: 'xxx@developer.gserviceaccount.com',
pemFilePath: '/path/to/the/pem/private/key.pem'
keyFilename: '/path/to/the/key.json'
});
~~~~

Expand Down