parameters: (self, url)
return_statement: return atom.http_interface.GenericToken()
docstring: Selects an Authorization header token which can be used for the URL.
  
      Args:
        url: str or atom.url.Url or a list containing the same.
            The URL which is going to be requested. All
            tokens are examined to see if any scopes begin match the beginning
            of the URL. The first match found is returned.
  
      Returns:
        The token object which should execute the HTTP request. If there was
        no token for the url (the url did not begin with any of the token
        scopes available), then the atom.http_interface.GenericToken will be 
        returned because the GenericToken calls through to the http client
        without adding an Authorization header.
docstring_summary: Selects an Authorization header token which can be used for the URL.
docstring_tokens: Selects an Authorization header token which can be used for the URL .
function: def find_token(self, url):
      """Selects an Authorization header token which can be used for the URL.
  
      Args:
        url: str or atom.url.Url or a list containing the same.
            The URL which is going to be requested. All
            tokens are examined to see if any scopes begin match the beginning
            of the URL. The first match found is returned.
  
      Returns:
        The token object which should execute the HTTP request. If there was
        no token for the url (the url did not begin with any of the token
        scopes available), then the atom.http_interface.GenericToken will be 
        returned because the GenericToken calls through to the http client
        without adding an Authorization header.
      """
      if url is None:
        return None
      if isinstance(url, (str, unicode)):
        url = atom.url.parse_url(url)
      if url in self._tokens:
        token = self._tokens[url]
        if token.valid_for_scope(url):
          return token
        else:
          del self._tokens[url]
      for scope, token in self._tokens.iteritems():
        if token.valid_for_scope(url):
          return token
      return atom.http_interface.GenericToken()
function_tokens: def find_token ( self , url ) : if url is None : return None if isinstance ( url , ( str , unicode ) ) : url = atom . url . parse_url ( url ) if url in self . _tokens : token = self . _tokens [ url ] if token . valid_for_scope ( url ) : return token else : del self . _tokens [ url ] for scope , token in self . _tokens . iteritems ( ) : if token . valid_for_scope ( url ) : return token return atom . http_interface . GenericToken ( )