src/External/Bag/Api/BagClient.php
public function numberindication($zipcode, $number)
    {
      // Concat url
      $url = self::API_URL . '/nummeraanduidingen';

      // Create a REST request
      $request = new \LibX\Net\Rest\Request($url, \LibX\Net\Rest\Request::REQUEST_METHOD_GET);

      $parameters = [];
      $parameters['postcode'] = $zipcode;
      $parameters['huisnummer'] = $number;

      $request->setParameters($parameters);

      // Create a REST response
      $response = new \LibX\Net\Rest\Response();

      // Make the call
      $data = $this->call($request, $response);

      $indications = $data->_embedded->nummeraanduidingen;

      foreach($indications as $indication)
      {

      }
    }
public function numberindication($zipcode, $number)
    {
      // Concat url
      $url = self::API_URL . '/nummeraanduidingen';

      // Create a REST request
      $request = new \LibX\Net\Rest\Request($url, \LibX\Net\Rest\Request::REQUEST_METHOD_GET);

      $parameters = [];
      $parameters['postcode'] = $zipcode;
      $parameters['huisnummer'] = $number;

      $request->setParameters($parameters);

      // Create a REST response
      $response = new \LibX\Net\Rest\Response();

      // Make the call
      $data = $this->call($request, $response);

      $indications = $data->_embedded->nummeraanduidingen;

      foreach($indications as $indication)
      {

      }
    }
public function numberindication ( $ zipcode , $ number ) { // Concat url $ url = self :: API_URL . '/nummeraanduidingen' ; // Create a REST request $ request = new \ LibX \ Net \ Rest \ Request ( $ url , \ LibX \ Net \ Rest \ Request :: REQUEST_METHOD_GET ) ; $ parameters = [ ] ; $ parameters [ 'postcode' ] = $ zipcode ; $ parameters [ 'huisnummer' ] = $ number ; $ request -> setParameters ( $ parameters ) ; // Create a REST response $ response = new \ LibX \ Net \ Rest \ Response ( ) ; // Make the call $ data = $ this -> call ( $ request , $ response ) ; $ indications = $ data -> _embedded -> nummeraanduidingen ; foreach ( $ indications as $ indication ) { } }
Retrieve number indications

@param string $zipcode
@param integer $number
@return NULL
Retrieve number indications