module GitHub.Endpoints.Gists.Comments (
commentsOn,
commentsOnR,
comment,
gistCommentR,
module GitHub.Data,
) where
import GitHub.Data
import GitHub.Internal.Prelude
import GitHub.Request
import Prelude ()
commentsOn :: Name Gist -> IO (Either Error (Vector GistComment))
commentsOn gid =
executeRequest' $ commentsOnR gid FetchAll
commentsOnR :: Name Gist -> FetchCount -> Request k (Vector GistComment)
commentsOnR gid =
pagedQuery ["gists", toPathPart gid, "comments"] []
comment :: Id GistComment -> IO (Either Error GistComment)
comment cid =
executeRequest' $ gistCommentR cid
gistCommentR :: Id GistComment -> Request k GistComment
gistCommentR cid =
query ["gists", "comments", toPathPart cid] []