aiopentdb/client.py
async def fetch_token(self):
        """Fetches a new session token.

        Returns
        -------
        :class:`str`
            New session token.
        """

        params = {
            'command': 'request'
        }
        payload = await self._request('GET', 'api_token.php', params=params)
        return payload['token']
Fetches a new session token.

        Returns
        -------
        :class:`str`
            New session token.
        
Fetches a new session token.
Returns
Fetches a new session token . Returns
async def fetch_token(self):
        params = {
            'command': 'request'
        }
        payload = await self._request('GET', 'api_token.php', params=params)
        return payload['token']
async def fetch_token ( self ) : params = { 'command' : 'request' } payload = await self . _request ( 'GET' , 'api_token.php' , params = params ) return payload [ 'token' ]
Fetches a new session token.
Fetches a new session token .
"""Fetches a new session token.

        Returns
        -------
        :class:`str`
            New session token.
        """
self
class
`str`
New session token.
` str ` New session token .