@google-cloud/translate
Advanced tools
Comparing version 0.5.1 to 0.5.2
{ | ||
"name": "@google-cloud/translate", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"author": "Google Inc.", | ||
"description": "Google Translate API Client Library for Node.js", | ||
"description": "Google Cloud Translation API Client Library for Node.js", | ||
"contributors": [ | ||
@@ -53,3 +53,3 @@ { | ||
"dependencies": { | ||
"@google-cloud/common": "^0.8.0", | ||
"@google-cloud/common": "^0.11.0", | ||
"arrify": "^1.0.0", | ||
@@ -56,0 +56,0 @@ "extend": "^3.0.0", |
@@ -1,5 +0,5 @@ | ||
# @google-cloud/translate | ||
> Google Translate API Client Library for Node.js | ||
# @google-cloud/translate ([Alpha][versioning]) | ||
> Google Cloud Translation API Client Library for Node.js | ||
*Looking for more Google APIs than just Translate? You might want to check out [`google-cloud`][google-cloud].* | ||
*Looking for more Google APIs than just Translation? You might want to check out [`google-cloud`][google-cloud].* | ||
@@ -65,14 +65,8 @@ - [API Documentation][gcloud-translate-docs] | ||
### 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: | ||
@@ -89,3 +83,3 @@ 1. Visit the [Google Developers Console][dev-console]. | ||
3. Navigate to **APIs & auth** > **APIs section** and turn on the following APIs (you may need to enable billing in order to use these services): | ||
* Google Translate API | ||
* Google Cloud Translation API | ||
4. Navigate to **APIs & auth** > **Credentials** and then: | ||
@@ -134,2 +128,4 @@ * If you want to use a new service account key, click on **Create credentials** and select **Service account key**. After the account key is created, you will be prompted to download the JSON key file that the library uses to authenticate your requests. | ||
[versioning]: https://github.com/GoogleCloudPlatform/google-cloud-node#versioning | ||
[google-cloud]: https://github.com/GoogleCloudPlatform/google-cloud-node/ | ||
@@ -136,0 +132,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
31680
416
131
+ Added@google-cloud/common@0.11.0(transitive)
+ Addedlog-driver@1.2.7(transitive)
- Removed@google-cloud/common@0.8.1(transitive)
Updated@google-cloud/common@^0.11.0