protected function executeQuery($url, array $data = array(), array $extra_result_data = array())
    {
        $headers = array(
            sprintf('Authorization: Bearer %s', $this->accessToken),
            'Content-Type: application/json',
            'Accept: application/json'
        );

        // Issue the request
        $content = $this->getAdapter()->getContent($url, 'POST', $headers, json_encode($data));

        if (null === $content) {
            return array_merge($this->getDefaults(), $extra_result_data);
        }

        return $this->parseResults($content, $extra_result_data);
    }
protected function executeQuery($url, array $data = array(), array $extra_result_data = array())
    {
        $headers = array(
            sprintf('Authorization: Bearer %s', $this->accessToken),
            'Content-Type: application/json',
            'Accept: application/json'
        );

        // Issue the request
        $content = $this->getAdapter()->getContent($url, 'POST', $headers, json_encode($data));

        if (null === $content) {
            return array_merge($this->getDefaults(), $extra_result_data);
        }

        return $this->parseResults($content, $extra_result_data);
    }
protected function executeQuery ( $ url , array $ data = array ( ) , array $ extra_result_data = array ( ) ) { $ headers = array ( sprintf ( 'Authorization: Bearer %s' , $ this -> accessToken ) , 'Content-Type: application/json' , 'Accept: application/json' ) ; // Issue the request
 $ content = $ this -> getAdapter ( ) -> getContent ( $ url , 'POST' , $ headers , json_encode ( $ data ) ) ; if ( null === $ content ) { return array_merge ( $ this -> getDefaults ( ) , $ extra_result_data ) ; } return $ this -> parseResults ( $ content , $ extra_result_data ) ; }
Issues the actual HTTP query.

@param $url
@param array $data
@param array $extra_result_data
@return array
Issues the actual HTTP query .