parameters: (self)
docstring: Returns the token string.
      
      The token string returned is of format
      oauth_token=[0]&oauth_token_secret=[1], where [0] and [1] are some strings.
      
      Returns:
        A token string of format oauth_token=[0]&oauth_token_secret=[1],
        where [0] and [1] are some strings. If self.secret is absent, it just
        returns oauth_token=[0]. If self.key is absent, it just returns
        oauth_token_secret=[1]. If both are absent, it returns None.
docstring_summary: Returns the token string.
      
      The token string returned is of format
      oauth_token=[0]&oauth_token_secret=[1], where [0] and [1] are some strings.
      
      Returns:
        A token string of format oauth_token=[0]&oauth_token_secret=[1],
        where [0] and [1] are some strings. If self.secret is absent, it just
        returns oauth_token=[0]. If self.key is absent, it just returns
        oauth_token_secret=[1]. If both are absent, it returns None.
docstring_tokens: Returns the token string . The token string returned is of format oauth_token = [ 0 ] &oauth_token_secret = [ 1 ] where [ 0 ] and [ 1 ] are some strings . Returns : A token string of format oauth_token = [ 0 ] &oauth_token_secret = [ 1 ] where [ 0 ] and [ 1 ] are some strings . If self . secret is absent it just returns oauth_token = [ 0 ] . If self . key is absent it just returns oauth_token_secret = [ 1 ] . If both are absent it returns None .
function: def get_token_string(self):
      """Returns the token string.
      
      The token string returned is of format
      oauth_token=[0]&oauth_token_secret=[1], where [0] and [1] are some strings.
      
      Returns:
        A token string of format oauth_token=[0]&oauth_token_secret=[1],
        where [0] and [1] are some strings. If self.secret is absent, it just
        returns oauth_token=[0]. If self.key is absent, it just returns
        oauth_token_secret=[1]. If both are absent, it returns None.
      """
      if self.key and self.secret:
        return urllib.urlencode({'oauth_token': self.key,
                                 'oauth_token_secret': self.secret})
      elif self.key:
        return 'oauth_token=%s' % self.key
      elif self.secret:
        return 'oauth_token_secret=%s' % self.secret
      else:
        return None
function_tokens: def get_token_string ( self ) : if self . key and self . secret : return urllib . urlencode ( { 'oauth_token' : self . key , 'oauth_token_secret' : self . secret } ) elif self . key : return 'oauth_token=%s' % self . key elif self . secret : return 'oauth_token_secret=%s' % self . secret else : return None