File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 22-- <http://developer.github.com/v3/orgs/members/>.
33module Github.Organizations.Members (
44 membersOf
5+ ,membersOf'
56,module Github.Data
67) where
78
89import Github.Data
910import Github.Private
1011
11- -- | All the users who are members of the specified organization.
12+ -- | All the users who are members of the specified organization,
13+ -- | with or without authentication.
14+ --
15+ -- > membersOf' (Just $ GithubOAuth "token") "thoughtbot"
16+ membersOf' :: Maybe GithubAuth -> String -> IO (Either Error [GithubOwner ])
17+ membersOf' auth organization = githubGet' auth [" orgs" , organization, " members" ]
18+
19+ -- | All the users who are members of the specified organization,
20+ -- | without authentication.
1221--
1322-- > membersOf "thoughtbot"
1423membersOf :: String -> IO (Either Error [GithubOwner ])
15- membersOf organization = githubGet [ " orgs " , organization, " members " ]
24+ membersOf = membersOf' Nothing
You can’t perform that action at this time.
0 commit comments