public function create(array $fields)
    {
        $this->assertValidFields($fields);

        $request = new Request('customizations');
        $request->setParams(['fields' => $fields]);

        $response = $this->client->post($request);

        $this->assertSuccessResponse($response);

        return $response->getData();
    }
public function create(array $fields)
    {
        $this->assertValidFields($fields);

        $request = new Request('customizations');
        $request->setParams(['fields' => $fields]);

        $response = $this->client->post($request);

        $this->assertSuccessResponse($response);

        return $response->getData();
    }
public function create ( array $ fields ) { $ this -> assertValidFields ( $ fields ) ; $ request = new Request ( 'customizations' ) ; $ request -> setParams ( [ 'fields' => $ fields ] ) ; $ response = $ this -> client -> post ( $ request ) ; $ this -> assertSuccessResponse ( $ response ) ; return $ response -> getData ( ) ; }
Create fields.

@param array $fields Array of fields {@link https://rule.se/apidoc/#subscriber-fields-create-groups-and-fields-post}
@return array Response result
@throws \Exception
Create fields .