public function getEvents(array $options = null)
    {
        $url = ThisData::ENDPOINT_EVENTS;
        if (!is_null($options)) {
            $url .= '?' . http_build_query($options);
        }
        $response = $this->synchronousExecute('GET', $url);
        return json_decode($response->getBody(), TRUE);
    }
public function getEvents(array $options = null)
    {
        $url = ThisData::ENDPOINT_EVENTS;
        if (!is_null($options)) {
            $url .= '?' . http_build_query($options);
        }
        $response = $this->synchronousExecute('GET', $url);
        return json_decode($response->getBody(), TRUE);
    }
public function getEvents ( array $ options = null ) { $ url = ThisData :: ENDPOINT_EVENTS ; if ( ! is_null ( $ options ) ) { $ url .= '?' . http_build_query ( $ options ) ; } $ response = $ this -> synchronousExecute ( 'GET' , $ url ) ; return json_decode ( $ response -> getBody ( ) , TRUE ) ; }
Fetches events from the ThisData API.
@param array|null $options An array of request parameters for filtering and paginating over events
@see http://help.thisdata.com/docs/v1getevents for request parameters
@return array An array of arrays
Fetches events from the ThisData API .