{"action":"created","comment":{"url":"https://api.github.com/repos/evercam/evercam-media/pulls/comments/66442475","id":66442475,"diff_hunk":"@@ -116,4 +117,33 @@ defmodule EvercamMedia.Util do\n     |> Calendar.DateTime.from_erl!(\"Etc/UTC\")\n     |> Calendar.DateTime.Format.unix\n   end\n+\n+  def user_at_intercom(user) do\n+    intercomUser = HTTPotion.get \"#{System.get_env[\"INTERCOM_URL\"]}?user_id=#{user.username}\",\n+                    [\n+                      basic_auth: {\"#{System.get_env[\"INTERCOM_ID\"]}\", \"#{System.get_env[\"INTERCOM_KEY\"]}\"},","path":"lib/evercam_media/util.ex","position":16,"original_position":16,"commit_id":"882567a27a4fa48b534fb0eaff52d3dd6eac3857","original_commit_id":"882567a27a4fa48b534fb0eaff52d3dd6eac3857","user":{"login":"mosic","id":1229422,"avatar_url":"https://avatars.githubusercontent.com/u/1229422?v=3","gravatar_id":"","url":"https://api.github.com/users/mosic","html_url":"https://github.com/mosic","followers_url":"https://api.github.com/users/mosic/followers","following_url":"https://api.github.com/users/mosic/following{/other_user}","gists_url":"https://api.github.com/users/mosic/gists{/gist_id}","starred_url":"https://api.github.com/users/mosic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mosic/subscriptions","organizations_url":"https://api.github.com/users/mosic/orgs","repos_url":"https://api.github.com/users/mosic/repos","events_url":"https://api.github.com/users/mosic/events{/privacy}","received_events_url":"https://api.github.com/users/mosic/received_events","type":"User","site_admin":false},"body":"There is no need to put strings into string interpolation.\r\n\r\nThis:\r\n```\r\n{\"#{System.get_env[\"INTERCOM_ID\"]}\", \"#{System.get_env[\"INTERCOM_KEY\"]}\"}\r\n```\r\ncan be written as\r\n\r\n```\r\n{System.get_env[\"INTERCOM_ID\"], System.get_env[\"INTERCOM_KEY\"]}\r\n```","created_at":"2016-06-09T13:44:20Z","updated_at":"2016-06-09T13:44:20Z","html_url":"https://github.com/evercam/evercam-media/pull/250#discussion_r66442475","pull_request_url":"https://api.github.com/repos/evercam/evercam-media/pulls/250","_links":{"self":{"href":"https://api.github.com/repos/evercam/evercam-media/pulls/comments/66442475"},"html":{"href":"https://github.com/evercam/evercam-media/pull/250#discussion_r66442475"},"pull_request":{"href":"https://api.github.com/repos/evercam/evercam-media/pulls/250"}}},"pull_request":{"url":"https://api.github.com/repos/evercam/evercam-media/pulls/250","id":73196417,"html_url":"https://github.com/evercam/evercam-media/pull/250","diff_url":"https://github.com/evercam/evercam-media/pull/250.diff","patch_url":"https://github.com/evercam/evercam-media/pull/250.patch","issue_url":"https://api.github.com/repos/evercam/evercam-media/issues/250","number":250,"state":"open","locked":false,"title":"User end points","user":{"login":"azharmalik3","id":6176136,"avatar_url":"https://avatars.githubusercontent.com/u/6176136?v=3","gravatar_id":"","url":"https://api.github.com/users/azharmalik3","html_url":"https://github.com/azharmalik3","followers_url":"https://api.github.com/users/azharmalik3/followers","following_url":"https://api.github.com/users/azharmalik3/following{/other_user}","gists_url":"https://api.github.com/users/azharmalik3/gists{/gist_id}","starred_url":"https://api.github.com/users/azharmalik3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azharmalik3/subscriptions","organizations_url":"https://api.github.com/users/azharmalik3/orgs","repos_url":"https://api.github.com/users/azharmalik3/repos","events_url":"https://api.github.com/users/azharmalik3/events{/privacy}","received_events_url":"https://api.github.com/users/azharmalik3/received_events","type":"User","site_admin":false},"body":"@mosic ","created_at":"2016-06-09T11:17:28Z","updated_at":"2016-06-09T13:44:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f367ff7c0afe5416daf9fd8fc0103ec0fb2ac53e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/evercam/evercam-media/pulls/250/commits","review_comments_url":"https://api.github.com/repos/evercam/evercam-media/pulls/250/comments","review_comment_url":"https://api.github.com/repos/evercam/evercam-media/pulls/comments{/number}","comments_url":"https://api.github.com/repos/evercam/evercam-media/issues/250/comments","statuses_url":"https://api.github.com/repos/evercam/evercam-media/statuses/882567a27a4fa48b534fb0eaff52d3dd6eac3857","head":{"label":"evercam:user_end_points","ref":"user_end_points","sha":"882567a27a4fa48b534fb0eaff52d3dd6eac3857","user":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"repo":{"id":32446226,"name":"evercam-media","full_name":"evercam/evercam-media","owner":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/evercam/evercam-media","description":"Proxy between Cameras, the API, Storage & Clients.","fork":false,"url":"https://api.github.com/repos/evercam/evercam-media","forks_url":"https://api.github.com/repos/evercam/evercam-media/forks","keys_url":"https://api.github.com/repos/evercam/evercam-media/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evercam/evercam-media/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evercam/evercam-media/teams","hooks_url":"https://api.github.com/repos/evercam/evercam-media/hooks","issue_events_url":"https://api.github.com/repos/evercam/evercam-media/issues/events{/number}","events_url":"https://api.github.com/repos/evercam/evercam-media/events","assignees_url":"https://api.github.com/repos/evercam/evercam-media/assignees{/user}","branches_url":"https://api.github.com/repos/evercam/evercam-media/branches{/branch}","tags_url":"https://api.github.com/repos/evercam/evercam-media/tags","blobs_url":"https://api.github.com/repos/evercam/evercam-media/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evercam/evercam-media/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evercam/evercam-media/git/refs{/sha}","trees_url":"https://api.github.com/repos/evercam/evercam-media/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evercam/evercam-media/statuses/{sha}","languages_url":"https://api.github.com/repos/evercam/evercam-media/languages","stargazers_url":"https://api.github.com/repos/evercam/evercam-media/stargazers","contributors_url":"https://api.github.com/repos/evercam/evercam-media/contributors","subscribers_url":"https://api.github.com/repos/evercam/evercam-media/subscribers","subscription_url":"https://api.github.com/repos/evercam/evercam-media/subscription","commits_url":"https://api.github.com/repos/evercam/evercam-media/commits{/sha}","git_commits_url":"https://api.github.com/repos/evercam/evercam-media/git/commits{/sha}","comments_url":"https://api.github.com/repos/evercam/evercam-media/comments{/number}","issue_comment_url":"https://api.github.com/repos/evercam/evercam-media/issues/comments{/number}","contents_url":"https://api.github.com/repos/evercam/evercam-media/contents/{+path}","compare_url":"https://api.github.com/repos/evercam/evercam-media/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evercam/evercam-media/merges","archive_url":"https://api.github.com/repos/evercam/evercam-media/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evercam/evercam-media/downloads","issues_url":"https://api.github.com/repos/evercam/evercam-media/issues{/number}","pulls_url":"https://api.github.com/repos/evercam/evercam-media/pulls{/number}","milestones_url":"https://api.github.com/repos/evercam/evercam-media/milestones{/number}","notifications_url":"https://api.github.com/repos/evercam/evercam-media/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evercam/evercam-media/labels{/name}","releases_url":"https://api.github.com/repos/evercam/evercam-media/releases{/id}","deployments_url":"https://api.github.com/repos/evercam/evercam-media/deployments","created_at":"2015-03-18T08:16:19Z","updated_at":"2016-06-07T00:35:32Z","pushed_at":"2016-06-09T13:21:42Z","git_url":"git://github.com/evercam/evercam-media.git","ssh_url":"git@github.com:evercam/evercam-media.git","clone_url":"https://github.com/evercam/evercam-media.git","svn_url":"https://github.com/evercam/evercam-media","homepage":"https://media.evercam.io/","size":1340,"stargazers_count":30,"watchers_count":30,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":75,"forks":8,"open_issues":75,"watchers":30,"default_branch":"master"}},"base":{"label":"evercam:master","ref":"master","sha":"b72931fb61f191f6ad1d28594ee0c21f4262e311","user":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"repo":{"id":32446226,"name":"evercam-media","full_name":"evercam/evercam-media","owner":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/evercam/evercam-media","description":"Proxy between Cameras, the API, Storage & Clients.","fork":false,"url":"https://api.github.com/repos/evercam/evercam-media","forks_url":"https://api.github.com/repos/evercam/evercam-media/forks","keys_url":"https://api.github.com/repos/evercam/evercam-media/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evercam/evercam-media/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evercam/evercam-media/teams","hooks_url":"https://api.github.com/repos/evercam/evercam-media/hooks","issue_events_url":"https://api.github.com/repos/evercam/evercam-media/issues/events{/number}","events_url":"https://api.github.com/repos/evercam/evercam-media/events","assignees_url":"https://api.github.com/repos/evercam/evercam-media/assignees{/user}","branches_url":"https://api.github.com/repos/evercam/evercam-media/branches{/branch}","tags_url":"https://api.github.com/repos/evercam/evercam-media/tags","blobs_url":"https://api.github.com/repos/evercam/evercam-media/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evercam/evercam-media/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evercam/evercam-media/git/refs{/sha}","trees_url":"https://api.github.com/repos/evercam/evercam-media/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evercam/evercam-media/statuses/{sha}","languages_url":"https://api.github.com/repos/evercam/evercam-media/languages","stargazers_url":"https://api.github.com/repos/evercam/evercam-media/stargazers","contributors_url":"https://api.github.com/repos/evercam/evercam-media/contributors","subscribers_url":"https://api.github.com/repos/evercam/evercam-media/subscribers","subscription_url":"https://api.github.com/repos/evercam/evercam-media/subscription","commits_url":"https://api.github.com/repos/evercam/evercam-media/commits{/sha}","git_commits_url":"https://api.github.com/repos/evercam/evercam-media/git/commits{/sha}","comments_url":"https://api.github.com/repos/evercam/evercam-media/comments{/number}","issue_comment_url":"https://api.github.com/repos/evercam/evercam-media/issues/comments{/number}","contents_url":"https://api.github.com/repos/evercam/evercam-media/contents/{+path}","compare_url":"https://api.github.com/repos/evercam/evercam-media/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evercam/evercam-media/merges","archive_url":"https://api.github.com/repos/evercam/evercam-media/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evercam/evercam-media/downloads","issues_url":"https://api.github.com/repos/evercam/evercam-media/issues{/number}","pulls_url":"https://api.github.com/repos/evercam/evercam-media/pulls{/number}","milestones_url":"https://api.github.com/repos/evercam/evercam-media/milestones{/number}","notifications_url":"https://api.github.com/repos/evercam/evercam-media/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evercam/evercam-media/labels{/name}","releases_url":"https://api.github.com/repos/evercam/evercam-media/releases{/id}","deployments_url":"https://api.github.com/repos/evercam/evercam-media/deployments","created_at":"2015-03-18T08:16:19Z","updated_at":"2016-06-07T00:35:32Z","pushed_at":"2016-06-09T13:21:42Z","git_url":"git://github.com/evercam/evercam-media.git","ssh_url":"git@github.com:evercam/evercam-media.git","clone_url":"https://github.com/evercam/evercam-media.git","svn_url":"https://github.com/evercam/evercam-media","homepage":"https://media.evercam.io/","size":1340,"stargazers_count":30,"watchers_count":30,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":75,"forks":8,"open_issues":75,"watchers":30,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/evercam/evercam-media/pulls/250"},"html":{"href":"https://github.com/evercam/evercam-media/pull/250"},"issue":{"href":"https://api.github.com/repos/evercam/evercam-media/issues/250"},"comments":{"href":"https://api.github.com/repos/evercam/evercam-media/issues/250/comments"},"review_comments":{"href":"https://api.github.com/repos/evercam/evercam-media/pulls/250/comments"},"review_comment":{"href":"https://api.github.com/repos/evercam/evercam-media/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/evercam/evercam-media/pulls/250/commits"},"statuses":{"href":"https://api.github.com/repos/evercam/evercam-media/statuses/882567a27a4fa48b534fb0eaff52d3dd6eac3857"}}}}
{"actor":{"display_login":"mosic"}}