module GitHub.Endpoints.Users.Followers (
usersFollowing,
usersFollowedBy,
usersFollowingR,
usersFollowedByR,
module GitHub.Data,
) where
import GitHub.Data
import GitHub.Internal.Prelude
import GitHub.Request
import Prelude ()
usersFollowing :: Name User -> IO (Either Error (Vector SimpleUser))
usersFollowing user =
executeRequest' $ usersFollowingR user FetchAll
usersFollowingR :: Name User -> FetchCount -> Request k (Vector SimpleUser)
usersFollowingR user =
pagedQuery ["users", toPathPart user, "followers"] []
usersFollowedBy :: Name User -> IO (Either Error (Vector SimpleUser))
usersFollowedBy user =
executeRequest' $ usersFollowedByR user FetchAll
usersFollowedByR :: Name User -> FetchCount -> Request k (Vector SimpleUser)
usersFollowedByR user =
pagedQuery ["users", toPathPart user, "following"] []