KnpLabs/php-github-api — pull request #6 by leevigraham (2012-07-15 05:04:44+00:00)
Title: Adding Hooks Api

Hey guys,

This isn't complete but I wanted to kick off a discussion. I want to add the [Repo Hooks Api](http://developer.github.com/v3/repos/hooks/) to the library but I'm not 100% sure where.

1. The Repo Hooks Api is listed under Repo (just like Teams is under Organisations) in the Github Docs.
2. The library has getTeams() & addTeams() in the Organisation Api

So based on that I'm assuming the correct spot for the Repo Hook Api methods is in the Repo Api library.

Here's the new methods I plan to implement:

* getRepoHooks() (naming convention based on [Repo::getRepoDownloads()](https://github.com/leevigraham/php-github-api/blob/master/lib/Github/Api/Repo.php#L400)
* deleteRepoHook() (naming convention based on [Repo::deleteRepoDownload()](https://github.com/leevigraham/php-github-api/blob/master/lib/Github/Api/Repo.php#L415)
* getRepoHook()
* addRepoHook()
* editRepoHook()
* testRepoHook()

Also it looks like there is some inconsistency with naming methods. [Repo::getRepoDownloads()](https://github.com/leevigraham/php-github-api/blob/master/lib/Github/Api/Repo.php#L400) vs [Organisation::getTeam()](https://github.com/leevigraham/php-github-api/blob/master/lib/Github/Api/Organization.php#L90)

Thoughts?