getHook method
Fetches a single hook by id
.
API docs: https://developer.github.com/v3/orgs/hooks/#get-single-hook
Implementation
Future<Hook> getHook(String org, int id) =>
github.getJSON('/orgs/$org/hooks/$id',
convert: (dynamic i) => Hook.fromJson(i)..repoName = org);