{"action":"created","comment":{"url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/pulls/comments/99039274","pull_request_review_id":19701517,"id":99039274,"diff_hunk":"@@ -0,0 +1,184 @@\n+/**\n+ * Copyright 2015 IBM Corp. All Rights Reserved.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n+ * use this file except in compliance with the License. You may obtain a copy of\n+ * the License at\n+ *\n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n+ * License for the specific language governing permissions and limitations under\n+ * the License.\n+ */\n+\n+'use strict';\n+\n+var requestFactory = require('../lib/requestwrapper');\n+var pick = require('object.pick');\n+var util = require('util');\n+var BaseService = require('../lib/base_service');\n+\n+/**\n+ * NaturalLanguageUnderstanding\n+ * @param options\n+ * @constructor\n+ */\n+function NaturalLanguageUnderstandingV1(options) {\n+  BaseService.call(this, options);\n+}\n+util.inherits(NaturalLanguageUnderstandingV1, BaseService);\n+NaturalLanguageUnderstandingV1.prototype.name = 'natural_language_understanding';\n+NaturalLanguageUnderstandingV1.prototype.version = 'v1';\n+NaturalLanguageUnderstandingV1.URL = 'https://gateway-s.watsonplatform.net/natural-language-understanding/api';","path":"natural-language-understanding/v1.js","position":38,"original_position":35,"commit_id":"d4123773608e5c90651ae98072ae0ba687754046","original_commit_id":"0912f606017bb2e859e72bb347d236302d913286","user":{"login":"kognate","id":31938,"avatar_url":"https://avatars.githubusercontent.com/u/31938?v=3","gravatar_id":"","url":"https://api.github.com/users/kognate","html_url":"https://github.com/kognate","followers_url":"https://api.github.com/users/kognate/followers","following_url":"https://api.github.com/users/kognate/following{/other_user}","gists_url":"https://api.github.com/users/kognate/gists{/gist_id}","starred_url":"https://api.github.com/users/kognate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kognate/subscriptions","organizations_url":"https://api.github.com/users/kognate/orgs","repos_url":"https://api.github.com/users/kognate/repos","events_url":"https://api.github.com/users/kognate/events{/privacy}","received_events_url":"https://api.github.com/users/kognate/received_events","type":"User","site_admin":false},"body":"the `.URL` var is special and is used by the base service.  If I change it to NATURAL_LANGUAGE_UNDERSTANDING_URL I'll have to modify the base service. ","created_at":"2017-02-02T01:46:56Z","updated_at":"2017-02-02T01:46:56Z","html_url":"https://github.com/watson-developer-cloud/node-sdk/pull/387#discussion_r99039274","pull_request_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/pulls/387","_links":{"self":{"href":"https://api.github.com/repos/watson-developer-cloud/node-sdk/pulls/comments/99039274"},"html":{"href":"https://github.com/watson-developer-cloud/node-sdk/pull/387#discussion_r99039274"},"pull_request":{"href":"https://api.github.com/repos/watson-developer-cloud/node-sdk/pulls/387"}}},"pull_request":{"url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/pulls/387","id":104212318,"html_url":"https://github.com/watson-developer-cloud/node-sdk/pull/387","diff_url":"https://github.com/watson-developer-cloud/node-sdk/pull/387.diff","patch_url":"https://github.com/watson-developer-cloud/node-sdk/pull/387.patch","issue_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/issues/387","number":387,"state":"open","locked":false,"title":"Adds support for NLU","user":{"login":"kognate","id":31938,"avatar_url":"https://avatars.githubusercontent.com/u/31938?v=3","gravatar_id":"","url":"https://api.github.com/users/kognate","html_url":"https://github.com/kognate","followers_url":"https://api.github.com/users/kognate/followers","following_url":"https://api.github.com/users/kognate/following{/other_user}","gists_url":"https://api.github.com/users/kognate/gists{/gist_id}","starred_url":"https://api.github.com/users/kognate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kognate/subscriptions","organizations_url":"https://api.github.com/users/kognate/orgs","repos_url":"https://api.github.com/users/kognate/repos","events_url":"https://api.github.com/users/kognate/events{/privacy}","received_events_url":"https://api.github.com/users/kognate/received_events","type":"User","site_admin":false},"body":"NLU has support for the analyze method.","created_at":"2017-02-01T20:13:07Z","updated_at":"2017-02-02T01:46:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dd8bbbfbcec9837fa2c61522ef76170034f080b8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/pulls/387/commits","review_comments_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/pulls/387/comments","review_comment_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/issues/387/comments","statuses_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/statuses/d4123773608e5c90651ae98072ae0ba687754046","head":{"label":"watson-developer-cloud:feature/nlu","ref":"feature/nlu","sha":"d4123773608e5c90651ae98072ae0ba687754046","user":{"login":"watson-developer-cloud","id":10017763,"avatar_url":"https://avatars.githubusercontent.com/u/10017763?v=3","gravatar_id":"","url":"https://api.github.com/users/watson-developer-cloud","html_url":"https://github.com/watson-developer-cloud","followers_url":"https://api.github.com/users/watson-developer-cloud/followers","following_url":"https://api.github.com/users/watson-developer-cloud/following{/other_user}","gists_url":"https://api.github.com/users/watson-developer-cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/watson-developer-cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watson-developer-cloud/subscriptions","organizations_url":"https://api.github.com/users/watson-developer-cloud/orgs","repos_url":"https://api.github.com/users/watson-developer-cloud/repos","events_url":"https://api.github.com/users/watson-developer-cloud/events{/privacy}","received_events_url":"https://api.github.com/users/watson-developer-cloud/received_events","type":"Organization","site_admin":false},"repo":{"id":27840307,"name":"node-sdk","full_name":"watson-developer-cloud/node-sdk","owner":{"login":"watson-developer-cloud","id":10017763,"avatar_url":"https://avatars.githubusercontent.com/u/10017763?v=3","gravatar_id":"","url":"https://api.github.com/users/watson-developer-cloud","html_url":"https://github.com/watson-developer-cloud","followers_url":"https://api.github.com/users/watson-developer-cloud/followers","following_url":"https://api.github.com/users/watson-developer-cloud/following{/other_user}","gists_url":"https://api.github.com/users/watson-developer-cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/watson-developer-cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watson-developer-cloud/subscriptions","organizations_url":"https://api.github.com/users/watson-developer-cloud/orgs","repos_url":"https://api.github.com/users/watson-developer-cloud/repos","events_url":"https://api.github.com/users/watson-developer-cloud/events{/privacy}","received_events_url":"https://api.github.com/users/watson-developer-cloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/watson-developer-cloud/node-sdk","description":":steam_locomotive: Node.js library to access IBM Watson services.","fork":false,"url":"https://api.github.com/repos/watson-developer-cloud/node-sdk","forks_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/forks","keys_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/teams","hooks_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/hooks","issue_events_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/events","assignees_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/tags","blobs_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/languages","stargazers_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/stargazers","contributors_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/contributors","subscribers_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/subscribers","subscription_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/subscription","commits_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/merges","archive_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/downloads","issues_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/labels{/name}","releases_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/deployments","created_at":"2014-12-10T21:20:48Z","updated_at":"2017-01-31T22:09:05Z","pushed_at":"2017-02-02T01:40:59Z","git_url":"git://github.com/watson-developer-cloud/node-sdk.git","ssh_url":"git@github.com:watson-developer-cloud/node-sdk.git","clone_url":"https://github.com/watson-developer-cloud/node-sdk.git","svn_url":"https://github.com/watson-developer-cloud/node-sdk","homepage":"https://www.npmjs.com/package/watson-developer-cloud","size":9950,"stargazers_count":497,"watchers_count":497,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":235,"mirror_url":null,"open_issues_count":16,"forks":235,"open_issues":16,"watchers":497,"default_branch":"master"}},"base":{"label":"watson-developer-cloud:master","ref":"master","sha":"99f8c27529f70ed99785622329aabe27c5428567","user":{"login":"watson-developer-cloud","id":10017763,"avatar_url":"https://avatars.githubusercontent.com/u/10017763?v=3","gravatar_id":"","url":"https://api.github.com/users/watson-developer-cloud","html_url":"https://github.com/watson-developer-cloud","followers_url":"https://api.github.com/users/watson-developer-cloud/followers","following_url":"https://api.github.com/users/watson-developer-cloud/following{/other_user}","gists_url":"https://api.github.com/users/watson-developer-cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/watson-developer-cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watson-developer-cloud/subscriptions","organizations_url":"https://api.github.com/users/watson-developer-cloud/orgs","repos_url":"https://api.github.com/users/watson-developer-cloud/repos","events_url":"https://api.github.com/users/watson-developer-cloud/events{/privacy}","received_events_url":"https://api.github.com/users/watson-developer-cloud/received_events","type":"Organization","site_admin":false},"repo":{"id":27840307,"name":"node-sdk","full_name":"watson-developer-cloud/node-sdk","owner":{"login":"watson-developer-cloud","id":10017763,"avatar_url":"https://avatars.githubusercontent.com/u/10017763?v=3","gravatar_id":"","url":"https://api.github.com/users/watson-developer-cloud","html_url":"https://github.com/watson-developer-cloud","followers_url":"https://api.github.com/users/watson-developer-cloud/followers","following_url":"https://api.github.com/users/watson-developer-cloud/following{/other_user}","gists_url":"https://api.github.com/users/watson-developer-cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/watson-developer-cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watson-developer-cloud/subscriptions","organizations_url":"https://api.github.com/users/watson-developer-cloud/orgs","repos_url":"https://api.github.com/users/watson-developer-cloud/repos","events_url":"https://api.github.com/users/watson-developer-cloud/events{/privacy}","received_events_url":"https://api.github.com/users/watson-developer-cloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/watson-developer-cloud/node-sdk","description":":steam_locomotive: Node.js library to access IBM Watson services.","fork":false,"url":"https://api.github.com/repos/watson-developer-cloud/node-sdk","forks_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/forks","keys_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/teams","hooks_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/hooks","issue_events_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/events","assignees_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/tags","blobs_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/languages","stargazers_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/stargazers","contributors_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/contributors","subscribers_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/subscribers","subscription_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/subscription","commits_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/merges","archive_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/downloads","issues_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/labels{/name}","releases_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/watson-developer-cloud/node-sdk/deployments","created_at":"2014-12-10T21:20:48Z","updated_at":"2017-01-31T22:09:05Z","pushed_at":"2017-02-02T01:40:59Z","git_url":"git://github.com/watson-developer-cloud/node-sdk.git","ssh_url":"git@github.com:watson-developer-cloud/node-sdk.git","clone_url":"https://github.com/watson-developer-cloud/node-sdk.git","svn_url":"https://github.com/watson-developer-cloud/node-sdk","homepage":"https://www.npmjs.com/package/watson-developer-cloud","size":9950,"stargazers_count":497,"watchers_count":497,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":235,"mirror_url":null,"open_issues_count":16,"forks":235,"open_issues":16,"watchers":497,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/watson-developer-cloud/node-sdk/pulls/387"},"html":{"href":"https://github.com/watson-developer-cloud/node-sdk/pull/387"},"issue":{"href":"https://api.github.com/repos/watson-developer-cloud/node-sdk/issues/387"},"comments":{"href":"https://api.github.com/repos/watson-developer-cloud/node-sdk/issues/387/comments"},"review_comments":{"href":"https://api.github.com/repos/watson-developer-cloud/node-sdk/pulls/387/comments"},"review_comment":{"href":"https://api.github.com/repos/watson-developer-cloud/node-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/watson-developer-cloud/node-sdk/pulls/387/commits"},"statuses":{"href":"https://api.github.com/repos/watson-developer-cloud/node-sdk/statuses/d4123773608e5c90651ae98072ae0ba687754046"}}}}
{"actor":{"display_login":"kognate"}}