Skip to content

Commit

Permalink
fix #15
Browse files Browse the repository at this point in the history
  • Loading branch information
schwaen committed Apr 30, 2018
1 parent c8ac24d commit bf20d34
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/AbstractClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,13 @@ public function addRating($uuid, $score, $comment = '')
$this->exec('ratings', false, array(CURLOPT_POSTFIELDS => json_encode(array('uuid'=>$uuid, 'score'=>$score, 'comment'=>$comment))));
return true;
}

/**
* (non-PHPdoc)
* @see \Aiphilos\Api\ClientInterface::getHealth()
*/
public function getHealth()
{
return $this->exec('health', false, array(CURLOPT_POST => false));
}
}
7 changes: 7 additions & 0 deletions src/ClientInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,11 @@ public function getDefaultLanguage();
* @param string $comment
*/
public function addRating($uuid, $sore, $comment = '');

/**
* Returns the current status (health) of the API
*
* @return string
*/
public function getHealth();
}

0 comments on commit bf20d34

Please sign in to comment.