(self)
return {
            "TOKEN_AUTH": self.token,
            "user-agent": DEFAULT_USER_AGENT,
            "content-type": "application/json",
        }
Return authorization header.
Return authorization header.
Return authorization header .
def header(self):
        """Return authorization header."""
        if self.token is None:
            return None
        return {
            "TOKEN_AUTH": self.token,
            "user-agent": DEFAULT_USER_AGENT,
            "content-type": "application/json",
        }
def header ( self ) : if self . token is None : return None return { "TOKEN_AUTH" : self . token , "user-agent" : DEFAULT_USER_AGENT , "content-type" : "application/json" , }