APIProject::getFetch PHP Method

getFetch() protected method

protected getFetch ( integer $ID ) : SS_HTTPResponse
$ID integer
return SS_HTTPResponse
    protected function getFetch($ID)
    {
        $ping = DNGitFetch::get()->byID($ID);
        if (!$ping) {
            return $this->message('Fetch not found', 404);
        }
        $output = array('status' => $ping->ResqueStatus(), 'message' => $ping->LogContent());
        return $this->getAPIResponse($output);
    }