Ehee v0.0.1 Ehee.Gists
The Gist Webhooks API
Summary
Functions
Create a comment
Delete a comment
Delete a gist
Edit a gist
Edit a comment
List authenticated users gists
List gist on a gist
List all public gists
List public gists for specified user
Get a single gist
Get a single comment
Star a gist
Check if a gist is starred
Unstar a gist
Functions
Specs
create(Ehee.Credential.t, binary, boolean, binary, binary) :: Ehee.response
Create a gist
Example
Ehee.Gists.create(credential, "gist description", true, "file1", "sample gist")
More info at: https://developer.github.com/v3/gists/#create-a-gist
Specs
create_comment(Credentail.t, binary | integer, binary) :: Ehee.response
Create a comment
Example
Ehee.Gists.create_comment(credential, 1234567, "gist comment!")
More info at: https://developer.github.com/v3/gists/comments/#create-a-comment
Specs
delete_comment(Ehee.Credential.t, binary | integer, binary | integer) :: Ehee.response
Delete a comment
Example
Ehee.Gists.delete_comment(credential, 1234567, 1234567)
More info at: https://developer.github.com/v3/gists/comments/#delete-a-comment
Specs
destroy(Ehee.Credential.t, binary | integer) :: Ehee.response
Delete a gist
Example
Ehee.Gists.destroy(credential, 1234567)
More info at: https://developer.github.com/v3/gists/#delete-a-gist
Specs
edit(Ehee.Credential.t, binary | integer, binary, binary) :: Ehee.response
Edit a gist
Example
Ehee.Gists.edit(credential, 1234567, "files", "sample gist")
More info at: https://developer.github.com/v3/gists/#edit-a-gist
Specs
edit_comment(Credentail.t, binary | integer, binary | integer, binary) :: Ehee.response
Edit a comment
Example
Ehee.Gists.edit_coment(credential, 1234567, 1234567, "gist comment!")
More info at: https://developer.github.com/v3/gists/comments/#edit-a-comment
Specs
list(Ehee.Credential.t) :: Ehee.response
List authenticated users gists
Example
Ehee.Gists.list(credential)
More info at: https://developer.github.com/v3/gists/#list-a-users-gists
Specs
list_comments(Credentail.t, binary | integer) :: Ehee.response
List gist on a gist
Example
Ehee.Gists.list_comments(credential, 1234567)
More info at: https://developer.github.com/v3/gists/comments/#list-comments-on-a-gist
Specs
list_public(Ehee.Credential.t) :: Ehee.response
List all public gists
Example
Ehee.Gists.list_public(credential)
More info at: https://developer.github.com/v3/gists/#list-all-public-gists
Specs
list_users(Ehee.Credential.t, binary) :: Ehee.response
List public gists for specified user
Example
Ehee.Gists.list_users(credential, "username")
More info at: https://developer.github.com/v3/gists/#list-a-users-gists
Specs
show(Ehee.Credential.t, binary | integer) :: Ehee.response
Get a single gist
Example
Ehee.Gists.show(credential, 1234567)
More info at: https://developer.github.com/v3/gists/#get-a-single-gist
Specs
show_comment(Credentail.t, binary | integer, binary | integer) :: Ehee.response
Get a single comment
Example
Ehee.Gists.show_comment(credential, 1234567, 1234567)
More info at: https://developer.github.com/v3/gists/comments/#get-a-single-comment
Specs
star(Ehee.Credential.t, binary | integer) :: Ehee.response
Star a gist
Example
Ehee.Gists.star(credential, 1234567)
More info at: https://developer.github.com/v3/gists/#star-a-gist
Specs
starred?(Ehee.Credential.t, binary | integer) :: boolean
Check if a gist is starred
Example
Ehee.Gists.starred?(credential, 1234567)
More info at: https://developer.github.com/v3/gists/#check-if-a-gist-is-starred
Specs
unstar(Credentail.t, binary | integer) :: Ehee.response
Unstar a gist
Example
Ehee.Gists.unstar(credential, 1234567)
More info at: https://developer.github.com/v3/gists/#unstar-a-gist