def prepare_token_revocation_request(url, token, token_type_hint=u'access_token', callback=None, body=u'', **kwargs):
 if (not is_secure_transport(url)):
  raise InsecureTransportError()
 params = [(u'token', token)]
 if token_type_hint:
  params.append((u'token_type_hint', token_type_hint))
 for k in kwargs:
  if kwargs[k]:
   params.append((unicode_type(k), kwargs[k]))
 headers = {u'Content-Type': u'application/x-www-form-urlencoded'}
 if callback:
  params.append((u'callback', callback))
  return (add_params_to_uri(url, params), headers, body)
 else:
  return (url, headers, add_params_to_qs(body, params))

def prepare_token_revocation_request ( url , token , token_type_hint = u'access_token' , callback = None , body = u'' , ** kwargs ) : if ( not is_secure_transport ( url ) ) : raise InsecureTransportError ( ) params = [ ( u'token' , token ) ] if token_type_hint : params . append ( ( u'token_type_hint' , token_type_hint ) ) for k in kwargs : if kwargs [ k ] : params . append ( ( unicode_type ( k ) , kwargs [ k ] ) ) headers = { u'Content-Type' : u'application/x-www-form-urlencoded' } if callback : params . append ( ( u'callback' , callback ) ) return ( add_params_to_uri ( url , params ) , headers , body ) else : return ( url , headers , add_params_to_qs ( body , params ) )
prepare a token revocation request .