Skip to content

Commit 4e6f384

Browse files
readme: fix examples for 0.7. fixes #243
1 parent 23abd11 commit 4e6f384

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

README.md

+6-8
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,15 @@ See [the gcloud-node API documentation](https://googlecloudplatform.github.io/gc
5151

5252
```js
5353
var gcloud = require('gcloud');
54-
var datastore = gcloud.datastore;
5554
var dataset;
5655

5756
// From Google Compute Engine:
58-
dataset = new datastore.Dataset({
57+
dataset = gcloud.datastore.dataset({
5958
projectId: 'my-project',
6059
});
6160

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

8180
```js
8281
var gcloud = require('gcloud');
83-
var storage = gcloud.storage;
8482
var bucket;
8583

8684
// From Google Compute Engine:
87-
bucket = new storage.Bucket({
88-
bucketName: YOUR_BUCKET_NAME
85+
bucket = gcloud.storage.bucket({
86+
bucketName: 'my-bucket'
8987
});
9088

9189
// Or from elsewhere:
92-
bucket = new storage.Bucket({
93-
bucketName: YOUR_BUCKET_NAME,
90+
bucket = gcloud.storage.bucket({
91+
bucketName: 'my-bucket',
9492
keyFilename: '/path/to/the/key.json'
9593
});
9694

0 commit comments

Comments
 (0)