/** * Fetch timetracking settings for the project. * Response includes at least an 'enabled' (0 | 1) field. * If Enabled == 1, you will also receive a list of enabled fields that can be queried using the project/customField api. * @param Entity\Project $project * @return mixed */ private function getTimeTrackingSettings(Entity\Project $project) { $response = $this->browser->get($this->options['uri'] . '/rest/admin/project/' . $project->getName() . '/timetracking', $this->buildHeaders()); if (!$response->isOk()) { throw new Exception\APIException(__METHOD__, $response); } return json_decode($response->getContent(), true); }