github-0.23: Access to the GitHub API, v3.

LicenseBSD-3-Clause
MaintainerOleg Grenrus <oleg.grenrus@iki.fi>
Safe HaskellNone
LanguageHaskell2010

GitHub.Endpoints.Organizations

Description

The orgs API as described on http://developer.github.com/v3/orgs/.

Synopsis

Documentation

publicOrganizationsFor :: Name User -> IO (Either Error (Vector SimpleOrganization)) Source #

List user organizations. The public organizations for a user, given the user's login.

publicOrganizationsFor "mike-burns"

publicOrganizationsFor' :: Maybe Auth -> Name User -> IO (Either Error (Vector SimpleOrganization)) Source #

The public organizations for a user, given the user's login, with authorization

publicOrganizationsFor' (Just $ BasicAuth "github-username" "github-password") "mike-burns"

publicOrganization :: Name Organization -> IO (Either Error Organization) Source #

Query an organization. Details on a public organization. Takes the organization's login.

publicOrganization "thoughtbot"

publicOrganization' :: Maybe Auth -> Name Organization -> IO (Either Error Organization) Source #

Details on a public organization. Takes the organization's login.

publicOrganization' (Just $ BasicAuth "github-username" "github-password") "thoughtbot"