module Github.Repos.Subscribing (
subscribersFor
,subscribersFor'
,reposSubscribedToBy
,reposSubscribedToBy'
,module Github.Data
) where
import Github.Data
import Github.Private
subscribersFor :: String -> String -> IO (Either Error [GithubOwner])
subscribersFor = subscribersFor' Nothing
subscribersFor' :: Maybe GithubAuth -> String -> String -> IO (Either Error [GithubOwner])
subscribersFor' auth userName reqRepoName =
githubGet' auth ["repos", userName, reqRepoName, "subscribers"]
reposSubscribedToBy :: String -> IO (Either Error [Repo])
reposSubscribedToBy = reposSubscribedToBy' Nothing
reposSubscribedToBy' :: Maybe GithubAuth -> String -> IO (Either Error [Repo])
reposSubscribedToBy' auth userName = githubGet' auth ["users", userName, "subscriptions"]