def get(self, url, parameters=None):
        """
        Convenience method for requesting to google with proper cookies/params.
        """
        if not self.access_token:
            raise IOError("No authorized client available.")
        if parameters is None:
            parameters = {}
        parameters.update({'access_token': self.access_token, 'alt': 'json'})
        request = requests.get(url + '?' + self.getParameters(parameters))
        if request.status_code != 200:
            return None
        else:
            return toUnicode(request.text)
def get ( self , url , parameters = None ) : if not self . access_token : raise IOError ( "No authorized client available." ) if parameters is None : parameters = { } parameters . update ( { 'access_token' : self . access_token , 'alt' : 'json' } ) request = requests . get ( url + '?' + self . getParameters ( parameters ) ) if request . status_code != 200 : return None else : return toUnicode ( request . text )
Convenience method for requesting to google with proper cookies/params.