{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/1023","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/1023/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/1023/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/1023/events","html_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/1023","id":122328520,"number":1023,"title":"introduce Translate API","user":{"login":"stephenplusplus","id":723048,"avatar_url":"https://avatars.githubusercontent.com/u/723048?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenplusplus","html_url":"https://github.com/stephenplusplus","followers_url":"https://api.github.com/users/stephenplusplus/followers","following_url":"https://api.github.com/users/stephenplusplus/following{/other_user}","gists_url":"https://api.github.com/users/stephenplusplus/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenplusplus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenplusplus/subscriptions","organizations_url":"https://api.github.com/users/stephenplusplus/orgs","repos_url":"https://api.github.com/users/stephenplusplus/repos","events_url":"https://api.github.com/users/stephenplusplus/events{/privacy}","received_events_url":"https://api.github.com/users/stephenplusplus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/labels/blocked","name":"blocked","color":"e11d21"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/labels/cla:%20yes","name":"cla: yes","color":"009800"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/labels/translate","name":"translate","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-15T17:52:28Z","updated_at":"2015-12-22T16:26:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/pulls/1023","html_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/1023","diff_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/1023.diff","patch_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/1023.patch"},"body":"Fixes #977 \r\n\r\n#### To Dos\r\n\r\n- [x] Enable Translate API for Travis account\r\n- [x] Set env var in Travis for API key\r\n- [x] Docs\r\n- [x] Tests\r\n  - [x] Unit\r\n  - [x] System\r\n\r\n#### Preview\r\n\r\n```js\r\nvar gcloud = require('gcloud');\r\n\r\nvar translate = gcloud.translate({\r\n  key: 'API Key'\r\n});\r\n\r\n// Translate a string of text.\r\ntranslate.translate('Hello', 'es', function(err, translation) {\r\n  if (!err) {\r\n    // translation = 'Hola'\r\n  }\r\n});\r\n\r\n// Detect a language from a string of text.\r\ntranslate.detect('Hello', function(err, results) {\r\n  if (!err) {\r\n    // results = {\r\n    //   language: 'en',\r\n    //   confidence: 1,\r\n    //   input: 'Hello'\r\n    // }\r\n  }\r\n});\r\n\r\n// Get a list of supported languages.\r\ntranslate.getLanguages(function(err, languages) {\r\n  if (!err) {\r\n    // languages = [\r\n    //   'af',\r\n    //   'ar',\r\n    //   'az',\r\n    //   ...\r\n    // ]\r\n  }\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/comments/166665933","html_url":"https://github.com/GoogleCloudPlatform/gcloud-node/pull/1023#issuecomment-166665933","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/1023","id":166665933,"user":{"login":"stephenplusplus","id":723048,"avatar_url":"https://avatars.githubusercontent.com/u/723048?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenplusplus","html_url":"https://github.com/stephenplusplus","followers_url":"https://api.github.com/users/stephenplusplus/followers","following_url":"https://api.github.com/users/stephenplusplus/following{/other_user}","gists_url":"https://api.github.com/users/stephenplusplus/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenplusplus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenplusplus/subscriptions","organizations_url":"https://api.github.com/users/stephenplusplus/orgs","repos_url":"https://api.github.com/users/stephenplusplus/repos","events_url":"https://api.github.com/users/stephenplusplus/events{/privacy}","received_events_url":"https://api.github.com/users/stephenplusplus/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T16:26:43Z","updated_at":"2015-12-22T16:26:43Z","body":"Marking as blocked until we hear from @ilsung about authenticating with a service account keyfile. (Thanks in advance for your help!)"}}