Make request in API to generate a token.

def generate_token(self):
        """Make request in API to generate a token."""

        response = self._make_request()
        self.auth = response
        self.token = response['token']