getHook method

Future<Hook> getHook(
  1. String org,
  2. int id
)

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,
);