github-0.14.0: Access to the Github API, v3.

Safe HaskellNone
LanguageHaskell2010

Github.Organizations

Description

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

Synopsis

Documentation

publicOrganizationsFor :: Name GithubOwner -> 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 GithubAuth -> Name GithubOwner -> IO (Either Error (Vector SimpleOrganization)) Source

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

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

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

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

publicOrganization "thoughtbot"

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

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

publicOrganization' (Just ("github-username", "github-password")) "thoughtbot"