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

Update nodejs demos #47

Closed
wants to merge 2 commits into from

Conversation

ryanseys
Copy link

I've taken the liberty of trying to update the nodejs demos in this repo to work with the new google-api-nodejs-client. I haven't actually tested the changes so if someone could give this a second look & perhaps test it, that'd be awesome.

Plus general feedback is always welcome. Maybe we want to scrap this altogether and create a better demo?

compute = new googleapis.auth.Compute(),
datastore = null,
todoListName = null;
var googleapis = require('googleapis');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you remove the 1 line var construct?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If each thing is being assigned something, I like to use a separate var for each assignment. Makes deletions and insertions in the future easier to follow in diffs as well.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack.

@proppy
Copy link
Contributor

proppy commented Sep 2, 2014

/cc @pcostell

@@ -19,11 +19,11 @@ var util = require('util');
var events = require('events');
var readline = require('readline');
var googleapis = require('googleapis');
var datastore = googleapis.datastore('v1');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our latest version is v1beta2.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, okay. v1 suggests it's done and beta2 suggests it's not done, so I assumed v1 was more up to date. My apologies.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK, there is no v1 version published for the datastore API. The _v1 suffix of the proto file refers to something else :)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're correct. Not sure where I got v1 from but you're probably on the right track with _v1 suffix lol. Thanks :)

@ryanseys
Copy link
Author

ryanseys commented Sep 3, 2014

Fixed the datastore version to v1beta2.

@proppy
Copy link
Contributor

proppy commented Sep 5, 2014

This is somewhat conflicting with #46 and other internal changes we are making to our docs.

Should we feature gcloud-node, googleapis v1 or both? /cc @jgeewax

@jgeewax
Copy link

jgeewax commented Sep 5, 2014

A little confused what the question is -- featuring where? @proppy

@proppy
Copy link
Contributor

proppy commented Sep 6, 2014

@jgeewax is this repo, in our docs, etc.

@rakyll
Copy link

rakyll commented Oct 1, 2014

What's the status of this PR? Merging?

@proppy
Copy link
Contributor

proppy commented Oct 1, 2014

@ryanseys
Copy link
Author

ryanseys commented Oct 1, 2014

Not really. It's just a nice to have.

@ryanseys
Copy link
Author

Closing in favour of using gcloud-node instead.

@ryanseys ryanseys closed this Nov 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants