lib/Janrain/Api/Capture/Clients.php
public function setWhiteList($clientId, array $addresses)
	{
		$params = array(
			'for_client_id' => $clientId,
			'whitelist'     => json_encode($addresses),
		);

		// If empty, features are set for the owner client.
		if (!$params['for_client_id']) {
			unset($params['for_client_id']);
		}

		return $this->post('clients/set_whitelist', $params);
	}
public function setWhiteList($clientId, array $addresses)
	{
		$params = array(
			'for_client_id' => $clientId,
			'whitelist'     => json_encode($addresses),
		);

		// If empty, features are set for the owner client.
		if (!$params['for_client_id']) {
			unset($params['for_client_id']);
		}

		return $this->post('clients/set_whitelist', $params);
	}
public function setWhiteList ( $ clientId , array $ addresses ) { $ params = array ( 'for_client_id' => $ clientId , 'whitelist' => json_encode ( $ addresses ) , ) ; // If empty, features are set for the owner client. if ( ! $ params [ 'for_client_id' ] ) { unset ( $ params [ 'for_client_id' ] ) ; } return $ this -> post ( 'clients/set_whitelist' , $ params ) ; }
Change the IP whitelist for a target client, overwriting the previous whitelist.

@param string $clientId  Client ID
@param array  $addresses Array of CIDR addresses
Change the IP whitelist for a target client overwriting the previous whitelist .