@param string $listId
@param int $version
@param array|ArrayObject $params

@throws NotFoundException The resource data does not exist

@return ValuesList
160759
public function loadVersion($listId, $version, $params = [])
    {
        return $this->client()->get('lists/{listId}/{version}', ['listId' => $listId, 'version' => $version] + (array) $params);
    }
193214
public function setList($id, $listId)
    {
        return $this->put($this->getPath().'/'.rawurlencode($id).'/idList', array('value' => $listId));
    }
696904
public function deleteFieldData( VersionInfo $versionInfo, array $fieldIds )
    {
        $connection = $this->getConnection();

        $query = $connection->createDeleteQuery();
        $query
            ->deleteFrom( $connection->quoteTable( self::TABLE ) )
            ->where(
                $query->expr->lAnd(
                    $query->expr->in(
                        $connection->quoteColumn( "objectattribute_id" ),
                        $fieldIds
                    ),
                    $query->expr->eq(
                        $connection->quoteColumn( "objectattribute_version" ),
                        $query->bindValue( $versionInfo->versionNo, null, PDO::PARAM_INT )
                    )
                )
            );

        $query->prepare()->execute();
    }
999577
public function getList($params = array(), ServiceManager $sm) 
	{
		//var_dump($params); exit();
		$paginator = $this->getPaginator($params);
		
		$data = array();
		foreach($paginator as $post) {
			$data[] = $this->get($post, $sm); // verificare che cazzo fa sto get!!!!!
		}

		// Denormalizzazione parametri per creazione url da route
		$queryParams = array();
		$routeParams = array();
		$fields = isset($params['field']) ? array_values($params['field']) : array();
		$values = isset($params['value']) ? array_values($params['value']) : array();
		foreach($fields as $key => $field) {
			if(in_array($field, array('location', 'purpose', 'category'))) {
				$routeParams[$field] = $values[$key];
				continue;
			}
			$queryParams[$field] = $values[$key];
		}
		
		// remove user key from params if exists and if length 40 
		// (sha1 hash) add current
		$routeName = 'DocumentRegex/type/category/page';
		if(array_key_exists('account', $queryParams) && 40 == strlen($queryParams['account'])) {
			unset($queryParams['account']);
			$queryParams['current'] = true;
			$routeName = 'DocumentAccount/page';
		}
		
		return $this->getPaginationData($sm, $paginator, $data, $routeName, $routeParams, $queryParams);
	}
50037
public function getLeadsByList($listId, $args = array(), $returnRaw = false)
    {
        $args['listId'] = $listId;

        return $this->getResult('getLeadsByList', $args, false, $returnRaw);
    }
69486
public static final ApiDefinitionNotFoundException apiDefinitionNotFoundException(String apiId, String version) {
        return new ApiDefinitionNotFoundException(Messages.i18n.format("ApiDefinitionDoesNotExist", apiId, version)); //$NON-NLS-1$
    }
1070977
public function show(string $version, array $params = [])
    {
        $path = $this->buildVersionsPath($version);

        return $this->get($path, $params);
    }
731459
protected function appendAndNormalizeIfNotNull(string $key, $value, array $list = []) : array
    {
        if (null !== $value) {
            $list[$key] = $this->typeDocNormalizer->normalize($value);
        }

        return $list;
    }
523476
private function createList($listId, $listParameters)
    {
        $providerServiceKey = $listParameters['subscriber_provider'];
        $provider = $this->providerFactory->create($providerServiceKey);
        $subscriberList = new SubscriberList($listId, $provider, $listParameters['merge_fields']);
        $subscriberList->setWebhookUrl($listParameters['webhook_url']);
        $subscriberList->setWebhookSecret($listParameters['webhook_secret']);

        return $subscriberList;
    }
325852
function processVersionLists (entity, version, versions) {
  quantum.select(entity)
    .selectAll('versionList', {recursive: true})
    .forEach(versionList => {
      versionList.content(versions.map(v => {
        return { type: 'version', params: [v], content: [] }
      }))
      versionList.add({ type: 'current', params: [version], content: [] })
    })
}
1156686
public ListItem<MovieInfo> getList(String listId) throws MovieDbException {
        TmdbParameters parameters = new TmdbParameters();
        parameters.add(Param.ID, listId);

        URL url = new ApiUrl(apiKey, MethodBase.LIST).buildUrl(parameters);
        String webpage = httpTools.getRequest(url);

        try {
            return MAPPER.readValue(webpage, new TypeReference<ListItem<MovieInfo>>() {
            });
        } catch (IOException ex) {
            throw new MovieDbException(ApiExceptionType.MAPPING_FAILED, "Failed to get list", url, ex);
        }
    }
820806
public function install($version = null, array $options = array())
    {
        $module = $this->utils()->whichModule($this);
        if ($version === null) {
            $version = $this->utils()->getModuleVersion($module);
            
            if (!$version) {
                throw new MissingParameterException(
                    'Parameter version is missing and cannot be autodetected');
            }
        }
        
        return $this->utils()->install($module, $version, $options);
    }
893962
public function addEditList($listId, array $options)
    {
        $xml = "<options>";

        foreach ($options as $option) {
            $xml .= "<option";

            if (isset($option['id'])) {
                $xml .= " id=\"{$option['id']}\"";
            }

            if (isset($option['archived'])) {
                $xml .= " archived=\"{$option['archived']}\"";
            }

            $xml .= ">{$option['value']}</option>";
        }

        $xml .= "</options>";

        return $this->put("meta/lists/{$listId}", $xml);
    }
665966
private function createListRepresentation($request, $locale, $productId)
    {
        /** @var RestHelperInterface $restHelper */
        $restHelper = $this->get('sulu_core.doctrine_rest_helper');

        /** @var DoctrineListBuilderFactory $factory */
        $factory = $this->get('sulu_core.doctrine_list_builder_factory');

        $listBuilder = $factory->create(static::$productEntityName);

        $restHelper->initializeListBuilder(
            $listBuilder,
            $this->getVariantAttributeManager()->retrieveFieldDescriptors($locale)
        );

        // Get all variant-attributes for a certain product-id.
        $listBuilder->where(
            $this->getProductManager()->getFieldDescriptors($locale)['id'],
            $productId
        );

        $list = new ListRepresentation(
            $listBuilder->execute(),
            self::$entityKey,
            'get_product_productvariant_attributes',
            array_merge(
                ['productId' => $productId],
                $request->query->all()
            ),
            $listBuilder->getCurrentPage(),
            $listBuilder->getLimit(),
            $listBuilder->count()
        );

        return $list;
    }
240666
public function update ($list_name, $ID, array $data) {
		// Add ID to item
		$data['ID'] = $ID;
		return $this->updateMultiple($list_name, array($data));
	}
567040
public StatusCode deleteList(String sessionId, String listId) throws MovieDbException {
        TmdbParameters parameters = new TmdbParameters();
        parameters.add(Param.ID, listId);
        parameters.add(Param.SESSION_ID, sessionId);

        URL url = new ApiUrl(apiKey, MethodBase.LIST).buildUrl(parameters);
        String webpage = httpTools.deleteRequest(url);

        try {
            return MAPPER.readValue(webpage, StatusCode.class);
        } catch (IOException ex) {
            throw new MovieDbException(ApiExceptionType.MAPPING_FAILED, "Failed to delete list", url, ex);
        }
    }
879668
public function getList($id, array $params = array())
    {
        return $this->get($this->getPath().'/'.rawurlencode($id).'/list', $params);
    }