Back to the "Gists API" | Back to the navigation
Wraps GitHub Issue Comments API.
// for gist https://gist.github.com/danvbe/4476697
$comments = $client->api('gist')->comments()->all('4476697');4476697: the id of the gist
$comment = $client->api('gist')->comments()->show('4476697', '779656');4476697: the id of the gist779656: the id of the comment
$client->api('gist')->comments()->create('4476697', 'Hello World');4476697: the id of the gistHello World: the body of the 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
$client->api('gist')->comments()->remove('4476697', '123456');4476697: the id of the gist123456: the id of the comment