code: public List<ProjectHook> getHooks(Object projectIdOrPath, int page, int perPage) throws GitLabApiException {
          Response response = get(Response.Status.OK, getPageQueryParams(page, perPage), "projects", getProjectIdOrPath(projectIdOrPath), "hooks");
          return (response.readEntity(new GenericType<List<ProjectHook>>() {}));
      }
docs: Get list of project hooks in the specified page range.
  
  <pre><code>GET /projects/:id/hooks</code></pre>
  
  @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
  @param page the page to get
  @param perPage the number of ProjectHook instances per page
  @return a list of project hooks for the specified project in the specified page range
  @throws GitLabApiException if any exception occurs