{"action":"created","issue":{"url":"https://api.github.com/repos/MoodCat/MoodCat.me-Frontend/issues/56","labels_url":"https://api.github.com/repos/MoodCat/MoodCat.me-Frontend/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/MoodCat/MoodCat.me-Frontend/issues/56/comments","events_url":"https://api.github.com/repos/MoodCat/MoodCat.me-Frontend/issues/56/events","html_url":"https://github.com/MoodCat/MoodCat.me-Frontend/pull/56","id":87255130,"number":56,"title":"Users have points fixes #45","user":{"login":"Azkle","id":5946438,"avatar_url":"https://avatars.githubusercontent.com/u/5946438?v=3","gravatar_id":"","url":"https://api.github.com/users/Azkle","html_url":"https://github.com/Azkle","followers_url":"https://api.github.com/users/Azkle/followers","following_url":"https://api.github.com/users/Azkle/following{/other_user}","gists_url":"https://api.github.com/users/Azkle/gists{/gist_id}","starred_url":"https://api.github.com/users/Azkle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azkle/subscriptions","organizations_url":"https://api.github.com/users/Azkle/orgs","repos_url":"https://api.github.com/users/Azkle/repos","events_url":"https://api.github.com/users/Azkle/events{/privacy}","received_events_url":"https://api.github.com/users/Azkle/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MoodCat/MoodCat.me-Frontend/labels/PR%20ready","name":"PR ready","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-11T08:12:14Z","updated_at":"2015-06-11T14:55:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/MoodCat/MoodCat.me-Frontend/pulls/56","html_url":"https://github.com/MoodCat/MoodCat.me-Frontend/pull/56","diff_url":"https://github.com/MoodCat/MoodCat.me-Frontend/pull/56.diff","patch_url":"https://github.com/MoodCat/MoodCat.me-Frontend/pull/56.patch"},"body":"First merge leaderboard  (#55) in this one and then merge this.\r\nI began on the leaderboard on the points branch, but decided to make a new branch for this new feature.\r\n\r\nWorks with leaderboard and points on the core."},"comment":{"url":"https://api.github.com/repos/MoodCat/MoodCat.me-Frontend/issues/comments/111162334","html_url":"https://github.com/MoodCat/MoodCat.me-Frontend/pull/56#issuecomment-111162334","issue_url":"https://api.github.com/repos/MoodCat/MoodCat.me-Frontend/issues/56","id":111162334,"user":{"login":"JWGmeligMeyling","id":3469492,"avatar_url":"https://avatars.githubusercontent.com/u/3469492?v=3","gravatar_id":"","url":"https://api.github.com/users/JWGmeligMeyling","html_url":"https://github.com/JWGmeligMeyling","followers_url":"https://api.github.com/users/JWGmeligMeyling/followers","following_url":"https://api.github.com/users/JWGmeligMeyling/following{/other_user}","gists_url":"https://api.github.com/users/JWGmeligMeyling/gists{/gist_id}","starred_url":"https://api.github.com/users/JWGmeligMeyling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JWGmeligMeyling/subscriptions","organizations_url":"https://api.github.com/users/JWGmeligMeyling/orgs","repos_url":"https://api.github.com/users/JWGmeligMeyling/repos","events_url":"https://api.github.com/users/JWGmeligMeyling/events{/privacy}","received_events_url":"https://api.github.com/users/JWGmeligMeyling/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T14:55:44Z","updated_at":"2015-06-11T14:55:44Z","body":"When you send the current soundcloud token with your request, the backend enforces that the user either exists or will be registered automatically. See how this is currently done in the master for the send chatmessage request: https://github.com/MoodCat/MoodCat.me-Frontend/blob/master/app/scripts/controllers/main.js#L109 .\r\n```js\r\n    this.sendChatMessage = function(mess, roomId) {\r\n      return moodcatBackend.post('/api/rooms/' + roomId + '/messages', angular.toJson(mess), {\r\n        params: {\r\n          token : SoundCloudService.getToken()\r\n        }\r\n      });\r\n    }\r\n```"}}