def METHOD_NAME(self, key, secret):
    header = {}
    utcnow = datetime.datetime.utcnow()
    date = utcnow.strftime("%a, %d %b %Y %H:%M:%S GMT")
    auth_var = jwt.encode({"iss": key}, secret, algorithm="HS256")
    authorization = "Bearer %s" % (auth_var)
    header["date"] = date
    header["Authorization"] = authorization
    return header