module Github.Users.Followers (
usersFollowing,
usersFollowedBy,
usersFollowingR,
usersFollowedByR,
module Github.Data,
) where
import Data.Vector (Vector)
import Github.Data
import Github.Request
usersFollowing :: Name GithubOwner -> IO (Either Error (Vector SimpleOwner))
usersFollowing user =
executeRequest' $ usersFollowingR user Nothing
usersFollowingR :: Name GithubOwner -> Maybe Count -> GithubRequest k (Vector SimpleOwner)
usersFollowingR userName = GithubPagedGet ["users", toPathPart userName, "followers"] []
usersFollowedBy :: Name GithubOwner -> IO (Either Error (Vector SimpleOwner))
usersFollowedBy user =
executeRequest' $ usersFollowedByR user Nothing
usersFollowedByR :: Name GithubOwner -> Maybe Count -> GithubRequest k (Vector SimpleOwner)
usersFollowedByR userName = GithubPagedGet ["users", toPathPart userName, "following"] []