{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/oauth2-useragent/issues/13","repository_url":"https://api.github.com/repos/Microsoft/oauth2-useragent","labels_url":"https://api.github.com/repos/Microsoft/oauth2-useragent/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/oauth2-useragent/issues/13/comments","events_url":"https://api.github.com/repos/Microsoft/oauth2-useragent/issues/13/events","html_url":"https://github.com/Microsoft/oauth2-useragent/issues/13","id":136769972,"number":13,"title":"UserAgent should expose a function to check for requirements","user":{"login":"yacaovsnc","id":10119737,"avatar_url":"https://avatars.githubusercontent.com/u/10119737?v=3","gravatar_id":"","url":"https://api.github.com/users/yacaovsnc","html_url":"https://github.com/yacaovsnc","followers_url":"https://api.github.com/users/yacaovsnc/followers","following_url":"https://api.github.com/users/yacaovsnc/following{/other_user}","gists_url":"https://api.github.com/users/yacaovsnc/gists{/gist_id}","starred_url":"https://api.github.com/users/yacaovsnc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yacaovsnc/subscriptions","organizations_url":"https://api.github.com/users/yacaovsnc/orgs","repos_url":"https://api.github.com/users/yacaovsnc/repos","events_url":"https://api.github.com/users/yacaovsnc/events{/privacy}","received_events_url":"https://api.github.com/users/yacaovsnc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-26T18:08:00Z","updated_at":"2016-03-04T03:56:20Z","closed_at":null,"body":"As of now, the only way to know UserAgent won't work is to call it, then expect an IllegalStateException.\r\n\r\nIt would be good to expose the requirement checking function publicly, so we can determine if UserAgent is suitable or not, and then decide if we should go ahead to make the call, or fall back to other mechanism.  \r\n\r\nAs of now I am controlling code flow by exception, and I don't think that's a good pattern.   "},"comment":{"url":"https://api.github.com/repos/Microsoft/oauth2-useragent/issues/comments/192088169","html_url":"https://github.com/Microsoft/oauth2-useragent/issues/13#issuecomment-192088169","issue_url":"https://api.github.com/repos/Microsoft/oauth2-useragent/issues/13","id":192088169,"user":{"login":"olivierdagenais","id":297515,"avatar_url":"https://avatars.githubusercontent.com/u/297515?v=3","gravatar_id":"","url":"https://api.github.com/users/olivierdagenais","html_url":"https://github.com/olivierdagenais","followers_url":"https://api.github.com/users/olivierdagenais/followers","following_url":"https://api.github.com/users/olivierdagenais/following{/other_user}","gists_url":"https://api.github.com/users/olivierdagenais/gists{/gist_id}","starred_url":"https://api.github.com/users/olivierdagenais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivierdagenais/subscriptions","organizations_url":"https://api.github.com/users/olivierdagenais/orgs","repos_url":"https://api.github.com/users/olivierdagenais/repos","events_url":"https://api.github.com/users/olivierdagenais/events{/privacy}","received_events_url":"https://api.github.com/users/olivierdagenais/received_events","type":"User","site_admin":false},"created_at":"2016-03-04T03:56:20Z","updated_at":"2016-03-04T03:56:20Z","body":"> It sounds like you would like a method like this to be added to `Provider`.\r\n\r\n...or to `UserAgent`.  Either way, I can import the method from GCM4ML; we just have to decide what it should return such that the output can be consumed whether the target program is console-based on GUI-based."}}