src/Iadvize/ApiRestClient/Client.php
public function createResource($name, array $fields = [])
    {
        $this->lastRequest = new Request();
        $this->lastRequest->setMode(Request::MODE_CREATE);
        $this->lastRequest->setResourceName($name);
        $this->lastRequest->setFields($fields);

        $response = $this->proceed();

        return $response;
    }
public function createResource($name, array $fields = [])
    {
        $this->lastRequest = new Request();
        $this->lastRequest->setMode(Request::MODE_CREATE);
        $this->lastRequest->setResourceName($name);
        $this->lastRequest->setFields($fields);

        $response = $this->proceed();

        return $response;
    }
Create resource

@param string $name   Name
@param array  $fields Fields

@return Response\Data