|
12 | 12 | This client supports the following Google Cloud Platform services at a [General Availability (GA)](#versioning) quality level:
|
13 | 13 |
|
14 | 14 | * [Cloud Datastore](#cloud-datastore-ga) (GA)
|
| 15 | +* [Cloud Natural Language](http://github.com/googleapis/nodejs-language/) (GA) |
15 | 16 | * [Cloud Storage](http://github.com/googleapis/nodejs-storage/) (GA)
|
16 | 17 | * [Cloud Translation API](#cloud-translation-api-ga) (GA)
|
17 | 18 | * [Google Stackdriver Logging](#google-stackdriver-logging-ga) (GA)
|
18 | 19 |
|
19 | 20 | This client supports the following Google Cloud Platform services at a [Beta](#versioning) quality level:
|
20 | 21 |
|
21 | 22 | * [Cloud Firestore](http://github.com/googleapis/nodejs-firestore/) (Beta)
|
22 |
| -* [Cloud Natural Language](http://github.com/googleapis/nodejs-language/) (Beta) |
23 | 23 | * [Cloud Pub/Sub](#cloud-pubsub-beta) (Beta)
|
24 | 24 | * [Cloud Spanner](#cloud-spanner-beta) (Beta)
|
25 | 25 | * [Cloud Vision](#cloud-vision-beta) (Beta)
|
@@ -226,6 +226,49 @@ datastoreClient.save({
|
226 | 226 | ```
|
227 | 227 |
|
228 | 228 |
|
| 229 | +## Cloud Natural Language (GA) |
| 230 | + |
| 231 | +- [API Documentation][gcloud-language-docs] |
| 232 | +- [Official Documentation][cloud-language-docs] |
| 233 | + |
| 234 | +#### Using the Natural Language API module |
| 235 | + |
| 236 | +``` |
| 237 | +$ npm install --save @google-cloud/language |
| 238 | +``` |
| 239 | + |
| 240 | +```js |
| 241 | +var language = require('@google-cloud/language'); |
| 242 | +``` |
| 243 | + |
| 244 | +#### Authentication |
| 245 | + |
| 246 | +See [Authentication](#authentication). |
| 247 | + |
| 248 | +#### Preview |
| 249 | + |
| 250 | +```js |
| 251 | +var languageClient = language({ |
| 252 | + projectId: 'grape-spaceship-123', |
| 253 | + keyFilename: '/path/to/keyfile.json' |
| 254 | +}); |
| 255 | + |
| 256 | +var content = 'Hello, world!'; |
| 257 | +var type = language.v1.types.Document.Type.PLAIN_TEXT; |
| 258 | +var document = { |
| 259 | + content : content, |
| 260 | + type : type |
| 261 | +}; |
| 262 | +languageClient.analyzeSentiment({document: document}).then(function(responses) { |
| 263 | + var response = responses[0]; |
| 264 | + // doThingsWith(response) |
| 265 | +}) |
| 266 | +.catch(function(err) { |
| 267 | + console.error(err); |
| 268 | +}); |
| 269 | +``` |
| 270 | + |
| 271 | + |
229 | 272 | ## Cloud Storage (GA)
|
230 | 273 |
|
231 | 274 | - [API Documentation][gcloud-storage-docs]
|
@@ -465,49 +508,6 @@ document.delete().then(() => {
|
465 | 508 | ```
|
466 | 509 |
|
467 | 510 |
|
468 |
| -## Cloud Natural Language (Beta) |
469 |
| - |
470 |
| -- [API Documentation][gcloud-language-docs] |
471 |
| -- [Official Documentation][cloud-language-docs] |
472 |
| - |
473 |
| -#### Using the Natural Language API module |
474 |
| - |
475 |
| -``` |
476 |
| -$ npm install --save @google-cloud/language |
477 |
| -``` |
478 |
| - |
479 |
| -```js |
480 |
| -var language = require('@google-cloud/language'); |
481 |
| -``` |
482 |
| - |
483 |
| -#### Authentication |
484 |
| - |
485 |
| -See [Authentication](#authentication). |
486 |
| - |
487 |
| -#### Preview |
488 |
| - |
489 |
| -```js |
490 |
| -var languageClient = language({ |
491 |
| - projectId: 'grape-spaceship-123', |
492 |
| - keyFilename: '/path/to/keyfile.json' |
493 |
| -}); |
494 |
| - |
495 |
| -var content = 'Hello, world!'; |
496 |
| -var type = language.v1.types.Document.Type.PLAIN_TEXT; |
497 |
| -var document = { |
498 |
| - content : content, |
499 |
| - type : type |
500 |
| -}; |
501 |
| -languageClient.analyzeSentiment({document: document}).then(function(responses) { |
502 |
| - var response = responses[0]; |
503 |
| - // doThingsWith(response) |
504 |
| -}) |
505 |
| -.catch(function(err) { |
506 |
| - console.error(err); |
507 |
| -}); |
508 |
| -``` |
509 |
| - |
510 |
| - |
511 | 511 | ## Cloud Pub/Sub (Beta)
|
512 | 512 |
|
513 | 513 | - [API Documentation][gcloud-pubsub-docs]
|
|
0 commit comments