{"action":"created","comment":{"url":"https://api.github.com/repos/kuzzleio/sdk-javascript/pulls/comments/51851825","id":51851825,"diff_hunk":"@@ -754,6 +754,23 @@ Kuzzle.prototype.checkToken = function (token, callback) {\n };\n \n /**\n+ * Fetches the current user.\n+ *\n+ * @param  {function} callback  The callback to be called when the response is\n+ *                              available. The signature is `function(error, response)`.\n+ * @return {Kuzzle}             The Kuzzle instance to enable chaining.\n+ */\n+Kuzzle.prototype.whoAmI = function (callback) {\n+  var self = this;\n+\n+  this.callbackRequired('Kuzzle.checkToken', callback);","path":"dist/kuzzle.js","position":13,"original_position":13,"commit_id":"ca283c38327a25aca29cab02ca928f3e5b13a519","original_commit_id":"ca283c38327a25aca29cab02ca928f3e5b13a519","user":{"login":"AnthonySendra","id":6941117,"avatar_url":"https://avatars.githubusercontent.com/u/6941117?v=3","gravatar_id":"","url":"https://api.github.com/users/AnthonySendra","html_url":"https://github.com/AnthonySendra","followers_url":"https://api.github.com/users/AnthonySendra/followers","following_url":"https://api.github.com/users/AnthonySendra/following{/other_user}","gists_url":"https://api.github.com/users/AnthonySendra/gists{/gist_id}","starred_url":"https://api.github.com/users/AnthonySendra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnthonySendra/subscriptions","organizations_url":"https://api.github.com/users/AnthonySendra/orgs","repos_url":"https://api.github.com/users/AnthonySendra/repos","events_url":"https://api.github.com/users/AnthonySendra/events{/privacy}","received_events_url":"https://api.github.com/users/AnthonySendra/received_events","type":"User","site_admin":false},"body":"I think it's must be `this.callbackRequired('Kuzzle.whoAmI', callback);`","created_at":"2016-02-04T10:07:39Z","updated_at":"2016-02-04T10:07:39Z","html_url":"https://github.com/kuzzleio/sdk-javascript/pull/52#discussion_r51851825","pull_request_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/pulls/52","_links":{"self":{"href":"https://api.github.com/repos/kuzzleio/sdk-javascript/pulls/comments/51851825"},"html":{"href":"https://github.com/kuzzleio/sdk-javascript/pull/52#discussion_r51851825"},"pull_request":{"href":"https://api.github.com/repos/kuzzleio/sdk-javascript/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/kuzzleio/sdk-javascript/pulls/52","id":58263057,"html_url":"https://github.com/kuzzleio/sdk-javascript/pull/52","diff_url":"https://github.com/kuzzleio/sdk-javascript/pull/52.diff","patch_url":"https://github.com/kuzzleio/sdk-javascript/pull/52.patch","issue_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/issues/52","number":52,"state":"open","locked":false,"title":"KUZ-378 OMG Who Am I? (identity crisis)","user":{"login":"xbill82","id":5023426,"avatar_url":"https://avatars.githubusercontent.com/u/5023426?v=3","gravatar_id":"","url":"https://api.github.com/users/xbill82","html_url":"https://github.com/xbill82","followers_url":"https://api.github.com/users/xbill82/followers","following_url":"https://api.github.com/users/xbill82/following{/other_user}","gists_url":"https://api.github.com/users/xbill82/gists{/gist_id}","starred_url":"https://api.github.com/users/xbill82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xbill82/subscriptions","organizations_url":"https://api.github.com/users/xbill82/orgs","repos_url":"https://api.github.com/users/xbill82/repos","events_url":"https://api.github.com/users/xbill82/events{/privacy}","received_events_url":"https://api.github.com/users/xbill82/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-04T09:56:47Z","updated_at":"2016-02-04T10:07:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1a31525ab2617a2e38c8aa223500b3ab88dad846","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/pulls/52/commits","review_comments_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/pulls/52/comments","review_comment_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/issues/52/comments","statuses_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/statuses/ca283c38327a25aca29cab02ca928f3e5b13a519","head":{"label":"kuzzleio:KUZ-378-whoami","ref":"KUZ-378-whoami","sha":"ca283c38327a25aca29cab02ca928f3e5b13a519","user":{"login":"kuzzleio","id":12933347,"avatar_url":"https://avatars.githubusercontent.com/u/12933347?v=3","gravatar_id":"","url":"https://api.github.com/users/kuzzleio","html_url":"https://github.com/kuzzleio","followers_url":"https://api.github.com/users/kuzzleio/followers","following_url":"https://api.github.com/users/kuzzleio/following{/other_user}","gists_url":"https://api.github.com/users/kuzzleio/gists{/gist_id}","starred_url":"https://api.github.com/users/kuzzleio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuzzleio/subscriptions","organizations_url":"https://api.github.com/users/kuzzleio/orgs","repos_url":"https://api.github.com/users/kuzzleio/repos","events_url":"https://api.github.com/users/kuzzleio/events{/privacy}","received_events_url":"https://api.github.com/users/kuzzleio/received_events","type":"Organization","site_admin":false},"repo":{"id":40353752,"name":"sdk-javascript","full_name":"kuzzleio/sdk-javascript","owner":{"login":"kuzzleio","id":12933347,"avatar_url":"https://avatars.githubusercontent.com/u/12933347?v=3","gravatar_id":"","url":"https://api.github.com/users/kuzzleio","html_url":"https://github.com/kuzzleio","followers_url":"https://api.github.com/users/kuzzleio/followers","following_url":"https://api.github.com/users/kuzzleio/following{/other_user}","gists_url":"https://api.github.com/users/kuzzleio/gists{/gist_id}","starred_url":"https://api.github.com/users/kuzzleio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuzzleio/subscriptions","organizations_url":"https://api.github.com/users/kuzzleio/orgs","repos_url":"https://api.github.com/users/kuzzleio/repos","events_url":"https://api.github.com/users/kuzzleio/events{/privacy}","received_events_url":"https://api.github.com/users/kuzzleio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kuzzleio/sdk-javascript","description":"Official javascript SDK for Kuzzle","fork":false,"url":"https://api.github.com/repos/kuzzleio/sdk-javascript","forks_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/forks","keys_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/teams","hooks_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/hooks","issue_events_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/issues/events{/number}","events_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/events","assignees_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/assignees{/user}","branches_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/branches{/branch}","tags_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/tags","blobs_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/git/refs{/sha}","trees_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/statuses/{sha}","languages_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/languages","stargazers_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/stargazers","contributors_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/contributors","subscribers_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/subscribers","subscription_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/subscription","commits_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/commits{/sha}","git_commits_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/git/commits{/sha}","comments_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/comments{/number}","issue_comment_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/issues/comments{/number}","contents_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/contents/{+path}","compare_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/merges","archive_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/downloads","issues_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/issues{/number}","pulls_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/pulls{/number}","milestones_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/milestones{/number}","notifications_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/labels{/name}","releases_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/releases{/id}","deployments_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/deployments","created_at":"2015-08-07T09:54:38Z","updated_at":"2016-01-14T17:13:12Z","pushed_at":"2016-02-04T10:05:58Z","git_url":"git://github.com/kuzzleio/sdk-javascript.git","ssh_url":"git@github.com:kuzzleio/sdk-javascript.git","clone_url":"https://github.com/kuzzleio/sdk-javascript.git","svn_url":"https://github.com/kuzzleio/sdk-javascript","homepage":null,"size":30406,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"kuzzleio:master","ref":"master","sha":"6a40485b16102e3cb7356cccfdb71903b4dd2753","user":{"login":"kuzzleio","id":12933347,"avatar_url":"https://avatars.githubusercontent.com/u/12933347?v=3","gravatar_id":"","url":"https://api.github.com/users/kuzzleio","html_url":"https://github.com/kuzzleio","followers_url":"https://api.github.com/users/kuzzleio/followers","following_url":"https://api.github.com/users/kuzzleio/following{/other_user}","gists_url":"https://api.github.com/users/kuzzleio/gists{/gist_id}","starred_url":"https://api.github.com/users/kuzzleio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuzzleio/subscriptions","organizations_url":"https://api.github.com/users/kuzzleio/orgs","repos_url":"https://api.github.com/users/kuzzleio/repos","events_url":"https://api.github.com/users/kuzzleio/events{/privacy}","received_events_url":"https://api.github.com/users/kuzzleio/received_events","type":"Organization","site_admin":false},"repo":{"id":40353752,"name":"sdk-javascript","full_name":"kuzzleio/sdk-javascript","owner":{"login":"kuzzleio","id":12933347,"avatar_url":"https://avatars.githubusercontent.com/u/12933347?v=3","gravatar_id":"","url":"https://api.github.com/users/kuzzleio","html_url":"https://github.com/kuzzleio","followers_url":"https://api.github.com/users/kuzzleio/followers","following_url":"https://api.github.com/users/kuzzleio/following{/other_user}","gists_url":"https://api.github.com/users/kuzzleio/gists{/gist_id}","starred_url":"https://api.github.com/users/kuzzleio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuzzleio/subscriptions","organizations_url":"https://api.github.com/users/kuzzleio/orgs","repos_url":"https://api.github.com/users/kuzzleio/repos","events_url":"https://api.github.com/users/kuzzleio/events{/privacy}","received_events_url":"https://api.github.com/users/kuzzleio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kuzzleio/sdk-javascript","description":"Official javascript SDK for Kuzzle","fork":false,"url":"https://api.github.com/repos/kuzzleio/sdk-javascript","forks_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/forks","keys_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/teams","hooks_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/hooks","issue_events_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/issues/events{/number}","events_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/events","assignees_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/assignees{/user}","branches_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/branches{/branch}","tags_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/tags","blobs_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/git/refs{/sha}","trees_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/statuses/{sha}","languages_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/languages","stargazers_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/stargazers","contributors_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/contributors","subscribers_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/subscribers","subscription_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/subscription","commits_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/commits{/sha}","git_commits_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/git/commits{/sha}","comments_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/comments{/number}","issue_comment_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/issues/comments{/number}","contents_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/contents/{+path}","compare_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/merges","archive_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/downloads","issues_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/issues{/number}","pulls_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/pulls{/number}","milestones_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/milestones{/number}","notifications_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/labels{/name}","releases_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/releases{/id}","deployments_url":"https://api.github.com/repos/kuzzleio/sdk-javascript/deployments","created_at":"2015-08-07T09:54:38Z","updated_at":"2016-01-14T17:13:12Z","pushed_at":"2016-02-04T10:05:58Z","git_url":"git://github.com/kuzzleio/sdk-javascript.git","ssh_url":"git@github.com:kuzzleio/sdk-javascript.git","clone_url":"https://github.com/kuzzleio/sdk-javascript.git","svn_url":"https://github.com/kuzzleio/sdk-javascript","homepage":null,"size":30406,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kuzzleio/sdk-javascript/pulls/52"},"html":{"href":"https://github.com/kuzzleio/sdk-javascript/pull/52"},"issue":{"href":"https://api.github.com/repos/kuzzleio/sdk-javascript/issues/52"},"comments":{"href":"https://api.github.com/repos/kuzzleio/sdk-javascript/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/kuzzleio/sdk-javascript/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/kuzzleio/sdk-javascript/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kuzzleio/sdk-javascript/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/kuzzleio/sdk-javascript/statuses/ca283c38327a25aca29cab02ca928f3e5b13a519"}}}}