Exemplo n.º 1
0
 /**
  * Submit an image to the moderation service.
  * @param string|array $params (string) URL of image to verify, (array) multiple parameters
  * @return string Image ID
  * @link http://www.webpurify.com/image-moderation/documentation/methods/webpurify.live.imgcheck.php
  */
 public function imgCheck($params = array())
 {
     if (is_string($params)) {
         $params = array('imgurl' => $params);
     }
     WebPurify::requireParams($params, array('imgurl'));
     $response = $this->request('imgcheck', $params);
     return (string) $response->imgid;
 }