{"action":"created","comment":{"url":"https://api.github.com/repos/norberteder/trello/pulls/comments/89589416","pull_request_review_id":10134036,"id":89589416,"diff_hunk":"@@ -35,6 +60,33 @@ function makeRequest(fn, uri, options, callback) {\n     }\n }\n \n+Trello.prototype.makeRequest = function (requestMethod, uri, options, callback) {\n+    if (typeof options === 'undefined') {\n+        options = {};\n+    }\n+    if (typeof requestMethod !== 'string') {\n+        throw new TypeError(\"requestMethod should be a string\");\n+    }\n+    if (typeof options !== 'object') {\n+        throw new TypeError(\"options should be an object\");\n+    }\n+\n+    var method = requestMethod.toLowerCase();\n+    var methods = {\n+        'post': rest.post,\n+        'get': rest.get,\n+        'put': rest.put,\n+        'delete': rest.del\n+    };\n+\n+    if (Object.keys(methods).indexOf(method) < 0) {\n+        throw new Error(\"Unsupported requestMethod. Pass one of these methods: POST, GET, PUT, DELETE.\");\n+    }\n+    var keyTokenObj = this.createQuery();\n+    var query = Object.assign(options, keyTokenObj);","path":"main.js","position":null,"original_position":59,"commit_id":"9aa19545877957e981c3f011383e00a2bab719cf","original_commit_id":"84bf58cd8381e43bc2f0fee41f8d94f8e351dccd","user":{"login":"jumasheff","id":3319967,"avatar_url":"https://avatars.githubusercontent.com/u/3319967?v=3","gravatar_id":"","url":"https://api.github.com/users/jumasheff","html_url":"https://github.com/jumasheff","followers_url":"https://api.github.com/users/jumasheff/followers","following_url":"https://api.github.com/users/jumasheff/following{/other_user}","gists_url":"https://api.github.com/users/jumasheff/gists{/gist_id}","starred_url":"https://api.github.com/users/jumasheff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jumasheff/subscriptions","organizations_url":"https://api.github.com/users/jumasheff/orgs","repos_url":"https://api.github.com/users/jumasheff/repos","events_url":"https://api.github.com/users/jumasheff/events{/privacy}","received_events_url":"https://api.github.com/users/jumasheff/received_events","type":"User","site_admin":false},"body":"I missed this comment and pushed. I'll add this to tests.","created_at":"2016-11-25T09:48:51Z","updated_at":"2016-11-25T09:48:51Z","html_url":"https://github.com/norberteder/trello/pull/37#discussion_r89589416","pull_request_url":"https://api.github.com/repos/norberteder/trello/pulls/37","_links":{"self":{"href":"https://api.github.com/repos/norberteder/trello/pulls/comments/89589416"},"html":{"href":"https://github.com/norberteder/trello/pull/37#discussion_r89589416"},"pull_request":{"href":"https://api.github.com/repos/norberteder/trello/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/norberteder/trello/pulls/37","id":95226510,"html_url":"https://github.com/norberteder/trello/pull/37","diff_url":"https://github.com/norberteder/trello/pull/37.diff","patch_url":"https://github.com/norberteder/trello/pull/37.patch","issue_url":"https://api.github.com/repos/norberteder/trello/issues/37","number":37,"state":"open","locked":false,"title":"Public facing makeRequest with validations and tests","user":{"login":"jumasheff","id":3319967,"avatar_url":"https://avatars.githubusercontent.com/u/3319967?v=3","gravatar_id":"","url":"https://api.github.com/users/jumasheff","html_url":"https://github.com/jumasheff","followers_url":"https://api.github.com/users/jumasheff/followers","following_url":"https://api.github.com/users/jumasheff/following{/other_user}","gists_url":"https://api.github.com/users/jumasheff/gists{/gist_id}","starred_url":"https://api.github.com/users/jumasheff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jumasheff/subscriptions","organizations_url":"https://api.github.com/users/jumasheff/orgs","repos_url":"https://api.github.com/users/jumasheff/repos","events_url":"https://api.github.com/users/jumasheff/events{/privacy}","received_events_url":"https://api.github.com/users/jumasheff/received_events","type":"User","site_admin":false},"body":"This PR addresses #36 ","created_at":"2016-11-24T20:46:35Z","updated_at":"2016-11-25T09:48:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eea24ff7475c3ee1e5261089ac74b0586f51f8bc","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/norberteder/trello/pulls/37/commits","review_comments_url":"https://api.github.com/repos/norberteder/trello/pulls/37/comments","review_comment_url":"https://api.github.com/repos/norberteder/trello/pulls/comments{/number}","comments_url":"https://api.github.com/repos/norberteder/trello/issues/37/comments","statuses_url":"https://api.github.com/repos/norberteder/trello/statuses/9aa19545877957e981c3f011383e00a2bab719cf","head":{"label":"jumasheff:master","ref":"master","sha":"9aa19545877957e981c3f011383e00a2bab719cf","user":{"login":"jumasheff","id":3319967,"avatar_url":"https://avatars.githubusercontent.com/u/3319967?v=3","gravatar_id":"","url":"https://api.github.com/users/jumasheff","html_url":"https://github.com/jumasheff","followers_url":"https://api.github.com/users/jumasheff/followers","following_url":"https://api.github.com/users/jumasheff/following{/other_user}","gists_url":"https://api.github.com/users/jumasheff/gists{/gist_id}","starred_url":"https://api.github.com/users/jumasheff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jumasheff/subscriptions","organizations_url":"https://api.github.com/users/jumasheff/orgs","repos_url":"https://api.github.com/users/jumasheff/repos","events_url":"https://api.github.com/users/jumasheff/events{/privacy}","received_events_url":"https://api.github.com/users/jumasheff/received_events","type":"User","site_admin":false},"repo":{"id":74670508,"name":"trello","full_name":"jumasheff/trello","owner":{"login":"jumasheff","id":3319967,"avatar_url":"https://avatars.githubusercontent.com/u/3319967?v=3","gravatar_id":"","url":"https://api.github.com/users/jumasheff","html_url":"https://github.com/jumasheff","followers_url":"https://api.github.com/users/jumasheff/followers","following_url":"https://api.github.com/users/jumasheff/following{/other_user}","gists_url":"https://api.github.com/users/jumasheff/gists{/gist_id}","starred_url":"https://api.github.com/users/jumasheff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jumasheff/subscriptions","organizations_url":"https://api.github.com/users/jumasheff/orgs","repos_url":"https://api.github.com/users/jumasheff/repos","events_url":"https://api.github.com/users/jumasheff/events{/privacy}","received_events_url":"https://api.github.com/users/jumasheff/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jumasheff/trello","description":"Use the Trello API from Node","fork":true,"url":"https://api.github.com/repos/jumasheff/trello","forks_url":"https://api.github.com/repos/jumasheff/trello/forks","keys_url":"https://api.github.com/repos/jumasheff/trello/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jumasheff/trello/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jumasheff/trello/teams","hooks_url":"https://api.github.com/repos/jumasheff/trello/hooks","issue_events_url":"https://api.github.com/repos/jumasheff/trello/issues/events{/number}","events_url":"https://api.github.com/repos/jumasheff/trello/events","assignees_url":"https://api.github.com/repos/jumasheff/trello/assignees{/user}","branches_url":"https://api.github.com/repos/jumasheff/trello/branches{/branch}","tags_url":"https://api.github.com/repos/jumasheff/trello/tags","blobs_url":"https://api.github.com/repos/jumasheff/trello/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jumasheff/trello/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jumasheff/trello/git/refs{/sha}","trees_url":"https://api.github.com/repos/jumasheff/trello/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jumasheff/trello/statuses/{sha}","languages_url":"https://api.github.com/repos/jumasheff/trello/languages","stargazers_url":"https://api.github.com/repos/jumasheff/trello/stargazers","contributors_url":"https://api.github.com/repos/jumasheff/trello/contributors","subscribers_url":"https://api.github.com/repos/jumasheff/trello/subscribers","subscription_url":"https://api.github.com/repos/jumasheff/trello/subscription","commits_url":"https://api.github.com/repos/jumasheff/trello/commits{/sha}","git_commits_url":"https://api.github.com/repos/jumasheff/trello/git/commits{/sha}","comments_url":"https://api.github.com/repos/jumasheff/trello/comments{/number}","issue_comment_url":"https://api.github.com/repos/jumasheff/trello/issues/comments{/number}","contents_url":"https://api.github.com/repos/jumasheff/trello/contents/{+path}","compare_url":"https://api.github.com/repos/jumasheff/trello/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jumasheff/trello/merges","archive_url":"https://api.github.com/repos/jumasheff/trello/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jumasheff/trello/downloads","issues_url":"https://api.github.com/repos/jumasheff/trello/issues{/number}","pulls_url":"https://api.github.com/repos/jumasheff/trello/pulls{/number}","milestones_url":"https://api.github.com/repos/jumasheff/trello/milestones{/number}","notifications_url":"https://api.github.com/repos/jumasheff/trello/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jumasheff/trello/labels{/name}","releases_url":"https://api.github.com/repos/jumasheff/trello/releases{/id}","deployments_url":"https://api.github.com/repos/jumasheff/trello/deployments","created_at":"2016-11-24T12:18:16Z","updated_at":"2016-11-24T12:18:17Z","pushed_at":"2016-11-25T09:41:45Z","git_url":"git://github.com/jumasheff/trello.git","ssh_url":"git@github.com:jumasheff/trello.git","clone_url":"https://github.com/jumasheff/trello.git","svn_url":"https://github.com/jumasheff/trello","homepage":"","size":83,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"norberteder:master","ref":"master","sha":"6ddb56100ad500771d294cd8531a8fb3e94547a6","user":{"login":"norberteder","id":7464907,"avatar_url":"https://avatars.githubusercontent.com/u/7464907?v=3","gravatar_id":"","url":"https://api.github.com/users/norberteder","html_url":"https://github.com/norberteder","followers_url":"https://api.github.com/users/norberteder/followers","following_url":"https://api.github.com/users/norberteder/following{/other_user}","gists_url":"https://api.github.com/users/norberteder/gists{/gist_id}","starred_url":"https://api.github.com/users/norberteder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/norberteder/subscriptions","organizations_url":"https://api.github.com/users/norberteder/orgs","repos_url":"https://api.github.com/users/norberteder/repos","events_url":"https://api.github.com/users/norberteder/events{/privacy}","received_events_url":"https://api.github.com/users/norberteder/received_events","type":"User","site_admin":false},"repo":{"id":3747441,"name":"trello","full_name":"norberteder/trello","owner":{"login":"norberteder","id":7464907,"avatar_url":"https://avatars.githubusercontent.com/u/7464907?v=3","gravatar_id":"","url":"https://api.github.com/users/norberteder","html_url":"https://github.com/norberteder","followers_url":"https://api.github.com/users/norberteder/followers","following_url":"https://api.github.com/users/norberteder/following{/other_user}","gists_url":"https://api.github.com/users/norberteder/gists{/gist_id}","starred_url":"https://api.github.com/users/norberteder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/norberteder/subscriptions","organizations_url":"https://api.github.com/users/norberteder/orgs","repos_url":"https://api.github.com/users/norberteder/repos","events_url":"https://api.github.com/users/norberteder/events{/privacy}","received_events_url":"https://api.github.com/users/norberteder/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/norberteder/trello","description":"Use the Trello API from Node","fork":false,"url":"https://api.github.com/repos/norberteder/trello","forks_url":"https://api.github.com/repos/norberteder/trello/forks","keys_url":"https://api.github.com/repos/norberteder/trello/keys{/key_id}","collaborators_url":"https://api.github.com/repos/norberteder/trello/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/norberteder/trello/teams","hooks_url":"https://api.github.com/repos/norberteder/trello/hooks","issue_events_url":"https://api.github.com/repos/norberteder/trello/issues/events{/number}","events_url":"https://api.github.com/repos/norberteder/trello/events","assignees_url":"https://api.github.com/repos/norberteder/trello/assignees{/user}","branches_url":"https://api.github.com/repos/norberteder/trello/branches{/branch}","tags_url":"https://api.github.com/repos/norberteder/trello/tags","blobs_url":"https://api.github.com/repos/norberteder/trello/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/norberteder/trello/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/norberteder/trello/git/refs{/sha}","trees_url":"https://api.github.com/repos/norberteder/trello/git/trees{/sha}","statuses_url":"https://api.github.com/repos/norberteder/trello/statuses/{sha}","languages_url":"https://api.github.com/repos/norberteder/trello/languages","stargazers_url":"https://api.github.com/repos/norberteder/trello/stargazers","contributors_url":"https://api.github.com/repos/norberteder/trello/contributors","subscribers_url":"https://api.github.com/repos/norberteder/trello/subscribers","subscription_url":"https://api.github.com/repos/norberteder/trello/subscription","commits_url":"https://api.github.com/repos/norberteder/trello/commits{/sha}","git_commits_url":"https://api.github.com/repos/norberteder/trello/git/commits{/sha}","comments_url":"https://api.github.com/repos/norberteder/trello/comments{/number}","issue_comment_url":"https://api.github.com/repos/norberteder/trello/issues/comments{/number}","contents_url":"https://api.github.com/repos/norberteder/trello/contents/{+path}","compare_url":"https://api.github.com/repos/norberteder/trello/compare/{base}...{head}","merges_url":"https://api.github.com/repos/norberteder/trello/merges","archive_url":"https://api.github.com/repos/norberteder/trello/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/norberteder/trello/downloads","issues_url":"https://api.github.com/repos/norberteder/trello/issues{/number}","pulls_url":"https://api.github.com/repos/norberteder/trello/pulls{/number}","milestones_url":"https://api.github.com/repos/norberteder/trello/milestones{/number}","notifications_url":"https://api.github.com/repos/norberteder/trello/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/norberteder/trello/labels{/name}","releases_url":"https://api.github.com/repos/norberteder/trello/releases{/id}","deployments_url":"https://api.github.com/repos/norberteder/trello/deployments","created_at":"2012-03-17T12:20:11Z","updated_at":"2016-11-25T04:07:01Z","pushed_at":"2016-11-25T09:41:46Z","git_url":"git://github.com/norberteder/trello.git","ssh_url":"git@github.com:norberteder/trello.git","clone_url":"https://github.com/norberteder/trello.git","svn_url":"https://github.com/norberteder/trello","homepage":"","size":79,"stargazers_count":63,"watchers_count":63,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":5,"forks":49,"open_issues":5,"watchers":63,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/norberteder/trello/pulls/37"},"html":{"href":"https://github.com/norberteder/trello/pull/37"},"issue":{"href":"https://api.github.com/repos/norberteder/trello/issues/37"},"comments":{"href":"https://api.github.com/repos/norberteder/trello/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/norberteder/trello/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/norberteder/trello/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/norberteder/trello/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/norberteder/trello/statuses/9aa19545877957e981c3f011383e00a2bab719cf"}}}}
{"actor":{"display_login":"jumasheff"}}