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

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

GitHub.Endpoints.Organizations.Members

Description

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

Synopsis

Documentation

membersOf :: Name Organization -> IO (Either Error (Vector SimpleUser)) Source #

All the users who are members of the specified organization, | without authentication.

membersOf "thoughtbot"

membersOf' :: Maybe Auth -> Name Organization -> IO (Either Error (Vector SimpleUser)) Source #

All the users who are members of the specified organization, | with or without authentication.

membersOf' (Just $ OAuth "token") "thoughtbot"

membersOfR :: Name Organization -> FetchCount -> Request k (Vector SimpleUser) Source #

All the users who are members of the specified organization.

See https://developer.github.com/v3/orgs/members/#members-list

isMemberOf :: Name User -> Name Organization -> IO (Either Error Bool) Source #

Check if a user is a member of an organization, | without authentication.

isMemberOf "phadej" "haskell-infra"

isMemberOf' :: Maybe Auth -> Name User -> Name Organization -> IO (Either Error Bool) Source #

Check if a user is a member of an organization, | with or without authentication.

isMemberOf' (Just $ OAuth "token") "phadej" "haskell-infra"