Github.GistSourceThe Gist module provides access to the GitHub gist API.
val for_user :
?token:Token.t ->
?since:string ->
user:string ->
unit ->
Github_t.gist Stream.tfor_user ?since ~user () is a stream of gists that belong to user. If ?since is an ISO 8601 timestamp, only gists updated since this time are returned.
all ?since () is a stream of all of the gists for the current token's user or all public gists if invoked without a current token. If ?since is an ISO 8601 timestamp, only gists updated since this time are returned.
all_public ?since () is a stream of all of the public gists for the current token's user or all public gists if invoked without a current token. If ?since is an ISO 8601 timestamp, only gists updated since this time are returned.
starred ?since () is a stream of all starred gists for the current token's user. If ?since is an ISO 8601 timestamp, only gists updated since this time are returned.
get ~id () is the gist id.
val create :
?token:Token.t ->
gist:Github_t.new_gist ->
unit ->
Github_t.gist Response.t Monad.tcreate ~gist () is a newly created gist described by gist.
val update :
?token:Token.t ->
id:string ->
gist:Github_t.update_gist ->
unit ->
Github_t.gist Response.t Monad.tupdate ~id ~gist () is the updated gist id as described by gist.
commits ~id () is a stream of commits for gist id.
star ~id () activates after gist id is marked as starred by the current token's user.
unstar ~id () activates after gist id is marked as not starred by the current token's user.
fork ~id () is a newly forked gist from gist id.
forks ~id () is a stream of forks of gist id.
delete ~id () activates after gist id has been deleted.