module Github.GitData.Blobs (
blob,
blob',
blobR,
module Github.Data,
) where
import Github.Auth
import Github.Data
import Github.Request
blob' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> Name Blob -> IO (Either Error Blob)
blob' auth user repo sha =
executeRequestMaybe auth $ blobR user repo sha
blob :: Name GithubOwner -> Name Repo -> Name Blob -> IO (Either Error Blob)
blob = blob' Nothing
blobR :: Name GithubOwner -> Name Repo -> Name Blob -> GithubRequest k Blob
blobR user repo sha =
GithubGet ["repos", toPathPart user, toPathPart repo, "git", "blobs", toPathPart sha] []