module Github.Organizations.Members (
membersOf,
membersOf',
membersOfR,
module Github.Data,
) where
import Data.Vector (Vector)
import Github.Auth
import Github.Data
import Github.Request
membersOf' :: Maybe GithubAuth -> Name Organization -> IO (Either Error (Vector SimpleOwner))
membersOf' auth org =
executeRequestMaybe auth $ membersOfR org Nothing
membersOf :: Name Organization -> IO (Either Error (Vector SimpleOwner))
membersOf = membersOf' Nothing
membersOfR :: Name Organization -> Maybe Count -> GithubRequest k (Vector SimpleOwner)
membersOfR organization = GithubPagedGet ["orgs", toPathPart organization, "members"] []