GitHub PullRequestReviewCommentEvent at 2014-08-03 09:05:16
Repository: interviews
Actor: doodyparizada
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/rounds/interviews/pulls/comments/15733623","id":15733623,"diff_hunk":"@@ -0,0 +1,46 @@\n+//\r\n+// A class for infrastructure and other utility functions\r\n+//\r\n+\r\n+package utils_amib\r\n+\r\n+import (\r\n+\t\"fmt\"\r\n+\t\"bytes\"\r\n+\t\"io/ioutil\"\r\n+\t\"net/http\"\r\n+)\r\n+\r\n+//Logging\r\n+var DEBUG_PRINTS = false\r\n+\r\n+//This function POSTs the given JSON encoded byte array to the given url using basic authentication\r\n+//it returns the HTTP respone's status\r\n+func SendAuthJSONRequest(url string, jsonBytes []byte, accountSid string, authToken string) (string, error){\r\n+\r\n+ if DEBUG_PRINTS == true {\r\n+    fmt.Println(\"URL:>\", url)\r\n+    s := string(jsonBytes)\r\n+    fmt.Println(\"JSON Payload:\", s)\r\n+ }\r\n+    \r\n+    req, err := http.NewRequest(\"POST\", url, bytes.NewBuffer(jsonBytes))\r\n+    \r\n+    req.Header.Set(\"Content-Type\", \"application/json\")\r\n+    req.Header.Add(\"Content-Type\", \"application/x-www-form-urlencoded\")\r","path":"amib/src/utils_amib/utils_amib.go","position":30,"original_position":30,"commit_id":"60ef7d7c5252c3f8aa2c2012d097f1faa43528e9","original_commit_id":"60ef7d7c5252c3f8aa2c2012d097f1faa43528e9","user":{"login":"doodyparizada","id":965572,"avatar_url":"https://avatars.githubusercontent.com/u/965572?v=1","gravatar_id":"1b6a66e5c9d45efe58ead78f1c55b4d5","url":"https://api.github.com/users/doodyparizada","html_url":"https://github.com/doodyparizada","followers_url":"https://api.github.com/users/doodyparizada/followers","following_url":"https://api.github.com/users/doodyparizada/following{/other_user}","gists_url":"https://api.github.com/users/doodyparizada/gists{/gist_id}","starred_url":"https://api.github.com/users/doodyparizada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doodyparizada/subscriptions","organizations_url":"https://api.github.com/users/doodyparizada/orgs","repos_url":"https://api.github.com/users/doodyparizada/repos","events_url":"https://api.github.com/users/doodyparizada/events{/privacy}","received_events_url":"https://api.github.com/users/doodyparizada/received_events","type":"User","site_admin":false},"body":"I'm pretty sure you just need one content-type which in this case would be json.","created_at":"2014-08-03T09:05:16Z","updated_at":"2014-08-03T09:05:16Z","html_url":"https://github.com/rounds/interviews/pull/1#discussion_r15733623","pull_request_url":"https://api.github.com/repos/rounds/interviews/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/rounds/interviews/pulls/comments/15733623"},"html":{"href":"https://github.com/rounds/interviews/pull/1#discussion_r15733623"},"pull_request":{"href":"https://api.github.com/repos/rounds/interviews/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/rounds/interviews/pulls/1","id":19253129,"html_url":"https://github.com/rounds/interviews/pull/1","diff_url":"https://github.com/rounds/interviews/pull/1.diff","patch_url":"https://github.com/rounds/interviews/pull/1.patch","issue_url":"https://api.github.com/repos/rounds/interviews/issues/1","number":1,"state":"open","title":"added ami's code","user":{"login":"doodyparizada","id":965572,"avatar_url":"https://avatars.githubusercontent.com/u/965572?v=1","gravatar_id":"1b6a66e5c9d45efe58ead78f1c55b4d5","url":"https://api.github.com/users/doodyparizada","html_url":"https://github.com/doodyparizada","followers_url":"https://api.github.com/users/doodyparizada/followers","following_url":"https://api.github.com/users/doodyparizada/following{/other_user}","gists_url":"https://api.github.com/users/doodyparizada/gists{/gist_id}","starred_url":"https://api.github.com/users/doodyparizada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doodyparizada/subscriptions","organizations_url":"https://api.github.com/users/doodyparizada/orgs","repos_url":"https://api.github.com/users/doodyparizada/repos","events_url":"https://api.github.com/users/doodyparizada/events{/privacy}","received_events_url":"https://api.github.com/users/doodyparizada/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-08-03T06:49:31Z","updated_at":"2014-08-03T09:05:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e6649a8f8893cfd99b63eb4464c0ee38f0272c8b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rounds/interviews/pulls/1/commits","review_comments_url":"https://api.github.com/repos/rounds/interviews/pulls/1/comments","review_comment_url":"https://api.github.com/repos/rounds/interviews/pulls/comments/{number}","comments_url":"https://api.github.com/repos/rounds/interviews/issues/1/comments","statuses_url":"https://api.github.com/repos/rounds/interviews/statuses/60ef7d7c5252c3f8aa2c2012d097f1faa43528e9","head":{"label":"rounds:amib","ref":"amib","sha":"60ef7d7c5252c3f8aa2c2012d097f1faa43528e9","user":{"login":"rounds","id":3406523,"avatar_url":"https://avatars.githubusercontent.com/u/3406523?v=1","gravatar_id":"f945933ddd6bd09292d24d5102e5ec99","url":"https://api.github.com/users/rounds","html_url":"https://github.com/rounds","followers_url":"https://api.github.com/users/rounds/followers","following_url":"https://api.github.com/users/rounds/following{/other_user}","gists_url":"https://api.github.com/users/rounds/gists{/gist_id}","starred_url":"https://api.github.com/users/rounds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rounds/subscriptions","organizations_url":"https://api.github.com/users/rounds/orgs","repos_url":"https://api.github.com/users/rounds/repos","events_url":"https://api.github.com/users/rounds/events{/privacy}","received_events_url":"https://api.github.com/users/rounds/received_events","type":"Organization","site_admin":false},"repo":{"id":22569607,"name":"interviews","full_name":"rounds/interviews","owner":{"login":"rounds","id":3406523,"avatar_url":"https://avatars.githubusercontent.com/u/3406523?v=1","gravatar_id":"f945933ddd6bd09292d24d5102e5ec99","url":"https://api.github.com/users/rounds","html_url":"https://github.com/rounds","followers_url":"https://api.github.com/users/rounds/followers","following_url":"https://api.github.com/users/rounds/following{/other_user}","gists_url":"https://api.github.com/users/rounds/gists{/gist_id}","starred_url":"https://api.github.com/users/rounds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rounds/subscriptions","organizations_url":"https://api.github.com/users/rounds/orgs","repos_url":"https://api.github.com/users/rounds/repos","events_url":"https://api.github.com/users/rounds/events{/privacy}","received_events_url":"https://api.github.com/users/rounds/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rounds/interviews","description":"","fork":false,"url":"https://api.github.com/repos/rounds/interviews","forks_url":"https://api.github.com/repos/rounds/interviews/forks","keys_url":"https://api.github.com/repos/rounds/interviews/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rounds/interviews/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rounds/interviews/teams","hooks_url":"https://api.github.com/repos/rounds/interviews/hooks","issue_events_url":"https://api.github.com/repos/rounds/interviews/issues/events{/number}","events_url":"https://api.github.com/repos/rounds/interviews/events","assignees_url":"https://api.github.com/repos/rounds/interviews/assignees{/user}","branches_url":"https://api.github.com/repos/rounds/interviews/branches{/branch}","tags_url":"https://api.github.com/repos/rounds/interviews/tags","blobs_url":"https://api.github.com/repos/rounds/interviews/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rounds/interviews/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rounds/interviews/git/refs{/sha}","trees_url":"https://api.github.com/repos/rounds/interviews/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rounds/interviews/statuses/{sha}","languages_url":"https://api.github.com/repos/rounds/interviews/languages","stargazers_url":"https://api.github.com/repos/rounds/interviews/stargazers","contributors_url":"https://api.github.com/repos/rounds/interviews/contributors","subscribers_url":"https://api.github.com/repos/rounds/interviews/subscribers","subscription_url":"https://api.github.com/repos/rounds/interviews/subscription","commits_url":"https://api.github.com/repos/rounds/interviews/commits{/sha}","git_commits_url":"https://api.github.com/repos/rounds/interviews/git/commits{/sha}","comments_url":"https://api.github.com/repos/rounds/interviews/comments{/number}","issue_comment_url":"https://api.github.com/repos/rounds/interviews/issues/comments/{number}","contents_url":"https://api.github.com/repos/rounds/interviews/contents/{+path}","compare_url":"https://api.github.com/repos/rounds/interviews/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rounds/interviews/merges","archive_url":"https://api.github.com/repos/rounds/interviews/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rounds/interviews/downloads","issues_url":"https://api.github.com/repos/rounds/interviews/issues{/number}","pulls_url":"https://api.github.com/repos/rounds/interviews/pulls{/number}","milestones_url":"https://api.github.com/repos/rounds/interviews/milestones{/number}","notifications_url":"https://api.github.com/repos/rounds/interviews/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rounds/interviews/labels{/name}","releases_url":"https://api.github.com/repos/rounds/interviews/releases{/id}","created_at":"2014-08-03T06:40:55Z","updated_at":"2014-08-03T06:40:55Z","pushed_at":"2014-08-03T06:47:30Z","git_url":"git://github.com/rounds/interviews.git","ssh_url":"git@github.com:rounds/interviews.git","clone_url":"https://github.com/rounds/interviews.git","svn_url":"https://github.com/rounds/interviews","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"rounds:master","ref":"master","sha":"954dfd4f57c622e0998295f79b304051ee783c1b","user":{"login":"rounds","id":3406523,"avatar_url":"https://avatars.githubusercontent.com/u/3406523?v=1","gravatar_id":"f945933ddd6bd09292d24d5102e5ec99","url":"https://api.github.com/users/rounds","html_url":"https://github.com/rounds","followers_url":"https://api.github.com/users/rounds/followers","following_url":"https://api.github.com/users/rounds/following{/other_user}","gists_url":"https://api.github.com/users/rounds/gists{/gist_id}","starred_url":"https://api.github.com/users/rounds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rounds/subscriptions","organizations_url":"https://api.github.com/users/rounds/orgs","repos_url":"https://api.github.com/users/rounds/repos","events_url":"https://api.github.com/users/rounds/events{/privacy}","received_events_url":"https://api.github.com/users/rounds/received_events","type":"Organization","site_admin":false},"repo":{"id":22569607,"name":"interviews","full_name":"rounds/interviews","owner":{"login":"rounds","id":3406523,"avatar_url":"https://avatars.githubusercontent.com/u/3406523?v=1","gravatar_id":"f945933ddd6bd09292d24d5102e5ec99","url":"https://api.github.com/users/rounds","html_url":"https://github.com/rounds","followers_url":"https://api.github.com/users/rounds/followers","following_url":"https://api.github.com/users/rounds/following{/other_user}","gists_url":"https://api.github.com/users/rounds/gists{/gist_id}","starred_url":"https://api.github.com/users/rounds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rounds/subscriptions","organizations_url":"https://api.github.com/users/rounds/orgs","repos_url":"https://api.github.com/users/rounds/repos","events_url":"https://api.github.com/users/rounds/events{/privacy}","received_events_url":"https://api.github.com/users/rounds/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rounds/interviews","description":"","fork":false,"url":"https://api.github.com/repos/rounds/interviews","forks_url":"https://api.github.com/repos/rounds/interviews/forks","keys_url":"https://api.github.com/repos/rounds/interviews/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rounds/interviews/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rounds/interviews/teams","hooks_url":"https://api.github.com/repos/rounds/interviews/hooks","issue_events_url":"https://api.github.com/repos/rounds/interviews/issues/events{/number}","events_url":"https://api.github.com/repos/rounds/interviews/events","assignees_url":"https://api.github.com/repos/rounds/interviews/assignees{/user}","branches_url":"https://api.github.com/repos/rounds/interviews/branches{/branch}","tags_url":"https://api.github.com/repos/rounds/interviews/tags","blobs_url":"https://api.github.com/repos/rounds/interviews/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rounds/interviews/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rounds/interviews/git/refs{/sha}","trees_url":"https://api.github.com/repos/rounds/interviews/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rounds/interviews/statuses/{sha}","languages_url":"https://api.github.com/repos/rounds/interviews/languages","stargazers_url":"https://api.github.com/repos/rounds/interviews/stargazers","contributors_url":"https://api.github.com/repos/rounds/interviews/contributors","subscribers_url":"https://api.github.com/repos/rounds/interviews/subscribers","subscription_url":"https://api.github.com/repos/rounds/interviews/subscription","commits_url":"https://api.github.com/repos/rounds/interviews/commits{/sha}","git_commits_url":"https://api.github.com/repos/rounds/interviews/git/commits{/sha}","comments_url":"https://api.github.com/repos/rounds/interviews/comments{/number}","issue_comment_url":"https://api.github.com/repos/rounds/interviews/issues/comments/{number}","contents_url":"https://api.github.com/repos/rounds/interviews/contents/{+path}","compare_url":"https://api.github.com/repos/rounds/interviews/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rounds/interviews/merges","archive_url":"https://api.github.com/repos/rounds/interviews/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rounds/interviews/downloads","issues_url":"https://api.github.com/repos/rounds/interviews/issues{/number}","pulls_url":"https://api.github.com/repos/rounds/interviews/pulls{/number}","milestones_url":"https://api.github.com/repos/rounds/interviews/milestones{/number}","notifications_url":"https://api.github.com/repos/rounds/interviews/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rounds/interviews/labels{/name}","releases_url":"https://api.github.com/repos/rounds/interviews/releases{/id}","created_at":"2014-08-03T06:40:55Z","updated_at":"2014-08-03T06:40:55Z","pushed_at":"2014-08-03T06:47:30Z","git_url":"git://github.com/rounds/interviews.git","ssh_url":"git@github.com:rounds/interviews.git","clone_url":"https://github.com/rounds/interviews.git","svn_url":"https://github.com/rounds/interviews","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rounds/interviews/pulls/1"},"html":{"href":"https://github.com/rounds/interviews/pull/1"},"issue":{"href":"https://api.github.com/repos/rounds/interviews/issues/1"},"comments":{"href":"https://api.github.com/repos/rounds/interviews/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/rounds/interviews/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/rounds/interviews/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/rounds/interviews/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/rounds/interviews/statuses/60ef7d7c5252c3f8aa2c2012d097f1faa43528e9"}}}}