{"action":"created","issue":{"url":"https://api.github.com/repos/piwik/piwik/issues/10048","repository_url":"https://api.github.com/repos/piwik/piwik","labels_url":"https://api.github.com/repos/piwik/piwik/issues/10048/labels{/name}","comments_url":"https://api.github.com/repos/piwik/piwik/issues/10048/comments","events_url":"https://api.github.com/repos/piwik/piwik/issues/10048/events","html_url":"https://github.com/piwik/piwik/issues/10048","id":147996119,"number":10048,"title":"why didn't UserCountry.getCountry, UserCountry.getContinent, UserCountry.getRegion statistics?","user":{"login":"lixinxiaobai","id":12027771,"avatar_url":"https://avatars.githubusercontent.com/u/12027771?v=3","gravatar_id":"","url":"https://api.github.com/users/lixinxiaobai","html_url":"https://github.com/lixinxiaobai","followers_url":"https://api.github.com/users/lixinxiaobai/followers","following_url":"https://api.github.com/users/lixinxiaobai/following{/other_user}","gists_url":"https://api.github.com/users/lixinxiaobai/gists{/gist_id}","starred_url":"https://api.github.com/users/lixinxiaobai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lixinxiaobai/subscriptions","organizations_url":"https://api.github.com/users/lixinxiaobai/orgs","repos_url":"https://api.github.com/users/lixinxiaobai/repos","events_url":"https://api.github.com/users/lixinxiaobai/events{/privacy}","received_events_url":"https://api.github.com/users/lixinxiaobai/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/piwik/piwik/labels/Easy%20pick","name":"Easy pick","color":"fbca04"},{"url":"https://api.github.com/repos/piwik/piwik/labels/Enhancement","name":"Enhancement","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-13T09:10:36Z","updated_at":"2016-04-14T02:35:04Z","closed_at":null,"body":"Why didn't UserCountry.getCountry, UserCountry.getContinent, UserCountry.getRegion statistics?\r\nonly UserCountry.getNumberOfDistinctCountries?\r\nFor example: \r\nUserCountry.getNumberOfDistinctContinents,\r\nUserCountry.getNumberOfDistinctgetRegions are not these API"},"comment":{"url":"https://api.github.com/repos/piwik/piwik/issues/comments/209730214","html_url":"https://github.com/piwik/piwik/issues/10048#issuecomment-209730214","issue_url":"https://api.github.com/repos/piwik/piwik/issues/10048","id":209730214,"user":{"login":"tsteur","id":273120,"avatar_url":"https://avatars.githubusercontent.com/u/273120?v=3","gravatar_id":"","url":"https://api.github.com/users/tsteur","html_url":"https://github.com/tsteur","followers_url":"https://api.github.com/users/tsteur/followers","following_url":"https://api.github.com/users/tsteur/following{/other_user}","gists_url":"https://api.github.com/users/tsteur/gists{/gist_id}","starred_url":"https://api.github.com/users/tsteur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsteur/subscriptions","organizations_url":"https://api.github.com/users/tsteur/orgs","repos_url":"https://api.github.com/users/tsteur/repos","events_url":"https://api.github.com/users/tsteur/events{/privacy}","received_events_url":"https://api.github.com/users/tsteur/received_events","type":"User","site_admin":false},"created_at":"2016-04-14T02:35:04Z","updated_at":"2016-04-14T02:35:04Z","body":"True this is surely not perfect. I will adjust the title of the issue.\r\n\r\nI recently thought of actually deprecating the `getNumberOfDistinctCountries ` method at some point but on the other side we could also add more such API methods also for other APIs. \r\n\r\nWhen we work on the new archiver in https://github.com/piwik/piwik/issues/7470 we could actually even archive such metrics automatically for all reports, and eventually maybe even add such API methods automatically as well."}}