Bindings to GitHub API using servant. http://github.com/finlay/servant-github#readme
|Latest on Hackage:||0.1.0.6|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
This package provides a servant-client based client for accessing the GitHub API v3.
The github client is provided through the
which provides support for managing the user-agent (a requirement
for github), an authentication token, and, pagination
support when the resulting value is a list.
import System.Environment import Data.String import Network.GitHub main = do token <- fmap fromString <$> lookupEnv "GITHUB_TOKEN" result <- runGitHub userOrganisations token case result of Left e -> print e Right orgs -> mapM_ print orgs