module Github.Gists.Comments (
commentsOn,
commentsOnR,
comment,
gistCommentR,
module Github.Data,
) where
import Data.Vector (Vector)
import Github.Data
import Github.Request
commentsOn :: Name Gist -> IO (Either Error (Vector GistComment))
commentsOn gid =
executeRequest' $ commentsOnR gid Nothing
commentsOnR :: Name Gist -> Maybe Count -> GithubRequest k (Vector GistComment)
commentsOnR gid =
GithubPagedGet ["gists", toPathPart gid, "comments"] []
comment :: Id GistComment -> IO (Either Error GistComment)
comment cid =
executeRequest' $ gistCommentR cid
gistCommentR :: Id GistComment -> GithubRequest k GistComment
gistCommentR cid =
GithubGet ["gists", "comments", toPathPart cid] []