{"action":"created","issue":{"url":"https://api.github.com/repos/WP-API/client-js/issues/90","repository_url":"https://api.github.com/repos/WP-API/client-js","labels_url":"https://api.github.com/repos/WP-API/client-js/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/WP-API/client-js/issues/90/comments","events_url":"https://api.github.com/repos/WP-API/client-js/issues/90/events","html_url":"https://github.com/WP-API/client-js/issues/90","id":133664843,"number":90,"title":"Get the current user in JS Client","user":{"login":"joneslloyd","id":997427,"avatar_url":"https://avatars.githubusercontent.com/u/997427?v=3","gravatar_id":"","url":"https://api.github.com/users/joneslloyd","html_url":"https://github.com/joneslloyd","followers_url":"https://api.github.com/users/joneslloyd/followers","following_url":"https://api.github.com/users/joneslloyd/following{/other_user}","gists_url":"https://api.github.com/users/joneslloyd/gists{/gist_id}","starred_url":"https://api.github.com/users/joneslloyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joneslloyd/subscriptions","organizations_url":"https://api.github.com/users/joneslloyd/orgs","repos_url":"https://api.github.com/users/joneslloyd/repos","events_url":"https://api.github.com/users/joneslloyd/events{/privacy}","received_events_url":"https://api.github.com/users/joneslloyd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-02-15T09:34:26Z","updated_at":"2016-02-15T23:37:13Z","closed_at":"2016-02-15T18:51:41Z","body":"Hi there,\r\n\r\nThis is maybe(?) a special case, and I definitely can't find any documentation for it with regards to achieving this with the JS Client.\r\n\r\nI'm wondering how I get the current user's Model?\r\n\r\nDo I simply put:\r\n\r\n`var current_user = new wp.api.models.Users( { 'me' } );` ?\r\n\r\n(I'm guessing that's not the case)\r\n\r\nI just can't find an attribute to pass that would allow for the `/me/` part.\r\n\r\nAny information would be great.\r\n\r\nI'm aware that I can print the current user's ID to the page as a Javascript variable, and then pass that in as the ID parameter, but I looked at the \"to be added\" file (https://github.com/WP-API/client-js/blob/2ff7164eec4bf5229d17eb3c1ac7a476db875c46/routes-to-add.md) and it says that `/users/me/` has been added.\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/WP-API/client-js/issues/comments/184441569","html_url":"https://github.com/WP-API/client-js/issues/90#issuecomment-184441569","issue_url":"https://api.github.com/repos/WP-API/client-js/issues/90","id":184441569,"user":{"login":"adamsilverstein","id":2676022,"avatar_url":"https://avatars.githubusercontent.com/u/2676022?v=3","gravatar_id":"","url":"https://api.github.com/users/adamsilverstein","html_url":"https://github.com/adamsilverstein","followers_url":"https://api.github.com/users/adamsilverstein/followers","following_url":"https://api.github.com/users/adamsilverstein/following{/other_user}","gists_url":"https://api.github.com/users/adamsilverstein/gists{/gist_id}","starred_url":"https://api.github.com/users/adamsilverstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamsilverstein/subscriptions","organizations_url":"https://api.github.com/users/adamsilverstein/orgs","repos_url":"https://api.github.com/users/adamsilverstein/repos","events_url":"https://api.github.com/users/adamsilverstein/events{/privacy}","received_events_url":"https://api.github.com/users/adamsilverstein/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T23:37:13Z","updated_at":"2016-02-15T23:37:13Z","body":"Glad to hear, thanks for bringing up the issue and testing. "}}