{"action":"created","issue":{"url":"https://api.github.com/repos/evercam/evercam-api/issues/493","labels_url":"https://api.github.com/repos/evercam/evercam-api/issues/493/labels{/name}","comments_url":"https://api.github.com/repos/evercam/evercam-api/issues/493/comments","events_url":"https://api.github.com/repos/evercam/evercam-api/issues/493/events","html_url":"https://github.com/evercam/evercam-api/issues/493","id":114794010,"number":493,"title":"There is no way to retrieve owner Email from API","user":{"login":"liutingdu","id":5046761,"avatar_url":"https://avatars.githubusercontent.com/u/5046761?v=3","gravatar_id":"","url":"https://api.github.com/users/liutingdu","html_url":"https://github.com/liutingdu","followers_url":"https://api.github.com/users/liutingdu/followers","following_url":"https://api.github.com/users/liutingdu/following{/other_user}","gists_url":"https://api.github.com/users/liutingdu/gists{/gist_id}","starred_url":"https://api.github.com/users/liutingdu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liutingdu/subscriptions","organizations_url":"https://api.github.com/users/liutingdu/orgs","repos_url":"https://api.github.com/users/liutingdu/repos","events_url":"https://api.github.com/users/liutingdu/events{/privacy}","received_events_url":"https://api.github.com/users/liutingdu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/evercam/evercam-api/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-11-03T11:21:15Z","updated_at":"2015-11-03T15:25:04Z","closed_at":null,"body":"I got this problem while working on sharing for Android. \r\n\r\nIn dashboard - 'Sharing' tab, it shows the owner as the first one in the list, with owner's username and Email address. The response of /sharing endpoints doesn't contains any user info, confirmed with @azharmalik3 that in dashboard, we are getting owner details directly from DB and not API.\r\n\r\nCurrently the only endpoints that returns owner info are ```GET /cameras``` and ```GET /cameras/{id}```, but it only contains owner's username, there is no way to find out owner's Email address.\r\n\r\nIn order to make it for Android / iOS, I think the easiest way is to add 'owner_email' in camera model in the response of ```GET /cameras``` and ```GET /cameras/{id}```. But it will make owner's Email address publicly visible for public cameras.\r\n\r\n@marcoherbst @mosic @azharmalik3 Any suggestions? Maybe there are better solutions from back end point of view?"},"comment":{"url":"https://api.github.com/repos/evercam/evercam-api/issues/comments/153387660","html_url":"https://github.com/evercam/evercam-api/issues/493#issuecomment-153387660","issue_url":"https://api.github.com/repos/evercam/evercam-api/issues/493","id":153387660,"user":{"login":"liutingdu","id":5046761,"avatar_url":"https://avatars.githubusercontent.com/u/5046761?v=3","gravatar_id":"","url":"https://api.github.com/users/liutingdu","html_url":"https://github.com/liutingdu","followers_url":"https://api.github.com/users/liutingdu/followers","following_url":"https://api.github.com/users/liutingdu/following{/other_user}","gists_url":"https://api.github.com/users/liutingdu/gists{/gist_id}","starred_url":"https://api.github.com/users/liutingdu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liutingdu/subscriptions","organizations_url":"https://api.github.com/users/liutingdu/orgs","repos_url":"https://api.github.com/users/liutingdu/repos","events_url":"https://api.github.com/users/liutingdu/events{/privacy}","received_events_url":"https://api.github.com/users/liutingdu/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T15:25:04Z","updated_at":"2015-11-03T15:25:04Z","body":"@mosic \r\n\r\nIn Android I check the 'rights' field in camera object returned by ```GET /cameras/{id} ``` before showing/hiding the sharing tab.\r\n\r\nIf the shares endpoint returns empty array, it's not enough to know whether the user doesn't have full rights or the camera is not shared with anyone, are you sure that's what we are doing on dashboard?"}}