{"action":"created","comment":{"url":"https://api.github.com/repos/freizl/hoauth2/pulls/comments/68147866","id":68147866,"diff_hunk":"@@ -160,6 +173,29 @@ parseResponseJSON (Right b) = case decode b of\n                             Nothing -> Left (\"hoauth2.HttpClient.parseResponseJSON/Could not decode JSON: \" `BSL.append` b)\n                             Just x -> Right x\n \n+-- | Parses a @OAuth2Result BSL.ByteString@ that contains not JSON but a Query String\n+parseResponseUrl :: FromJSON a","path":"src/Network/OAuth/OAuth2/HttpClient.hs","position":66,"original_position":66,"commit_id":"408b65b8f5c4de6dc6793359fe02890c77ebce22","original_commit_id":"408b65b8f5c4de6dc6793359fe02890c77ebce22","user":{"login":"freizl","id":437427,"avatar_url":"https://avatars.githubusercontent.com/u/437427?v=3","gravatar_id":"","url":"https://api.github.com/users/freizl","html_url":"https://github.com/freizl","followers_url":"https://api.github.com/users/freizl/followers","following_url":"https://api.github.com/users/freizl/following{/other_user}","gists_url":"https://api.github.com/users/freizl/gists{/gist_id}","starred_url":"https://api.github.com/users/freizl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freizl/subscriptions","organizations_url":"https://api.github.com/users/freizl/orgs","repos_url":"https://api.github.com/users/freizl/repos","events_url":"https://api.github.com/users/freizl/events{/privacy}","received_events_url":"https://api.github.com/users/freizl/received_events","type":"User","site_admin":false},"body":"nit: maybe name it `parseResponseString`. `parseResponseUrl` is a little confusing to me.","created_at":"2016-06-22T22:35:12Z","updated_at":"2016-06-22T22:35:12Z","html_url":"https://github.com/freizl/hoauth2/pull/50#discussion_r68147866","pull_request_url":"https://api.github.com/repos/freizl/hoauth2/pulls/50","_links":{"self":{"href":"https://api.github.com/repos/freizl/hoauth2/pulls/comments/68147866"},"html":{"href":"https://github.com/freizl/hoauth2/pull/50#discussion_r68147866"},"pull_request":{"href":"https://api.github.com/repos/freizl/hoauth2/pulls/50"}}},"pull_request":{"url":"https://api.github.com/repos/freizl/hoauth2/pulls/50","id":74599567,"html_url":"https://github.com/freizl/hoauth2/pull/50","diff_url":"https://github.com/freizl/hoauth2/pull/50.diff","patch_url":"https://github.com/freizl/hoauth2/pull/50.patch","issue_url":"https://api.github.com/repos/freizl/hoauth2/issues/50","number":50,"state":"open","locked":false,"title":"Add support for access token api that returns string","user":{"login":"nakaji-dayo","id":1113464,"avatar_url":"https://avatars.githubusercontent.com/u/1113464?v=3","gravatar_id":"","url":"https://api.github.com/users/nakaji-dayo","html_url":"https://github.com/nakaji-dayo","followers_url":"https://api.github.com/users/nakaji-dayo/followers","following_url":"https://api.github.com/users/nakaji-dayo/following{/other_user}","gists_url":"https://api.github.com/users/nakaji-dayo/gists{/gist_id}","starred_url":"https://api.github.com/users/nakaji-dayo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nakaji-dayo/subscriptions","organizations_url":"https://api.github.com/users/nakaji-dayo/orgs","repos_url":"https://api.github.com/users/nakaji-dayo/repos","events_url":"https://api.github.com/users/nakaji-dayo/events{/privacy}","received_events_url":"https://api.github.com/users/nakaji-dayo/received_events","type":"User","site_admin":false},"body":"Add support for access token api that returns string.\r\nrelated issue is #47 .\r\n\r\nI added `parseResponseFlexible`.\r\nIt will try to parse response as query string when it failed to parse as json.\r\n\r\n--\r\nBTW, In #47 , I solved problem by using `doSimplePostRequest`.\r\nHowever, because I want to do the same via [yesod-auth-oauth2](https://github.com/thoughtbot/yesod-auth-oauth2), I want to solve in `fetchAccessToken`.","created_at":"2016-06-21T12:07:53Z","updated_at":"2016-06-22T22:35:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1f97a4c5b7da631d489c4572b7f636f3c17832e3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/freizl/hoauth2/pulls/50/commits","review_comments_url":"https://api.github.com/repos/freizl/hoauth2/pulls/50/comments","review_comment_url":"https://api.github.com/repos/freizl/hoauth2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/freizl/hoauth2/issues/50/comments","statuses_url":"https://api.github.com/repos/freizl/hoauth2/statuses/408b65b8f5c4de6dc6793359fe02890c77ebce22","head":{"label":"nakaji-dayo:master","ref":"master","sha":"408b65b8f5c4de6dc6793359fe02890c77ebce22","user":{"login":"nakaji-dayo","id":1113464,"avatar_url":"https://avatars.githubusercontent.com/u/1113464?v=3","gravatar_id":"","url":"https://api.github.com/users/nakaji-dayo","html_url":"https://github.com/nakaji-dayo","followers_url":"https://api.github.com/users/nakaji-dayo/followers","following_url":"https://api.github.com/users/nakaji-dayo/following{/other_user}","gists_url":"https://api.github.com/users/nakaji-dayo/gists{/gist_id}","starred_url":"https://api.github.com/users/nakaji-dayo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nakaji-dayo/subscriptions","organizations_url":"https://api.github.com/users/nakaji-dayo/orgs","repos_url":"https://api.github.com/users/nakaji-dayo/repos","events_url":"https://api.github.com/users/nakaji-dayo/events{/privacy}","received_events_url":"https://api.github.com/users/nakaji-dayo/received_events","type":"User","site_admin":false},"repo":{"id":60843843,"name":"hoauth2","full_name":"nakaji-dayo/hoauth2","owner":{"login":"nakaji-dayo","id":1113464,"avatar_url":"https://avatars.githubusercontent.com/u/1113464?v=3","gravatar_id":"","url":"https://api.github.com/users/nakaji-dayo","html_url":"https://github.com/nakaji-dayo","followers_url":"https://api.github.com/users/nakaji-dayo/followers","following_url":"https://api.github.com/users/nakaji-dayo/following{/other_user}","gists_url":"https://api.github.com/users/nakaji-dayo/gists{/gist_id}","starred_url":"https://api.github.com/users/nakaji-dayo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nakaji-dayo/subscriptions","organizations_url":"https://api.github.com/users/nakaji-dayo/orgs","repos_url":"https://api.github.com/users/nakaji-dayo/repos","events_url":"https://api.github.com/users/nakaji-dayo/events{/privacy}","received_events_url":"https://api.github.com/users/nakaji-dayo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nakaji-dayo/hoauth2","description":"haskell oauth2 binding","fork":true,"url":"https://api.github.com/repos/nakaji-dayo/hoauth2","forks_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/forks","keys_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/teams","hooks_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/hooks","issue_events_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/issues/events{/number}","events_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/events","assignees_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/assignees{/user}","branches_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/branches{/branch}","tags_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/tags","blobs_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/git/refs{/sha}","trees_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/statuses/{sha}","languages_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/languages","stargazers_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/stargazers","contributors_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/contributors","subscribers_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/subscribers","subscription_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/subscription","commits_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/commits{/sha}","git_commits_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/git/commits{/sha}","comments_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/comments{/number}","issue_comment_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/issues/comments{/number}","contents_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/contents/{+path}","compare_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/merges","archive_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/downloads","issues_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/issues{/number}","pulls_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/pulls{/number}","milestones_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/milestones{/number}","notifications_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/labels{/name}","releases_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/releases{/id}","deployments_url":"https://api.github.com/repos/nakaji-dayo/hoauth2/deployments","created_at":"2016-06-10T11:44:53Z","updated_at":"2016-06-10T11:44:54Z","pushed_at":"2016-06-10T11:45:29Z","git_url":"git://github.com/nakaji-dayo/hoauth2.git","ssh_url":"git@github.com:nakaji-dayo/hoauth2.git","clone_url":"https://github.com/nakaji-dayo/hoauth2.git","svn_url":"https://github.com/nakaji-dayo/hoauth2","homepage":"http://hackage.haskell.org/package/hoauth2","size":145,"stargazers_count":0,"watchers_count":0,"language":"Haskell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"freizl:master","ref":"master","sha":"86ecbcd755dbbc1e1c3691f5b7f9b3250b956fc2","user":{"login":"freizl","id":437427,"avatar_url":"https://avatars.githubusercontent.com/u/437427?v=3","gravatar_id":"","url":"https://api.github.com/users/freizl","html_url":"https://github.com/freizl","followers_url":"https://api.github.com/users/freizl/followers","following_url":"https://api.github.com/users/freizl/following{/other_user}","gists_url":"https://api.github.com/users/freizl/gists{/gist_id}","starred_url":"https://api.github.com/users/freizl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freizl/subscriptions","organizations_url":"https://api.github.com/users/freizl/orgs","repos_url":"https://api.github.com/users/freizl/repos","events_url":"https://api.github.com/users/freizl/events{/privacy}","received_events_url":"https://api.github.com/users/freizl/received_events","type":"User","site_admin":false},"repo":{"id":4171810,"name":"hoauth2","full_name":"freizl/hoauth2","owner":{"login":"freizl","id":437427,"avatar_url":"https://avatars.githubusercontent.com/u/437427?v=3","gravatar_id":"","url":"https://api.github.com/users/freizl","html_url":"https://github.com/freizl","followers_url":"https://api.github.com/users/freizl/followers","following_url":"https://api.github.com/users/freizl/following{/other_user}","gists_url":"https://api.github.com/users/freizl/gists{/gist_id}","starred_url":"https://api.github.com/users/freizl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freizl/subscriptions","organizations_url":"https://api.github.com/users/freizl/orgs","repos_url":"https://api.github.com/users/freizl/repos","events_url":"https://api.github.com/users/freizl/events{/privacy}","received_events_url":"https://api.github.com/users/freizl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/freizl/hoauth2","description":"haskell oauth2 binding","fork":false,"url":"https://api.github.com/repos/freizl/hoauth2","forks_url":"https://api.github.com/repos/freizl/hoauth2/forks","keys_url":"https://api.github.com/repos/freizl/hoauth2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/freizl/hoauth2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/freizl/hoauth2/teams","hooks_url":"https://api.github.com/repos/freizl/hoauth2/hooks","issue_events_url":"https://api.github.com/repos/freizl/hoauth2/issues/events{/number}","events_url":"https://api.github.com/repos/freizl/hoauth2/events","assignees_url":"https://api.github.com/repos/freizl/hoauth2/assignees{/user}","branches_url":"https://api.github.com/repos/freizl/hoauth2/branches{/branch}","tags_url":"https://api.github.com/repos/freizl/hoauth2/tags","blobs_url":"https://api.github.com/repos/freizl/hoauth2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/freizl/hoauth2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/freizl/hoauth2/git/refs{/sha}","trees_url":"https://api.github.com/repos/freizl/hoauth2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/freizl/hoauth2/statuses/{sha}","languages_url":"https://api.github.com/repos/freizl/hoauth2/languages","stargazers_url":"https://api.github.com/repos/freizl/hoauth2/stargazers","contributors_url":"https://api.github.com/repos/freizl/hoauth2/contributors","subscribers_url":"https://api.github.com/repos/freizl/hoauth2/subscribers","subscription_url":"https://api.github.com/repos/freizl/hoauth2/subscription","commits_url":"https://api.github.com/repos/freizl/hoauth2/commits{/sha}","git_commits_url":"https://api.github.com/repos/freizl/hoauth2/git/commits{/sha}","comments_url":"https://api.github.com/repos/freizl/hoauth2/comments{/number}","issue_comment_url":"https://api.github.com/repos/freizl/hoauth2/issues/comments{/number}","contents_url":"https://api.github.com/repos/freizl/hoauth2/contents/{+path}","compare_url":"https://api.github.com/repos/freizl/hoauth2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/freizl/hoauth2/merges","archive_url":"https://api.github.com/repos/freizl/hoauth2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/freizl/hoauth2/downloads","issues_url":"https://api.github.com/repos/freizl/hoauth2/issues{/number}","pulls_url":"https://api.github.com/repos/freizl/hoauth2/pulls{/number}","milestones_url":"https://api.github.com/repos/freizl/hoauth2/milestones{/number}","notifications_url":"https://api.github.com/repos/freizl/hoauth2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/freizl/hoauth2/labels{/name}","releases_url":"https://api.github.com/repos/freizl/hoauth2/releases{/id}","deployments_url":"https://api.github.com/repos/freizl/hoauth2/deployments","created_at":"2012-04-29T02:19:04Z","updated_at":"2016-05-23T07:53:10Z","pushed_at":"2016-06-21T12:07:53Z","git_url":"git://github.com/freizl/hoauth2.git","ssh_url":"git@github.com:freizl/hoauth2.git","clone_url":"https://github.com/freizl/hoauth2.git","svn_url":"https://github.com/freizl/hoauth2","homepage":"http://hackage.haskell.org/package/hoauth2","size":159,"stargazers_count":46,"watchers_count":46,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":6,"forks":25,"open_issues":6,"watchers":46,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/freizl/hoauth2/pulls/50"},"html":{"href":"https://github.com/freizl/hoauth2/pull/50"},"issue":{"href":"https://api.github.com/repos/freizl/hoauth2/issues/50"},"comments":{"href":"https://api.github.com/repos/freizl/hoauth2/issues/50/comments"},"review_comments":{"href":"https://api.github.com/repos/freizl/hoauth2/pulls/50/comments"},"review_comment":{"href":"https://api.github.com/repos/freizl/hoauth2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/freizl/hoauth2/pulls/50/commits"},"statuses":{"href":"https://api.github.com/repos/freizl/hoauth2/statuses/408b65b8f5c4de6dc6793359fe02890c77ebce22"}}}}
{"actor":{"display_login":"freizl"}}