{"action":"created","comment":{"url":"https://api.github.com/repos/workato/connector_sdk/pulls/comments/146614036","pull_request_review_id":71581257,"id":146614036,"diff_hunk":"@@ -0,0 +1,159 @@\n+{\n+  title: \"BaseCRM\",\n+\n+  connection: {\n+    fields: [\n+      {\n+        name: \"api_key\",\n+        control_type: \"password\",\n+        optional: false,\n+        label: \"API key\"\n+      }\n+    ],\n+    authorization: {\n+      type: \"api_key\",\n+\n+      credentials: lambda do |connection|\n+        headers(\"Authorization\": \"Bearer \" + connection[\"api_key\"])\n+      end\n+    }\n+  },\n+\n+  object_definitions: {\n+    lead: {\n+      fields: lambda do\n+        [\n+          { name: \"id\", type: :integer, label: \"Lead id\",\n+            control_type: :number },\n+          { name: \"creator_id\", type: :integer, label: \"Created by(User ID)\",\n+            control_type: :number },\n+          { name: \"owner_id\", type: :integer, label: \"Owner id\",\n+            control_type: :number },\n+          { name: \"first_name\" },\n+          { name: \"last_name\",\n+          \thint: \"Required only if a lead is an individual. \"\\\n+          \t\"<code>company_name</code> is empty.\" },\n+          { name: \"organization_name\",\n+          \thint: \"Required only if a lead is an organization. \"\\\n+          \t\"<code>last_name</code> is empty.\" },","path":"api_key_auth/base.rb","position":38,"original_position":38,"commit_id":"72dee7d93fee43408a47a39408b89a2ed89e5217","original_commit_id":"72dee7d93fee43408a47a39408b89a2ed89e5217","user":{"login":"Brendon395","id":29088705,"avatar_url":"https://avatars1.githubusercontent.com/u/29088705?v=4","gravatar_id":"","url":"https://api.github.com/users/Brendon395","html_url":"https://github.com/Brendon395","followers_url":"https://api.github.com/users/Brendon395/followers","following_url":"https://api.github.com/users/Brendon395/following{/other_user}","gists_url":"https://api.github.com/users/Brendon395/gists{/gist_id}","starred_url":"https://api.github.com/users/Brendon395/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Brendon395/subscriptions","organizations_url":"https://api.github.com/users/Brendon395/orgs","repos_url":"https://api.github.com/users/Brendon395/repos","events_url":"https://api.github.com/users/Brendon395/events{/privacy}","received_events_url":"https://api.github.com/users/Brendon395/received_events","type":"User","site_admin":false},"body":"Last name should be left empty.","created_at":"2017-10-24T16:15:08Z","updated_at":"2017-10-24T16:15:08Z","html_url":"https://github.com/workato/connector_sdk/pull/91#discussion_r146614036","pull_request_url":"https://api.github.com/repos/workato/connector_sdk/pulls/91","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/workato/connector_sdk/pulls/comments/146614036"},"html":{"href":"https://github.com/workato/connector_sdk/pull/91#discussion_r146614036"},"pull_request":{"href":"https://api.github.com/repos/workato/connector_sdk/pulls/91"}}},"pull_request":{"url":"https://api.github.com/repos/workato/connector_sdk/pulls/91","id":141576057,"html_url":"https://github.com/workato/connector_sdk/pull/91","diff_url":"https://github.com/workato/connector_sdk/pull/91.diff","patch_url":"https://github.com/workato/connector_sdk/pull/91.patch","issue_url":"https://api.github.com/repos/workato/connector_sdk/issues/91","number":91,"state":"open","locked":false,"title":"Base CRM Adapter ","user":{"login":"svchandra","id":22195459,"avatar_url":"https://avatars2.githubusercontent.com/u/22195459?v=4","gravatar_id":"","url":"https://api.github.com/users/svchandra","html_url":"https://github.com/svchandra","followers_url":"https://api.github.com/users/svchandra/followers","following_url":"https://api.github.com/users/svchandra/following{/other_user}","gists_url":"https://api.github.com/users/svchandra/gists{/gist_id}","starred_url":"https://api.github.com/users/svchandra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svchandra/subscriptions","organizations_url":"https://api.github.com/users/svchandra/orgs","repos_url":"https://api.github.com/users/svchandra/repos","events_url":"https://api.github.com/users/svchandra/events{/privacy}","received_events_url":"https://api.github.com/users/svchandra/received_events","type":"User","site_admin":false},"body":"Submitted for Review.","created_at":"2017-09-18T11:14:22Z","updated_at":"2017-10-24T16:15:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"596d53f673b9870dbe190b76a50316228ba1669f","assignee":{"login":"svchandra","id":22195459,"avatar_url":"https://avatars2.githubusercontent.com/u/22195459?v=4","gravatar_id":"","url":"https://api.github.com/users/svchandra","html_url":"https://github.com/svchandra","followers_url":"https://api.github.com/users/svchandra/followers","following_url":"https://api.github.com/users/svchandra/following{/other_user}","gists_url":"https://api.github.com/users/svchandra/gists{/gist_id}","starred_url":"https://api.github.com/users/svchandra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svchandra/subscriptions","organizations_url":"https://api.github.com/users/svchandra/orgs","repos_url":"https://api.github.com/users/svchandra/repos","events_url":"https://api.github.com/users/svchandra/events{/privacy}","received_events_url":"https://api.github.com/users/svchandra/received_events","type":"User","site_admin":false},"assignees":[{"login":"svchandra","id":22195459,"avatar_url":"https://avatars2.githubusercontent.com/u/22195459?v=4","gravatar_id":"","url":"https://api.github.com/users/svchandra","html_url":"https://github.com/svchandra","followers_url":"https://api.github.com/users/svchandra/followers","following_url":"https://api.github.com/users/svchandra/following{/other_user}","gists_url":"https://api.github.com/users/svchandra/gists{/gist_id}","starred_url":"https://api.github.com/users/svchandra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svchandra/subscriptions","organizations_url":"https://api.github.com/users/svchandra/orgs","repos_url":"https://api.github.com/users/svchandra/repos","events_url":"https://api.github.com/users/svchandra/events{/privacy}","received_events_url":"https://api.github.com/users/svchandra/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/workato/connector_sdk/pulls/91/commits","review_comments_url":"https://api.github.com/repos/workato/connector_sdk/pulls/91/comments","review_comment_url":"https://api.github.com/repos/workato/connector_sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/workato/connector_sdk/issues/91/comments","statuses_url":"https://api.github.com/repos/workato/connector_sdk/statuses/72dee7d93fee43408a47a39408b89a2ed89e5217","head":{"label":"workato:svchandra-patch-3","ref":"svchandra-patch-3","sha":"72dee7d93fee43408a47a39408b89a2ed89e5217","user":{"login":"workato","id":5629924,"avatar_url":"https://avatars3.githubusercontent.com/u/5629924?v=4","gravatar_id":"","url":"https://api.github.com/users/workato","html_url":"https://github.com/workato","followers_url":"https://api.github.com/users/workato/followers","following_url":"https://api.github.com/users/workato/following{/other_user}","gists_url":"https://api.github.com/users/workato/gists{/gist_id}","starred_url":"https://api.github.com/users/workato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/workato/subscriptions","organizations_url":"https://api.github.com/users/workato/orgs","repos_url":"https://api.github.com/users/workato/repos","events_url":"https://api.github.com/users/workato/events{/privacy}","received_events_url":"https://api.github.com/users/workato/received_events","type":"Organization","site_admin":false},"repo":{"id":54221993,"name":"connector_sdk","full_name":"workato/connector_sdk","owner":{"login":"workato","id":5629924,"avatar_url":"https://avatars3.githubusercontent.com/u/5629924?v=4","gravatar_id":"","url":"https://api.github.com/users/workato","html_url":"https://github.com/workato","followers_url":"https://api.github.com/users/workato/followers","following_url":"https://api.github.com/users/workato/following{/other_user}","gists_url":"https://api.github.com/users/workato/gists{/gist_id}","starred_url":"https://api.github.com/users/workato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/workato/subscriptions","organizations_url":"https://api.github.com/users/workato/orgs","repos_url":"https://api.github.com/users/workato/repos","events_url":"https://api.github.com/users/workato/events{/privacy}","received_events_url":"https://api.github.com/users/workato/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/workato/connector_sdk","description":"Connector SDK samples and documentation","fork":false,"url":"https://api.github.com/repos/workato/connector_sdk","forks_url":"https://api.github.com/repos/workato/connector_sdk/forks","keys_url":"https://api.github.com/repos/workato/connector_sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/workato/connector_sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/workato/connector_sdk/teams","hooks_url":"https://api.github.com/repos/workato/connector_sdk/hooks","issue_events_url":"https://api.github.com/repos/workato/connector_sdk/issues/events{/number}","events_url":"https://api.github.com/repos/workato/connector_sdk/events","assignees_url":"https://api.github.com/repos/workato/connector_sdk/assignees{/user}","branches_url":"https://api.github.com/repos/workato/connector_sdk/branches{/branch}","tags_url":"https://api.github.com/repos/workato/connector_sdk/tags","blobs_url":"https://api.github.com/repos/workato/connector_sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/workato/connector_sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/workato/connector_sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/workato/connector_sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/workato/connector_sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/workato/connector_sdk/languages","stargazers_url":"https://api.github.com/repos/workato/connector_sdk/stargazers","contributors_url":"https://api.github.com/repos/workato/connector_sdk/contributors","subscribers_url":"https://api.github.com/repos/workato/connector_sdk/subscribers","subscription_url":"https://api.github.com/repos/workato/connector_sdk/subscription","commits_url":"https://api.github.com/repos/workato/connector_sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/workato/connector_sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/workato/connector_sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/workato/connector_sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/workato/connector_sdk/contents/{+path}","compare_url":"https://api.github.com/repos/workato/connector_sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/workato/connector_sdk/merges","archive_url":"https://api.github.com/repos/workato/connector_sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/workato/connector_sdk/downloads","issues_url":"https://api.github.com/repos/workato/connector_sdk/issues{/number}","pulls_url":"https://api.github.com/repos/workato/connector_sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/workato/connector_sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/workato/connector_sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/workato/connector_sdk/labels{/name}","releases_url":"https://api.github.com/repos/workato/connector_sdk/releases{/id}","deployments_url":"https://api.github.com/repos/workato/connector_sdk/deployments","created_at":"2016-03-18T18:08:56Z","updated_at":"2017-09-27T22:41:42Z","pushed_at":"2017-10-24T08:55:46Z","git_url":"git://github.com/workato/connector_sdk.git","ssh_url":"git@github.com:workato/connector_sdk.git","clone_url":"https://github.com/workato/connector_sdk.git","svn_url":"https://github.com/workato/connector_sdk","homepage":"","size":1636,"stargazers_count":11,"watchers_count":11,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":26,"mirror_url":null,"archived":false,"open_issues_count":36,"forks":26,"open_issues":36,"watchers":11,"default_branch":"master"}},"base":{"label":"workato:master","ref":"master","sha":"aba4967ad517e0f8f9d3bd0eca01dd392c1e6fce","user":{"login":"workato","id":5629924,"avatar_url":"https://avatars3.githubusercontent.com/u/5629924?v=4","gravatar_id":"","url":"https://api.github.com/users/workato","html_url":"https://github.com/workato","followers_url":"https://api.github.com/users/workato/followers","following_url":"https://api.github.com/users/workato/following{/other_user}","gists_url":"https://api.github.com/users/workato/gists{/gist_id}","starred_url":"https://api.github.com/users/workato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/workato/subscriptions","organizations_url":"https://api.github.com/users/workato/orgs","repos_url":"https://api.github.com/users/workato/repos","events_url":"https://api.github.com/users/workato/events{/privacy}","received_events_url":"https://api.github.com/users/workato/received_events","type":"Organization","site_admin":false},"repo":{"id":54221993,"name":"connector_sdk","full_name":"workato/connector_sdk","owner":{"login":"workato","id":5629924,"avatar_url":"https://avatars3.githubusercontent.com/u/5629924?v=4","gravatar_id":"","url":"https://api.github.com/users/workato","html_url":"https://github.com/workato","followers_url":"https://api.github.com/users/workato/followers","following_url":"https://api.github.com/users/workato/following{/other_user}","gists_url":"https://api.github.com/users/workato/gists{/gist_id}","starred_url":"https://api.github.com/users/workato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/workato/subscriptions","organizations_url":"https://api.github.com/users/workato/orgs","repos_url":"https://api.github.com/users/workato/repos","events_url":"https://api.github.com/users/workato/events{/privacy}","received_events_url":"https://api.github.com/users/workato/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/workato/connector_sdk","description":"Connector SDK samples and documentation","fork":false,"url":"https://api.github.com/repos/workato/connector_sdk","forks_url":"https://api.github.com/repos/workato/connector_sdk/forks","keys_url":"https://api.github.com/repos/workato/connector_sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/workato/connector_sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/workato/connector_sdk/teams","hooks_url":"https://api.github.com/repos/workato/connector_sdk/hooks","issue_events_url":"https://api.github.com/repos/workato/connector_sdk/issues/events{/number}","events_url":"https://api.github.com/repos/workato/connector_sdk/events","assignees_url":"https://api.github.com/repos/workato/connector_sdk/assignees{/user}","branches_url":"https://api.github.com/repos/workato/connector_sdk/branches{/branch}","tags_url":"https://api.github.com/repos/workato/connector_sdk/tags","blobs_url":"https://api.github.com/repos/workato/connector_sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/workato/connector_sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/workato/connector_sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/workato/connector_sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/workato/connector_sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/workato/connector_sdk/languages","stargazers_url":"https://api.github.com/repos/workato/connector_sdk/stargazers","contributors_url":"https://api.github.com/repos/workato/connector_sdk/contributors","subscribers_url":"https://api.github.com/repos/workato/connector_sdk/subscribers","subscription_url":"https://api.github.com/repos/workato/connector_sdk/subscription","commits_url":"https://api.github.com/repos/workato/connector_sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/workato/connector_sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/workato/connector_sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/workato/connector_sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/workato/connector_sdk/contents/{+path}","compare_url":"https://api.github.com/repos/workato/connector_sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/workato/connector_sdk/merges","archive_url":"https://api.github.com/repos/workato/connector_sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/workato/connector_sdk/downloads","issues_url":"https://api.github.com/repos/workato/connector_sdk/issues{/number}","pulls_url":"https://api.github.com/repos/workato/connector_sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/workato/connector_sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/workato/connector_sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/workato/connector_sdk/labels{/name}","releases_url":"https://api.github.com/repos/workato/connector_sdk/releases{/id}","deployments_url":"https://api.github.com/repos/workato/connector_sdk/deployments","created_at":"2016-03-18T18:08:56Z","updated_at":"2017-09-27T22:41:42Z","pushed_at":"2017-10-24T08:55:46Z","git_url":"git://github.com/workato/connector_sdk.git","ssh_url":"git@github.com:workato/connector_sdk.git","clone_url":"https://github.com/workato/connector_sdk.git","svn_url":"https://github.com/workato/connector_sdk","homepage":"","size":1636,"stargazers_count":11,"watchers_count":11,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":26,"mirror_url":null,"archived":false,"open_issues_count":36,"forks":26,"open_issues":36,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/workato/connector_sdk/pulls/91"},"html":{"href":"https://github.com/workato/connector_sdk/pull/91"},"issue":{"href":"https://api.github.com/repos/workato/connector_sdk/issues/91"},"comments":{"href":"https://api.github.com/repos/workato/connector_sdk/issues/91/comments"},"review_comments":{"href":"https://api.github.com/repos/workato/connector_sdk/pulls/91/comments"},"review_comment":{"href":"https://api.github.com/repos/workato/connector_sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/workato/connector_sdk/pulls/91/commits"},"statuses":{"href":"https://api.github.com/repos/workato/connector_sdk/statuses/72dee7d93fee43408a47a39408b89a2ed89e5217"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Brendon395"}}