{"action":"created","comment":{"url":"https://api.github.com/repos/MarcoCode/fairMuse/pulls/comments/57868747","id":57868747,"diff_hunk":"@@ -2,4 +2,27 @@\n \n   fairMuse.controller('UserCtrl', function ($http) {\n     $http.get('http://localhost:3000/users');\n-  });\n+    var self = this;\n+\n+    self.pay = function(){\n+      $http.post('http://localhost:3000/api/payment', {user_id: localStorage.getItem('user_id') })\n+    }\n+\n+    self.displayStreamDetails = function(){\n+          var promise = self.getStreamDetails();\n+          promise.then(success, error);\n+        };\n+\n+    self.getStreamDetails = function(){\n+      return $http.post('http://localhost:3000/api/streaminfo', {user_id: localStorage.getItem('user_id')})\n+  };\n+\n+  var success = function(response){\n+    console.log(response.data);","path":"front-end/app/scripts/controllers/user.js","position":21,"original_position":21,"commit_id":"fb470ffa1d297ee710d536b86601bd9c64872711","original_commit_id":"fb470ffa1d297ee710d536b86601bd9c64872711","user":{"login":"MarcoCode","id":15351248,"avatar_url":"https://avatars.githubusercontent.com/u/15351248?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcoCode","html_url":"https://github.com/MarcoCode","followers_url":"https://api.github.com/users/MarcoCode/followers","following_url":"https://api.github.com/users/MarcoCode/following{/other_user}","gists_url":"https://api.github.com/users/MarcoCode/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcoCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcoCode/subscriptions","organizations_url":"https://api.github.com/users/MarcoCode/orgs","repos_url":"https://api.github.com/users/MarcoCode/repos","events_url":"https://api.github.com/users/MarcoCode/events{/privacy}","received_events_url":"https://api.github.com/users/MarcoCode/received_events","type":"User","site_admin":false},"body":"remove console.log","created_at":"2016-03-30T10:43:43Z","updated_at":"2016-03-30T10:43:43Z","html_url":"https://github.com/MarcoCode/fairMuse/pull/22#discussion_r57868747","pull_request_url":"https://api.github.com/repos/MarcoCode/fairMuse/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/MarcoCode/fairMuse/pulls/comments/57868747"},"html":{"href":"https://github.com/MarcoCode/fairMuse/pull/22#discussion_r57868747"},"pull_request":{"href":"https://api.github.com/repos/MarcoCode/fairMuse/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/MarcoCode/fairMuse/pulls/22","id":64596227,"html_url":"https://github.com/MarcoCode/fairMuse/pull/22","diff_url":"https://github.com/MarcoCode/fairMuse/pull/22.diff","patch_url":"https://github.com/MarcoCode/fairMuse/pull/22.patch","issue_url":"https://api.github.com/repos/MarcoCode/fairMuse/issues/22","number":22,"state":"open","locked":false,"title":"5 pay money to the artist","user":{"login":"markcmhill","id":13164639,"avatar_url":"https://avatars.githubusercontent.com/u/13164639?v=3","gravatar_id":"","url":"https://api.github.com/users/markcmhill","html_url":"https://github.com/markcmhill","followers_url":"https://api.github.com/users/markcmhill/followers","following_url":"https://api.github.com/users/markcmhill/following{/other_user}","gists_url":"https://api.github.com/users/markcmhill/gists{/gist_id}","starred_url":"https://api.github.com/users/markcmhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markcmhill/subscriptions","organizations_url":"https://api.github.com/users/markcmhill/orgs","repos_url":"https://api.github.com/users/markcmhill/repos","events_url":"https://api.github.com/users/markcmhill/events{/privacy}","received_events_url":"https://api.github.com/users/markcmhill/received_events","type":"User","site_admin":false},"body":"closes #5","created_at":"2016-03-30T09:25:56Z","updated_at":"2016-03-30T10:43:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3933482acb94ff983a2c018b6762f6e7b71c4338","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MarcoCode/fairMuse/pulls/22/commits","review_comments_url":"https://api.github.com/repos/MarcoCode/fairMuse/pulls/22/comments","review_comment_url":"https://api.github.com/repos/MarcoCode/fairMuse/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MarcoCode/fairMuse/issues/22/comments","statuses_url":"https://api.github.com/repos/MarcoCode/fairMuse/statuses/fb470ffa1d297ee710d536b86601bd9c64872711","head":{"label":"MarcoCode:5-pay-money-to-the-artist","ref":"5-pay-money-to-the-artist","sha":"fb470ffa1d297ee710d536b86601bd9c64872711","user":{"login":"MarcoCode","id":15351248,"avatar_url":"https://avatars.githubusercontent.com/u/15351248?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcoCode","html_url":"https://github.com/MarcoCode","followers_url":"https://api.github.com/users/MarcoCode/followers","following_url":"https://api.github.com/users/MarcoCode/following{/other_user}","gists_url":"https://api.github.com/users/MarcoCode/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcoCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcoCode/subscriptions","organizations_url":"https://api.github.com/users/MarcoCode/orgs","repos_url":"https://api.github.com/users/MarcoCode/repos","events_url":"https://api.github.com/users/MarcoCode/events{/privacy}","received_events_url":"https://api.github.com/users/MarcoCode/received_events","type":"User","site_admin":false},"repo":{"id":54486681,"name":"fairMuse","full_name":"MarcoCode/fairMuse","owner":{"login":"MarcoCode","id":15351248,"avatar_url":"https://avatars.githubusercontent.com/u/15351248?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcoCode","html_url":"https://github.com/MarcoCode","followers_url":"https://api.github.com/users/MarcoCode/followers","following_url":"https://api.github.com/users/MarcoCode/following{/other_user}","gists_url":"https://api.github.com/users/MarcoCode/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcoCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcoCode/subscriptions","organizations_url":"https://api.github.com/users/MarcoCode/orgs","repos_url":"https://api.github.com/users/MarcoCode/repos","events_url":"https://api.github.com/users/MarcoCode/events{/privacy}","received_events_url":"https://api.github.com/users/MarcoCode/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MarcoCode/fairMuse","description":"A Music streaming service that creates value for artists","fork":false,"url":"https://api.github.com/repos/MarcoCode/fairMuse","forks_url":"https://api.github.com/repos/MarcoCode/fairMuse/forks","keys_url":"https://api.github.com/repos/MarcoCode/fairMuse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MarcoCode/fairMuse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MarcoCode/fairMuse/teams","hooks_url":"https://api.github.com/repos/MarcoCode/fairMuse/hooks","issue_events_url":"https://api.github.com/repos/MarcoCode/fairMuse/issues/events{/number}","events_url":"https://api.github.com/repos/MarcoCode/fairMuse/events","assignees_url":"https://api.github.com/repos/MarcoCode/fairMuse/assignees{/user}","branches_url":"https://api.github.com/repos/MarcoCode/fairMuse/branches{/branch}","tags_url":"https://api.github.com/repos/MarcoCode/fairMuse/tags","blobs_url":"https://api.github.com/repos/MarcoCode/fairMuse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MarcoCode/fairMuse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MarcoCode/fairMuse/git/refs{/sha}","trees_url":"https://api.github.com/repos/MarcoCode/fairMuse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MarcoCode/fairMuse/statuses/{sha}","languages_url":"https://api.github.com/repos/MarcoCode/fairMuse/languages","stargazers_url":"https://api.github.com/repos/MarcoCode/fairMuse/stargazers","contributors_url":"https://api.github.com/repos/MarcoCode/fairMuse/contributors","subscribers_url":"https://api.github.com/repos/MarcoCode/fairMuse/subscribers","subscription_url":"https://api.github.com/repos/MarcoCode/fairMuse/subscription","commits_url":"https://api.github.com/repos/MarcoCode/fairMuse/commits{/sha}","git_commits_url":"https://api.github.com/repos/MarcoCode/fairMuse/git/commits{/sha}","comments_url":"https://api.github.com/repos/MarcoCode/fairMuse/comments{/number}","issue_comment_url":"https://api.github.com/repos/MarcoCode/fairMuse/issues/comments{/number}","contents_url":"https://api.github.com/repos/MarcoCode/fairMuse/contents/{+path}","compare_url":"https://api.github.com/repos/MarcoCode/fairMuse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MarcoCode/fairMuse/merges","archive_url":"https://api.github.com/repos/MarcoCode/fairMuse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MarcoCode/fairMuse/downloads","issues_url":"https://api.github.com/repos/MarcoCode/fairMuse/issues{/number}","pulls_url":"https://api.github.com/repos/MarcoCode/fairMuse/pulls{/number}","milestones_url":"https://api.github.com/repos/MarcoCode/fairMuse/milestones{/number}","notifications_url":"https://api.github.com/repos/MarcoCode/fairMuse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MarcoCode/fairMuse/labels{/name}","releases_url":"https://api.github.com/repos/MarcoCode/fairMuse/releases{/id}","deployments_url":"https://api.github.com/repos/MarcoCode/fairMuse/deployments","created_at":"2016-03-22T15:30:16Z","updated_at":"2016-03-23T15:16:04Z","pushed_at":"2016-03-30T10:09:15Z","git_url":"git://github.com/MarcoCode/fairMuse.git","ssh_url":"git@github.com:MarcoCode/fairMuse.git","clone_url":"https://github.com/MarcoCode/fairMuse.git","svn_url":"https://github.com/MarcoCode/fairMuse","homepage":null,"size":2695,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"MarcoCode:master","ref":"master","sha":"814991c17fd61a5be84315bc474879e99467e960","user":{"login":"MarcoCode","id":15351248,"avatar_url":"https://avatars.githubusercontent.com/u/15351248?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcoCode","html_url":"https://github.com/MarcoCode","followers_url":"https://api.github.com/users/MarcoCode/followers","following_url":"https://api.github.com/users/MarcoCode/following{/other_user}","gists_url":"https://api.github.com/users/MarcoCode/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcoCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcoCode/subscriptions","organizations_url":"https://api.github.com/users/MarcoCode/orgs","repos_url":"https://api.github.com/users/MarcoCode/repos","events_url":"https://api.github.com/users/MarcoCode/events{/privacy}","received_events_url":"https://api.github.com/users/MarcoCode/received_events","type":"User","site_admin":false},"repo":{"id":54486681,"name":"fairMuse","full_name":"MarcoCode/fairMuse","owner":{"login":"MarcoCode","id":15351248,"avatar_url":"https://avatars.githubusercontent.com/u/15351248?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcoCode","html_url":"https://github.com/MarcoCode","followers_url":"https://api.github.com/users/MarcoCode/followers","following_url":"https://api.github.com/users/MarcoCode/following{/other_user}","gists_url":"https://api.github.com/users/MarcoCode/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcoCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcoCode/subscriptions","organizations_url":"https://api.github.com/users/MarcoCode/orgs","repos_url":"https://api.github.com/users/MarcoCode/repos","events_url":"https://api.github.com/users/MarcoCode/events{/privacy}","received_events_url":"https://api.github.com/users/MarcoCode/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MarcoCode/fairMuse","description":"A Music streaming service that creates value for artists","fork":false,"url":"https://api.github.com/repos/MarcoCode/fairMuse","forks_url":"https://api.github.com/repos/MarcoCode/fairMuse/forks","keys_url":"https://api.github.com/repos/MarcoCode/fairMuse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MarcoCode/fairMuse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MarcoCode/fairMuse/teams","hooks_url":"https://api.github.com/repos/MarcoCode/fairMuse/hooks","issue_events_url":"https://api.github.com/repos/MarcoCode/fairMuse/issues/events{/number}","events_url":"https://api.github.com/repos/MarcoCode/fairMuse/events","assignees_url":"https://api.github.com/repos/MarcoCode/fairMuse/assignees{/user}","branches_url":"https://api.github.com/repos/MarcoCode/fairMuse/branches{/branch}","tags_url":"https://api.github.com/repos/MarcoCode/fairMuse/tags","blobs_url":"https://api.github.com/repos/MarcoCode/fairMuse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MarcoCode/fairMuse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MarcoCode/fairMuse/git/refs{/sha}","trees_url":"https://api.github.com/repos/MarcoCode/fairMuse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MarcoCode/fairMuse/statuses/{sha}","languages_url":"https://api.github.com/repos/MarcoCode/fairMuse/languages","stargazers_url":"https://api.github.com/repos/MarcoCode/fairMuse/stargazers","contributors_url":"https://api.github.com/repos/MarcoCode/fairMuse/contributors","subscribers_url":"https://api.github.com/repos/MarcoCode/fairMuse/subscribers","subscription_url":"https://api.github.com/repos/MarcoCode/fairMuse/subscription","commits_url":"https://api.github.com/repos/MarcoCode/fairMuse/commits{/sha}","git_commits_url":"https://api.github.com/repos/MarcoCode/fairMuse/git/commits{/sha}","comments_url":"https://api.github.com/repos/MarcoCode/fairMuse/comments{/number}","issue_comment_url":"https://api.github.com/repos/MarcoCode/fairMuse/issues/comments{/number}","contents_url":"https://api.github.com/repos/MarcoCode/fairMuse/contents/{+path}","compare_url":"https://api.github.com/repos/MarcoCode/fairMuse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MarcoCode/fairMuse/merges","archive_url":"https://api.github.com/repos/MarcoCode/fairMuse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MarcoCode/fairMuse/downloads","issues_url":"https://api.github.com/repos/MarcoCode/fairMuse/issues{/number}","pulls_url":"https://api.github.com/repos/MarcoCode/fairMuse/pulls{/number}","milestones_url":"https://api.github.com/repos/MarcoCode/fairMuse/milestones{/number}","notifications_url":"https://api.github.com/repos/MarcoCode/fairMuse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MarcoCode/fairMuse/labels{/name}","releases_url":"https://api.github.com/repos/MarcoCode/fairMuse/releases{/id}","deployments_url":"https://api.github.com/repos/MarcoCode/fairMuse/deployments","created_at":"2016-03-22T15:30:16Z","updated_at":"2016-03-23T15:16:04Z","pushed_at":"2016-03-30T10:09:15Z","git_url":"git://github.com/MarcoCode/fairMuse.git","ssh_url":"git@github.com:MarcoCode/fairMuse.git","clone_url":"https://github.com/MarcoCode/fairMuse.git","svn_url":"https://github.com/MarcoCode/fairMuse","homepage":null,"size":2695,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MarcoCode/fairMuse/pulls/22"},"html":{"href":"https://github.com/MarcoCode/fairMuse/pull/22"},"issue":{"href":"https://api.github.com/repos/MarcoCode/fairMuse/issues/22"},"comments":{"href":"https://api.github.com/repos/MarcoCode/fairMuse/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/MarcoCode/fairMuse/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/MarcoCode/fairMuse/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MarcoCode/fairMuse/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/MarcoCode/fairMuse/statuses/fb470ffa1d297ee710d536b86601bd9c64872711"}}}}