{"action":"created","comment":{"url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/pulls/comments/65800233","id":65800233,"diff_hunk":"@@ -0,0 +1,365 @@\n+/**\n+ * Copyright 2013,2015, 2016 IBM Corp.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the 'License');\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of 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,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ **/\n+\n+// Watson Visual Recognition functions supported by this node\n+/*var FEATURE_RESPONSES = {\n+  classifyImage: 'classifyImage',\n+  detectFaces: 'detectFaces',\n+  recognizeText: 'recognizeText',\n+  createClassifier: 'createClassifier',\n+  retrieveClassifiersList: 'retrieveClassifiersList',\n+  retrieveClassifierDetails: 'retrieveClassifierDetails',\n+  deleteClassifier: 'deleteClassifier'\n+};*/\n+\n+module.exports = function (RED) {\n+  var cfenv = require('cfenv');\n+  var watson = require('watson-developer-cloud');\n+\n+  var imageType = require('image-type');\n+  var url = require('url');\n+  var temp = require('temp');\n+  var fileType = require('file-type');\n+  var fs = require('fs');\n+  var async = require('async');\n+\n+  // temp is being used for file streaming to allow the file to arrive so it can be processed. \n+  temp.track();\n+\n+  // Require the Cloud Foundry Module to pull credentials from bound service \n+  // If they are found then the api key is stored in the variable sAPIKey. \n+  //\n+  // This separation between sAPIKey and apikey is to allow \n+  // the end user to modify the key credentials when the service is not bound.\n+  // Otherwise, once set apikey is never reset, resulting in a frustrated\n+  // user who, when he errenously enters bad credentials, can't figure out why\n+  // the edited ones are not being taken.\n+\n+  // Taking this line out as codacy was complaining about it. \n+  // var services = cfenv.getAppEnv().services,\n+\n+  var apikey, sAPIKey;\n+\n+  var service = cfenv.getAppEnv().getServiceCreds(/visual recognition/i);\n+\n+  if (service) {\n+    sAPIKey = service.apikey;\n+  }\n+\n+  RED.httpAdmin.get('/watson-visual-recognition/vcap', function (req, res) {\n+    res.json(service ? {bound_service: true} : null);\n+  });\n+\n+  // Utility functions that check for image buffers, urls and stream data in\n+ \n+  function imageCheck(data) {\n+    return data instanceof Buffer && imageType(data) !== null;\n+  };\n+\n+  function urlCheck(str) {\n+    var parsed = url.parse(str);\n+    return (!!parsed.hostname && !!parsed.protocol && str.indexOf(' ') < 0);\n+  };\n+\n+  function stream_buffer(file, contents, cb) {\n+    fs.writeFile(file, contents, function (err) {\n+      if (err) throw err;\n+      cb();\n+    });\n+  };\n+\n+  // Utility function that performs the Watson Visual Recognition call. \n+  // the cleanup removes the temp storage, and I am not sure whether \n+  // it should be called here or after alchemy returns and passed\n+  // control back to cbdone.\n+\n+  function performAction(params, feature, cbdone) {\n+    var visualRecognition = watson.visual_recognition({\n+      api_key: apikey,\n+      version: 'v3',\n+      version_date: '2016-05-19'\n+    });\n+\n+    switch(feature)\n+    {\n+      case 'classifyImage' : \n+        visualRecognition.classify(params, cbdone);\n+        break;\n+      case 'detectFaces':\n+        visualRecognition.detectFaces(params, cbdone);\n+        break;\n+      case 'recognizeText':\n+        visualRecognition.recognizeText(params, cbdone);\n+        break;\n+      case 'createClassifier':\n+        visualRecognition.createClassifier(params, cbdone);\n+        break;\n+      case 'retrieveClassifiersList':\n+        visualRecognition.listClassifiers(params, cbdone);\n+        break;\n+      case 'retrieveClassifierDetails':\n+        visualRecognition.getClassifier(params, cbdone);\n+        break;\n+      case 'deleteClassifier':\n+        visualRecognition.deleteClassifier(params, cbdone);\n+        break;\n+    }\n+  }\n+\n+  // This is the Watson Visual Recognition V3 Node\n+  function WatsonVisualRecognitionV3Node (config) {\n+    RED.nodes.createNode(this, config);\n+    var node = this;\n+    var message;\n+    this.on('input', function (msg) \n+    {\n+      // Check which single feature has been requested.\n+      var feature = config['image-feature'];\n+      node.status({});\n+      // so there is at most 1 temp file at a time (did not found a better solution...)\n+      temp.cleanup(); \n+\n+      if (!msg.payload) {\n+        this.status({fill:'red', shape:'ring', text:'missing payload'}); \n+        message = 'Missing property: msg.payload';\n+        node.error(message, msg);\n+        return;\n+      }\n+      if (feature !== 'retrieveClassifiersList' && feature !== 'retrieveClassifierDetails' \n+          && feature !== 'deleteClassifier')\n+      {\n+        if (typeof msg.payload === 'boolean' || typeof msg.payload === 'number') \n+        {\n+          this.status({fill:'red', shape:'ring', text:'bad format payload'}); \n+          message = 'Bad format : msg.payload must be a URL string or a Node.js Buffer';\n+          node.error(message, msg);\n+          return;\n+        }\n+      }\n+\n+      // If it is present the newly provided user entered key \n+      // takes precedence over the existing one. \n+      apikey = sAPIKey || this.credentials.apikey;\n+      this.status({}); \n+\n+      if (!apikey) {\n+        this.status({fill:'red', shape:'ring', text:'missing credentials'});          \n+        message ='Missing Watson Visual Recognition API service credentials'; \n+        node.error(message, msg);\n+        return;\n+      }\n+\n+      var params = {};\n+\n+      // This is the callback after the call to the watson service.    \n+      // Set up as a var within this scope, so it has access to node, msg etc. \n+      // in preparation for the Watson service action       \n+      var actionComplete = function(err, body, other) {\n+\n+        if (err != null && body==null)\n+        {\n+          node.status({fill:'red', shape:'ring', \n+                       text:'call to watson visual recognition v3 service failed'}); \n+          msg.result = {};\n+          msg.result['error_code']= err.code;\n+          if (!err.error)\n+            msg.result['error']= err.error;\n+          console.log('Error:', err.code);\n+          node.error('Error code : ' +  err.code);\n+          return;\n+        }\n+        else if (body.images[0].error)\n+        {\n+          var err_desc = body.images[0].error.description;\n+          var err_id = body.images[0].error.error_id;\n+          node.status({fill:'red', shape:'ring', \n+                       text:'call to watson visual recognition v3 service failed'}); \n+          msg.result = {};\n+          msg.result['error_id']= err_id;","path":"services/visual_recognition/v3.js","position":191,"original_position":191,"commit_id":"e67e613487b113e860f441cfb27485fe0cfed222","original_commit_id":"e67e613487b113e860f441cfb27485fe0cfed222","user":{"login":"chughts","id":10371360,"avatar_url":"https://avatars.githubusercontent.com/u/10371360?v=3","gravatar_id":"","url":"https://api.github.com/users/chughts","html_url":"https://github.com/chughts","followers_url":"https://api.github.com/users/chughts/followers","following_url":"https://api.github.com/users/chughts/following{/other_user}","gists_url":"https://api.github.com/users/chughts/gists{/gist_id}","starred_url":"https://api.github.com/users/chughts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chughts/subscriptions","organizations_url":"https://api.github.com/users/chughts/orgs","repos_url":"https://api.github.com/users/chughts/repos","events_url":"https://api.github.com/users/chughts/events{/privacy}","received_events_url":"https://api.github.com/users/chughts/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Identifier 'err_id' is not in camel case.](https://www.codacy.com/app/BetaWorks-NodeRED-Watson/node-red-node-watson/file/2690780051/issues/source?bid=3330694&fileBranchId=3339165#l191)","created_at":"2016-06-04T09:22:56Z","updated_at":"2016-06-04T09:22:56Z","html_url":"https://github.com/watson-developer-cloud/node-red-node-watson/pull/112#discussion_r65800233","pull_request_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/pulls/112","_links":{"self":{"href":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/pulls/comments/65800233"},"html":{"href":"https://github.com/watson-developer-cloud/node-red-node-watson/pull/112#discussion_r65800233"},"pull_request":{"href":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/pulls/112"}}},"pull_request":{"url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/pulls/112","id":72597679,"html_url":"https://github.com/watson-developer-cloud/node-red-node-watson/pull/112","diff_url":"https://github.com/watson-developer-cloud/node-red-node-watson/pull/112.diff","patch_url":"https://github.com/watson-developer-cloud/node-red-node-watson/pull/112.patch","issue_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/issues/112","number":112,"state":"open","locked":false,"title":"New Visual Recognition node for V3 GA API","user":{"login":"chughts","id":10371360,"avatar_url":"https://avatars.githubusercontent.com/u/10371360?v=3","gravatar_id":"","url":"https://api.github.com/users/chughts","html_url":"https://github.com/chughts","followers_url":"https://api.github.com/users/chughts/followers","following_url":"https://api.github.com/users/chughts/following{/other_user}","gists_url":"https://api.github.com/users/chughts/gists{/gist_id}","starred_url":"https://api.github.com/users/chughts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chughts/subscriptions","organizations_url":"https://api.github.com/users/chughts/orgs","repos_url":"https://api.github.com/users/chughts/repos","events_url":"https://api.github.com/users/chughts/events{/privacy}","received_events_url":"https://api.github.com/users/chughts/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-04T09:09:00Z","updated_at":"2016-06-04T09:22:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"edbef9786d1e006fa62ca0bfa8e634b512ce3dbd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/pulls/112/commits","review_comments_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/pulls/112/comments","review_comment_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/pulls/comments{/number}","comments_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/issues/112/comments","statuses_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/statuses/e67e613487b113e860f441cfb27485fe0cfed222","head":{"label":"chughts:master","ref":"master","sha":"e67e613487b113e860f441cfb27485fe0cfed222","user":{"login":"chughts","id":10371360,"avatar_url":"https://avatars.githubusercontent.com/u/10371360?v=3","gravatar_id":"","url":"https://api.github.com/users/chughts","html_url":"https://github.com/chughts","followers_url":"https://api.github.com/users/chughts/followers","following_url":"https://api.github.com/users/chughts/following{/other_user}","gists_url":"https://api.github.com/users/chughts/gists{/gist_id}","starred_url":"https://api.github.com/users/chughts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chughts/subscriptions","organizations_url":"https://api.github.com/users/chughts/orgs","repos_url":"https://api.github.com/users/chughts/repos","events_url":"https://api.github.com/users/chughts/events{/privacy}","received_events_url":"https://api.github.com/users/chughts/received_events","type":"User","site_admin":false},"repo":{"id":58115630,"name":"node-red-node-watson","full_name":"chughts/node-red-node-watson","owner":{"login":"chughts","id":10371360,"avatar_url":"https://avatars.githubusercontent.com/u/10371360?v=3","gravatar_id":"","url":"https://api.github.com/users/chughts","html_url":"https://github.com/chughts","followers_url":"https://api.github.com/users/chughts/followers","following_url":"https://api.github.com/users/chughts/following{/other_user}","gists_url":"https://api.github.com/users/chughts/gists{/gist_id}","starred_url":"https://api.github.com/users/chughts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chughts/subscriptions","organizations_url":"https://api.github.com/users/chughts/orgs","repos_url":"https://api.github.com/users/chughts/repos","events_url":"https://api.github.com/users/chughts/events{/privacy}","received_events_url":"https://api.github.com/users/chughts/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chughts/node-red-node-watson","description":"A collection of nodes for the IBM Watson services","fork":true,"url":"https://api.github.com/repos/chughts/node-red-node-watson","forks_url":"https://api.github.com/repos/chughts/node-red-node-watson/forks","keys_url":"https://api.github.com/repos/chughts/node-red-node-watson/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chughts/node-red-node-watson/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chughts/node-red-node-watson/teams","hooks_url":"https://api.github.com/repos/chughts/node-red-node-watson/hooks","issue_events_url":"https://api.github.com/repos/chughts/node-red-node-watson/issues/events{/number}","events_url":"https://api.github.com/repos/chughts/node-red-node-watson/events","assignees_url":"https://api.github.com/repos/chughts/node-red-node-watson/assignees{/user}","branches_url":"https://api.github.com/repos/chughts/node-red-node-watson/branches{/branch}","tags_url":"https://api.github.com/repos/chughts/node-red-node-watson/tags","blobs_url":"https://api.github.com/repos/chughts/node-red-node-watson/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chughts/node-red-node-watson/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chughts/node-red-node-watson/git/refs{/sha}","trees_url":"https://api.github.com/repos/chughts/node-red-node-watson/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chughts/node-red-node-watson/statuses/{sha}","languages_url":"https://api.github.com/repos/chughts/node-red-node-watson/languages","stargazers_url":"https://api.github.com/repos/chughts/node-red-node-watson/stargazers","contributors_url":"https://api.github.com/repos/chughts/node-red-node-watson/contributors","subscribers_url":"https://api.github.com/repos/chughts/node-red-node-watson/subscribers","subscription_url":"https://api.github.com/repos/chughts/node-red-node-watson/subscription","commits_url":"https://api.github.com/repos/chughts/node-red-node-watson/commits{/sha}","git_commits_url":"https://api.github.com/repos/chughts/node-red-node-watson/git/commits{/sha}","comments_url":"https://api.github.com/repos/chughts/node-red-node-watson/comments{/number}","issue_comment_url":"https://api.github.com/repos/chughts/node-red-node-watson/issues/comments{/number}","contents_url":"https://api.github.com/repos/chughts/node-red-node-watson/contents/{+path}","compare_url":"https://api.github.com/repos/chughts/node-red-node-watson/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chughts/node-red-node-watson/merges","archive_url":"https://api.github.com/repos/chughts/node-red-node-watson/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chughts/node-red-node-watson/downloads","issues_url":"https://api.github.com/repos/chughts/node-red-node-watson/issues{/number}","pulls_url":"https://api.github.com/repos/chughts/node-red-node-watson/pulls{/number}","milestones_url":"https://api.github.com/repos/chughts/node-red-node-watson/milestones{/number}","notifications_url":"https://api.github.com/repos/chughts/node-red-node-watson/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chughts/node-red-node-watson/labels{/name}","releases_url":"https://api.github.com/repos/chughts/node-red-node-watson/releases{/id}","deployments_url":"https://api.github.com/repos/chughts/node-red-node-watson/deployments","created_at":"2016-05-05T08:19:28Z","updated_at":"2016-05-14T07:16:53Z","pushed_at":"2016-06-04T09:20:56Z","git_url":"git://github.com/chughts/node-red-node-watson.git","ssh_url":"git@github.com:chughts/node-red-node-watson.git","clone_url":"https://github.com/chughts/node-red-node-watson.git","svn_url":"https://github.com/chughts/node-red-node-watson","homepage":null,"size":7790,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"watson-developer-cloud:master","ref":"master","sha":"c63d7b557bd0d2cf55bc435de70bd7f458af9d7f","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":55415107,"name":"node-red-node-watson","full_name":"watson-developer-cloud/node-red-node-watson","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-red-node-watson","description":"A collection of nodes for the IBM Watson services","fork":true,"url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson","forks_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/forks","keys_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/keys{/key_id}","collaborators_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/teams","hooks_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/hooks","issue_events_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/issues/events{/number}","events_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/events","assignees_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/assignees{/user}","branches_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/branches{/branch}","tags_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/tags","blobs_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/git/refs{/sha}","trees_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/git/trees{/sha}","statuses_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/statuses/{sha}","languages_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/languages","stargazers_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/stargazers","contributors_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/contributors","subscribers_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/subscribers","subscription_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/subscription","commits_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/commits{/sha}","git_commits_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/git/commits{/sha}","comments_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/comments{/number}","issue_comment_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/issues/comments{/number}","contents_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/contents/{+path}","compare_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/compare/{base}...{head}","merges_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/merges","archive_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/downloads","issues_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/issues{/number}","pulls_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/pulls{/number}","milestones_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/milestones{/number}","notifications_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/labels{/name}","releases_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/releases{/id}","deployments_url":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/deployments","created_at":"2016-04-04T13:51:28Z","updated_at":"2016-05-30T13:10:27Z","pushed_at":"2016-06-04T09:20:56Z","git_url":"git://github.com/watson-developer-cloud/node-red-node-watson.git","ssh_url":"git@github.com:watson-developer-cloud/node-red-node-watson.git","clone_url":"https://github.com/watson-developer-cloud/node-red-node-watson.git","svn_url":"https://github.com/watson-developer-cloud/node-red-node-watson","homepage":null,"size":7884,"stargazers_count":8,"watchers_count":8,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":6,"forks":13,"open_issues":6,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/pulls/112"},"html":{"href":"https://github.com/watson-developer-cloud/node-red-node-watson/pull/112"},"issue":{"href":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/issues/112"},"comments":{"href":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/issues/112/comments"},"review_comments":{"href":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/pulls/112/comments"},"review_comment":{"href":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/pulls/112/commits"},"statuses":{"href":"https://api.github.com/repos/watson-developer-cloud/node-red-node-watson/statuses/e67e613487b113e860f441cfb27485fe0cfed222"}}}}
{"actor":{"display_login":"chughts"}}