parameters: (url, consumer, token=None)
return_statement: return "%s %s %s" % ("GET", url, ','.join(params))
docstring: Build an XOAUTH string for use in SMTP/IMPA authentication.
docstring_summary: Build an XOAUTH string for use in SMTP/IMPA authentication.
docstring_tokens: Build an XOAUTH string for use in SMTP / IMPA authentication .
function: def build_xoauth_string(url, consumer, token=None):
      """Build an XOAUTH string for use in SMTP/IMPA authentication."""
      request = Request.from_consumer_and_token(consumer, token,
          "GET", url)
  
      signing_method = SignatureMethod_HMAC_SHA1()
      request.sign_request(signing_method, consumer, token)
  
      params = []
      for k, v in sorted(request.iteritems()):
          if v is not None:
              params.append('%s="%s"' % (k, escape(v)))
  
      return "%s %s %s" % ("GET", url, ','.join(params))
function_tokens: def build_xoauth_string ( url , consumer , token = None ) : request = Request . from_consumer_and_token ( consumer , token , "GET" , url ) signing_method = SignatureMethod_HMAC_SHA1 ( ) request . sign_request ( signing_method , consumer , token ) params = [ ] for k , v in sorted ( request . iteritems ( ) ) : if v is not None : params . append ( '%s="%s"' % ( k , escape ( v ) ) ) return "%s %s %s" % ( "GET" , url , ',' . join ( params ) )