public function registerImage(RegisterImageData $request) { $result = null; $options = $request->getQueryArrayBare(); $response = $this->client->call(ucfirst(__FUNCTION__), $options); if ($response->getError() === false) { $sxml = simplexml_load_string($response->getRawContent()); $result = (string) $sxml->imageId; } return $result; }