Skip to content

Commit

Permalink
readme: fix examples for 0.7. fixes googleapis#243
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus committed Sep 25, 2014
1 parent 23abd11 commit 4e6f384
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,15 @@ See [the gcloud-node API documentation](https://googlecloudplatform.github.io/gc

```js
var gcloud = require('gcloud');
var datastore = gcloud.datastore;
var dataset;

// From Google Compute Engine:
dataset = new datastore.Dataset({
dataset = gcloud.datastore.dataset({
projectId: 'my-project',
});

// Or from elsewhere:
dataset = new datastore.Dataset({
dataset = gcloud.datastore.dataset({
projectId: 'my-project',
keyFilename: '/path/to/keyfile.json'
});
Expand All @@ -80,17 +79,16 @@ See [the gcloud-node API documentation](https://googlecloudplatform.github.io/gc

```js
var gcloud = require('gcloud');
var storage = gcloud.storage;
var bucket;

// From Google Compute Engine:
bucket = new storage.Bucket({
bucketName: YOUR_BUCKET_NAME
bucket = gcloud.storage.bucket({
bucketName: 'my-bucket'
});

// Or from elsewhere:
bucket = new storage.Bucket({
bucketName: YOUR_BUCKET_NAME,
bucket = gcloud.storage.bucket({
bucketName: 'my-bucket',
keyFilename: '/path/to/the/key.json'
});

Expand Down

0 comments on commit 4e6f384

Please sign in to comment.