License | BSD-3-Clause |
---|---|
Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
Safe Haskell | None |
Language | Haskell2010 |
The gists API as described at http://developer.github.com/v3/gists/.
Synopsis
- gists :: Name Owner -> IO (Either Error (Vector Gist))
- gists' :: Maybe Auth -> Name Owner -> IO (Either Error (Vector Gist))
- gistsR :: Name Owner -> FetchCount -> Request k (Vector Gist)
- gist :: Name Gist -> IO (Either Error Gist)
- gist' :: Maybe Auth -> Name Gist -> IO (Either Error Gist)
- gistR :: Name Gist -> Request k Gist
- starGist :: Auth -> Name Gist -> IO (Either Error ())
- starGistR :: Name Gist -> GenRequest MtUnit RW ()
- unstarGist :: Auth -> Name Gist -> IO (Either Error ())
- unstarGistR :: Name Gist -> GenRequest MtUnit RW ()
- deleteGist :: Auth -> Name Gist -> IO (Either Error ())
- deleteGistR :: Name Gist -> GenRequest MtUnit RW ()
- module GitHub.Data
Documentation
gists :: Name Owner -> IO (Either Error (Vector Gist)) Source #
The list of all public gists created by the user.
gists "mike-burns"
gists' :: Maybe Auth -> Name Owner -> IO (Either Error (Vector Gist)) Source #
The list of all gists created by the user
gists' (Just $ BasicAuth "github-username" "github-password") "mike-burns"
gistsR :: Name Owner -> FetchCount -> Request k (Vector Gist) Source #
List gists. See https://developer.github.com/v3/gists/#list-gists
gist' :: Maybe Auth -> Name Gist -> IO (Either Error Gist) Source #
A specific gist, given its id, with authentication credentials
gist' (Just $ BasicAuth "github-username" "github-password") "225074"
gistR :: Name Gist -> Request k Gist Source #
Query a single gist. See https://developer.github.com/v3/gists/#get-a-single-gist
starGist :: Auth -> Name Gist -> IO (Either Error ()) Source #
Star a gist by the authenticated user.
starGist (BasicAuth "github-username" "github-password") "225074"
starGistR :: Name Gist -> GenRequest MtUnit RW () Source #
Star a gist by the authenticated user. See https://developer.github.com/v3/gists/#star-a-gist
unstarGist :: Auth -> Name Gist -> IO (Either Error ()) Source #
Unstar a gist by the authenticated user.
unstarGist (BasicAuth "github-username" "github-password") "225074"
unstarGistR :: Name Gist -> GenRequest MtUnit RW () Source #
Unstar a gist by the authenticated user. See https://developer.github.com/v3/gists/#unstar-a-gist
deleteGist :: Auth -> Name Gist -> IO (Either Error ()) Source #
Delete a gist by the authenticated user.
deleteGist (BasicAuth "github-username" "github-password") "225074"
deleteGistR :: Name Gist -> GenRequest MtUnit RW () Source #
Delete a gist by the authenticated user. See https://developer.github.com/v3/gists/#delete-a-gist
module GitHub.Data