{"action":"created","issue":{"url":"https://api.github.com/repos/jmapio/jmap-js/issues/2","labels_url":"https://api.github.com/repos/jmapio/jmap-js/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/jmapio/jmap-js/issues/2/comments","events_url":"https://api.github.com/repos/jmapio/jmap-js/issues/2/events","html_url":"https://github.com/jmapio/jmap-js/issues/2","id":102718624,"number":2,"title":"Getting started","user":{"login":"marcelopm","id":1010930,"avatar_url":"https://avatars.githubusercontent.com/u/1010930?v=3","gravatar_id":"","url":"https://api.github.com/users/marcelopm","html_url":"https://github.com/marcelopm","followers_url":"https://api.github.com/users/marcelopm/followers","following_url":"https://api.github.com/users/marcelopm/following{/other_user}","gists_url":"https://api.github.com/users/marcelopm/gists{/gist_id}","starred_url":"https://api.github.com/users/marcelopm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcelopm/subscriptions","organizations_url":"https://api.github.com/users/marcelopm/orgs","repos_url":"https://api.github.com/users/marcelopm/repos","events_url":"https://api.github.com/users/marcelopm/events{/privacy}","received_events_url":"https://api.github.com/users/marcelopm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-24T06:32:42Z","updated_at":"2015-08-24T23:33:00Z","closed_at":"2015-08-24T23:33:00Z","body":"I'm trying to figure out how to use this library but even after going through and following the steps in the docs I can't manage to make it fire requests against my server.\r\n\r\nAfter authenticating I'm calling:\r\n\r\n```javascript\r\nJMAP.auth.didAuthenticate(account, accessToken, {\r\n    \"authenticationUrl\" : \"/mail/api/authenticate2\",\r\n    \"apiUrl\": \"/mail/api/mail2\",\r\n    \"uploadUrl\": \"/mail/api/upload\",\r\n    \"eventSourceUrl\": \"/mail/api/events\",\r\n});\r\n```\r\nAnd then after:\r\n\r\n```javascript\r\nJMAP.store.getQuery( 'inbox', JMAP.MessageList, { filter: { inMailboxes: [ JMAP.mail.systemMailboxIds.get( 'inbox' ) ] }, sort: [ 'date desc' ], collapseThreads: true });\r\n```\r\nBut nothing seems to happen.\r\n\r\nI also tried something like this but with no luck:\r\n```javascript\r\nJMAP.store.getRecord(JMAP.Message, myMessageId);\r\n```\r\nAny thoughts?\r\n\r\nUPDATE: requests are being sent after sometime they are made but I having trouble understanding how to have more control over the cycle."},"comment":{"url":"https://api.github.com/repos/jmapio/jmap-js/issues/comments/134414038","html_url":"https://github.com/jmapio/jmap-js/issues/2#issuecomment-134414038","issue_url":"https://api.github.com/repos/jmapio/jmap-js/issues/2","id":134414038,"user":{"login":"marcelopm","id":1010930,"avatar_url":"https://avatars.githubusercontent.com/u/1010930?v=3","gravatar_id":"","url":"https://api.github.com/users/marcelopm","html_url":"https://github.com/marcelopm","followers_url":"https://api.github.com/users/marcelopm/followers","following_url":"https://api.github.com/users/marcelopm/following{/other_user}","gists_url":"https://api.github.com/users/marcelopm/gists{/gist_id}","starred_url":"https://api.github.com/users/marcelopm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcelopm/subscriptions","organizations_url":"https://api.github.com/users/marcelopm/orgs","repos_url":"https://api.github.com/users/marcelopm/repos","events_url":"https://api.github.com/users/marcelopm/events{/privacy}","received_events_url":"https://api.github.com/users/marcelopm/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T23:33:00Z","updated_at":"2015-08-24T23:33:00Z","body":"```javascript\r\nO.RunLoop.flushAllQueues();\r\n```\r\nSeems to do what I was looking for,\r\n\r\nCheers"}}