Example #1
0
 /**
  * Upload an image to images collection
  *
  * @param string $id
  * @param string $name
  * @param Image $data
  * @throws SoapApiException
  */
 public function imageInsert($id, $name, Image $data)
 {
     $result = new SoapRequestResult($this->soapClient->imageInsert($id, $name, base64_encode($data->getFileContents())));
     $this->checkRequestResultSuccess($result);
 }