protected function extractListItemData(array $data) {
        if ($this->listResponseKey && !array_key_exists($this->listResponseKey, $data)) {
            throw new Exception('Invalid response, missing field ' . $this->listResponseKey);
        }

        return ($this->listResponseKey) ? $data[$this->listResponseKey] : $data;
    }
protected function extractListItemData(array $data) {
        if ($this->listResponseKey && !array_key_exists($this->listResponseKey, $data)) {
            throw new Exception('Invalid response, missing field ' . $this->listResponseKey);
        }

        return ($this->listResponseKey) ? $data[$this->listResponseKey] : $data;
    }
protected function extractListItemData ( array $ data ) { if ( $ this -> listResponseKey && ! array_key_exists ( $ this -> listResponseKey , $ data ) ) { throw new Exception ( 'Invalid response, missing field ' . $ this -> listResponseKey ) ; } return ( $ this -> listResponseKey ) ? $ data [ $ this -> listResponseKey ] : $ data ; }
Takes the raw JSON response and extracts the array of items

@param array $data
@return array
@throws Exception
Takes the raw JSON response and extracts the array of items