@google-cloud/translate
Advanced tools
Comparing version 0.5.1 to 0.6.0
{ | ||
"name": "@google-cloud/translate", | ||
"version": "0.5.1", | ||
"version": "0.6.0", | ||
"author": "Google Inc.", | ||
@@ -53,3 +53,3 @@ "description": "Google Translate API Client Library for Node.js", | ||
"dependencies": { | ||
"@google-cloud/common": "^0.8.0", | ||
"@google-cloud/common": "^0.9.0", | ||
"arrify": "^1.0.0", | ||
@@ -56,0 +56,0 @@ "extend": "^3.0.0", |
@@ -1,2 +0,2 @@ | ||
# @google-cloud/translate | ||
# @google-cloud/translate ([Alpha][versioning]) | ||
> Google Translate API Client Library for Node.js | ||
@@ -65,14 +65,8 @@ | ||
### On Google Compute Engine | ||
### On Google Cloud Platform | ||
If you are running this client on Google Compute Engine, we handle authentication for you with no configuration. You just need to make sure that when you [set up the GCE instance][gce-how-to], you add the correct scopes for the APIs you want to access. | ||
If you are running this client on Google Cloud Platform, we handle authentication for you with no configuration. You just need to make sure that when you [set up the GCE instance][gce-how-to], you add the correct scopes for the APIs you want to access. | ||
``` js | ||
// Authenticating on a global basis. | ||
var projectId = process.env.GCLOUD_PROJECT; // E.g. 'grape-spaceship-123' | ||
var translate = require('@google-cloud/translate')({ | ||
projectId: projectId | ||
}); | ||
var translate = require('@google-cloud/translate')(); | ||
// ...you're good to go! | ||
@@ -83,3 +77,3 @@ ``` | ||
If you are not running this client on Google Compute Engine, you need a Google Developers service account. To create a service account: | ||
If you are not running this client on Google Cloud Platform, you need a Google Developers service account. To create a service account: | ||
@@ -133,2 +127,4 @@ 1. Visit the [Google Developers Console][dev-console]. | ||
[versioning]: https://github.com/GoogleCloudPlatform/google-cloud-node#versioning | ||
[google-cloud]: https://github.com/GoogleCloudPlatform/google-cloud-node/ | ||
@@ -135,0 +131,0 @@ [api-key-howto]: https://cloud.google.com/translate/v2/using_rest#auth |
@@ -40,6 +40,2 @@ /*! | ||
* | ||
* Google Translate API is available as a paid service. See the | ||
* [Pricing](https://cloud.google.com/translate/v2/pricing.html) and | ||
* [FAQ](https://cloud.google.com/translate/v2/faq.html) pages for details. | ||
* | ||
* @constructor | ||
@@ -51,4 +47,2 @@ * @alias module:translate | ||
* | ||
* @throws {Error} If an API key is not provided. | ||
* | ||
* @param {object} options - [Configuration object](#/docs). | ||
@@ -55,0 +49,0 @@ * @param {string=} options.key - An API key. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31653
416
131
+ Added@google-cloud/common@0.9.1(transitive)
- Removed@google-cloud/common@0.8.1(transitive)
Updated@google-cloud/common@^0.9.0