CommentsClient
class CommentsClient
Traits
Properties
protected | $curl | from CICommon | |
protected | $api_url | from CICommon |
Methods
mixed
list(string $gist_id)
List comments on a gist.
mixed
get(string $gist_id, int $comment_id)
Get a single comment.
mixed
create(string $gist_id, string $body, string $method = 'post')
Create a comment.
mixed
edit(string $gist_id, string $body)
Edit a comment.
mixed
delete(string $gist_id, int $comment_id)
Delete a comment.
Details
in CICommon at line 18
__construct(Curl $curl, string $api_url)
CICommon constructor.
at line 22
mixed
list(string $gist_id)
List comments on a gist.
at line 34
mixed
get(string $gist_id, int $comment_id)
Get a single comment.
at line 48
mixed
create(string $gist_id, string $body, string $method = 'post')
Create a comment.
201
at line 60
mixed
edit(string $gist_id, string $body)
Edit a comment.
at line 74
mixed
delete(string $gist_id, int $comment_id)
Delete a comment.
204