packages feed

hoauth2 0.4.6 → 0.4.7

raw patch · 3 files changed

+11/−11 lines, 3 filesdep ~bytestringPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: bytestring

API changes (from Hackage documentation)

Files

example/Facebook/test.hs view
@@ -37,11 +37,11 @@     mgr <- newManager conduitManagerSettings     let (url, body) = accessTokenUrl facebookKey code     resp <- doJSONPostRequest mgr facebookKey url (body ++ [("state", "test")])-    print (resp :: OAuth2Result AccessToken)-    case resp of-      Right token -> print token-        --userinfo mgr token >>= print-        --userinfo' mgr token >>= print+    case (resp :: OAuth2Result AccessToken) of+      Right token -> do+                     print token+                     --userinfo mgr token >>= print+                     userinfo' mgr token >>= print       Left l -> print l     closeManager mgr 
example/Keys.hs.sample view
@@ -27,15 +27,15 @@                    , oauthClientSecret = "xxxxxxxxxxxxxxxxxxxxxx"                    , oauthCallback = Just "http://127.0.0.1:9988/googleCallback"                    , oauthOAuthorizeEndpoint = "https://accounts.google.com/o/oauth2/auth"-                   , oauthAccessTokenEndpoint = "https://accounts.google.com/o/oauth2/token"+                   , oauthAccessTokenEndpoint = "https://www.googleapis.com/oauth2/v3/token"                    }  facebookKey :: OAuth2 facebookKey = OAuth2 { oauthClientId = "xxxxxxxxxxxxxxx"                      , oauthClientSecret = "xxxxxxxxxxxxxxxxxxxxxx"-                     , oauthCallback = Just "https://developers.facebook.com/tools/debug"+                     , oauthCallback = Just "http://test.com/cb"                      , oauthOAuthorizeEndpoint = "https://www.facebook.com/dialog/oauth"-                     , oauthAccessTokenEndpoint = "https://graph.facebook.com/oauth/access_token"+                     , oauthAccessTokenEndpoint = "https://graph.facebook.com/v2.3/oauth/access_token"                      }  doubanKey :: OAuth2
hoauth2.cabal view
@@ -1,6 +1,6 @@ Name:                hoauth2--- (http://www.haskell.org/haskellwiki/Package_versioning_policy)-Version:             0.4.6+-- https://wiki.haskell.org/Package_versioning_policy+Version:             0.4.7  Synopsis:            hoauth2 Description:@@ -60,7 +60,7 @@     base              >= 4      && < 5,     aeson             >= 0.7    && < 0.9,     text              >= 0.11   && < 1.3,-    bytestring        >= 0.10.4 && < 0.10.5,+    bytestring        >= 0.9    && < 0.11,     http-conduit      >= 2.0    && < 2.2,     http-types        >= 0.8    && < 0.9