comments.md
May 18, 2015 ยท View on GitHub
Gists / Comments API
Back to the "Gists API" | Back to the navigation
Wraps GitHub Issue Comments API.
List a gist comments
// for gist https://gist.github.com/danvbe/4476697
$comments = $client->api('gist')->comments()->all('4476697');
4476697: the id of the gist
Show a gist comment
$comment = $client->api('gist')->comments()->show('4476697', '779656');
4476697: the id of the gist779656: the id of the comment
Create a gist comment
$client->api('gist')->comments()->create('4476697', 'Hello World');
4476697: the id of the gistHello World: the body of the comment
Update a gist comment
$client->api('gist')->comments()->create('4476697', '123456', 'Hello Dolly');
4476697: the id of the gist123456: the id of the commentHello Dolly: the body of the updated comment
Remove a gist comment
$client->api('gist')->comments()->remove('4476697', '123456');
4476697: the id of the gist123456: the id of the comment