def post(self, url, post_params=None):
        """
        Make an HTTP POST request to the Parser API.

        :param url: url to which to make the request
        :param post_params: POST data to send along. Expected to be a dict.
        """
        post_params['token'] = self.token
        params = urlencode(post_params)
        logger.debug('Making POST request to %s with body %s', url, params)
        return requests.post(url, data=params)
def post ( self , url , post_params = None ) : post_params [ 'token' ] = self . token params = urlencode ( post_params ) logger . debug ( 'Making POST request to %s with body %s' , url , params ) return requests . post ( url , data = params )
Make an HTTP POST request to the Parser API.

        :param url: url to which to make the request
        :param post_params: POST data to send along. Expected to be a dict.