{"action":"created","issue":{"url":"https://api.github.com/repos/camomile-project/camomile-client-javascript/issues/13","repository_url":"https://api.github.com/repos/camomile-project/camomile-client-javascript","labels_url":"https://api.github.com/repos/camomile-project/camomile-client-javascript/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/camomile-project/camomile-client-javascript/issues/13/comments","events_url":"https://api.github.com/repos/camomile-project/camomile-client-javascript/issues/13/events","html_url":"https://github.com/camomile-project/camomile-client-javascript/pull/13","id":183975740,"number":13,"title":"simplify watch api, solve #12","user":{"login":"rom1504","id":2346494,"avatar_url":"https://avatars.githubusercontent.com/u/2346494?v=3","gravatar_id":"","url":"https://api.github.com/users/rom1504","html_url":"https://github.com/rom1504","followers_url":"https://api.github.com/users/rom1504/followers","following_url":"https://api.github.com/users/rom1504/following{/other_user}","gists_url":"https://api.github.com/users/rom1504/gists{/gist_id}","starred_url":"https://api.github.com/users/rom1504/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rom1504/subscriptions","organizations_url":"https://api.github.com/users/rom1504/orgs","repos_url":"https://api.github.com/users/rom1504/repos","events_url":"https://api.github.com/users/rom1504/events{/privacy}","received_events_url":"https://api.github.com/users/rom1504/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-19T14:20:55Z","updated_at":"2016-10-21T13:14:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/camomile-project/camomile-client-javascript/pulls/13","html_url":"https://github.com/camomile-project/camomile-client-javascript/pull/13","diff_url":"https://github.com/camomile-project/camomile-client-javascript/pull/13.diff","patch_url":"https://github.com/camomile-project/camomile-client-javascript/pull/13.patch"},"body":"However the unwatch functions are still returned by the watch functions unlike the python api that directly expose the unwatch functions.\r\nWould it be better to do the same as the python API or keep the current behavior ?"},"comment":{"url":"https://api.github.com/repos/camomile-project/camomile-client-javascript/issues/comments/255373159","html_url":"https://github.com/camomile-project/camomile-client-javascript/pull/13#issuecomment-255373159","issue_url":"https://api.github.com/repos/camomile-project/camomile-client-javascript/issues/13","id":255373159,"user":{"login":"rom1504","id":2346494,"avatar_url":"https://avatars.githubusercontent.com/u/2346494?v=3","gravatar_id":"","url":"https://api.github.com/users/rom1504","html_url":"https://github.com/rom1504","followers_url":"https://api.github.com/users/rom1504/followers","following_url":"https://api.github.com/users/rom1504/following{/other_user}","gists_url":"https://api.github.com/users/rom1504/gists{/gist_id}","starred_url":"https://api.github.com/users/rom1504/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rom1504/subscriptions","organizations_url":"https://api.github.com/users/rom1504/orgs","repos_url":"https://api.github.com/users/rom1504/repos","events_url":"https://api.github.com/users/rom1504/events{/privacy}","received_events_url":"https://api.github.com/users/rom1504/received_events","type":"User","site_admin":false},"created_at":"2016-10-21T13:14:02Z","updated_at":"2016-10-21T13:14:02Z","body":"> How can we use this in practice? \r\n\r\nThe function passed in the `then` could store the `unwatch` function somewhere so that it could be called when an unwatch button in a frontend is clicked for example.\r\nIt's only possible to unwatch when a watch has been done."}}
{"actor":{"display_login":"rom1504"}}