code: public function doRequest( $function, $parameters, $usesRegularEndpoint = true )
      {
          $client = ( $usesRegularEndpoint === true )
              ? $this->useRegularEndpoint()->getClient()
              : $this->useExtendedEndpoint()->getClient();
  
          $arguments = [ $function => $parameters ];
          $options   = [ 'location' => $this->getEndpoint() ];
  
          $this->environment->log( 'Connector@doRequest: Request', compact( 'arguments', 'options' ) );
  
          $response = $client->__soapCall( $function, $arguments, $options );
  
          $this->environment->log( 'Connector@doRequest: Response', compact( 'response' ) );
  
          return $response;
      }
docs: @param  string $function
  @param         $parameters
  @param  bool   $usesRegularEndpoint
  
  @return mixed