public function createRequest($query)
    {
        $client = new \Guzzle\Http\Client();

        $method = $this->httpMethod;
        $uri = $this->getBaseUrl();
        $headers = $this->getHeaders();
        $options = array();

        if ( $method === 'POST' )
        {
            $postBody = $query;
            $request = $client->createRequest( $method, $uri, $headers, $postBody, $options );
        }
        else if ( $method === 'GET' )
        {
            $request = $client->createRequest( $method, $uri, $headers, null, $options );
            if ( $query ) {
                $queryObject = json_decode($query, true);
                $query = $request->getQuery();
                foreach ($queryObject as $key => $val) {
                    $query->set($key, $val);
                }
            }
        }
        else
        {
            throw new Exception('Unexpected HTTP Method: ' . $method);
        }

        return $request;
    }