lib/DealsService.php
public function all($params = [], array $options = array())
  {
    list($code, $deals) = $this->httpClient->get("/deals", $params, $options);
    if (isset($options['raw']) && $options['raw']) {
      return $deals;
    }
    $dealsData = array_map(array($this, 'coerceNestedDealData'), $deals);
    return $dealsData;
  }
public function all($params = [], array $options = array())
  {
    list($code, $deals) = $this->httpClient->get("/deals", $params, $options);
    if (isset($options['raw']) && $options['raw']) {
      return $deals;
    }
    $dealsData = array_map(array($this, 'coerceNestedDealData'), $deals);
    return $dealsData;
  }
public function all ( $ params = [ ] , array $ options = array ( ) ) { list ( $ code , $ deals ) = $ this -> httpClient -> get ( "/deals" , $ params , $ options ) ; if ( isset ( $ options [ 'raw' ] ) && $ options [ 'raw' ] ) { return $ deals ; } $ dealsData = array_map ( array ( $ this , 'coerceNestedDealData' ) , $ deals ) ; return $ dealsData ; }
Retrieve all deals

get '/deals'

Returns all deals available to the user according to the parameters provided

@param array $params Search options
@param array $options Additional request's options.

@return array The list of Deals for the first page, unless otherwise specified.
Retrieve all deals