0

我正在尝试使用以下经典 ASP 代码通过 API 更新 Zoom 会议中的数据:

'Get access token
access_token = getJWTToken()

strState = "nsw"

varStart = dateFormat(strStart,"yyyy-mm-dd") & "T" & dateFormat(strStart,"HH:MM:SS")
varDuration = dateDiff("n", strStart, strEnd)
varTimeZone = getTimeZone(strState)

postURL = zoom_url & "//webinars//" & webinarId
parmToSend = "{""topic"":""" & strTitle & """," & _
    """type"":""5""," & _
    """start_time"":""" & varStart & """," & _
    """duration"":""" & varDuration & """," & _
    """timezone"":""" & varTimeZone & """," & _
    """agenda"":""" & strDescription & """," & _
    """settings"":{" & _
    "   ""host_video"":""false""," & _
    "   ""panelists_video"":""false""," & _
    "   ""practice_session"":""true""," & _
    "   ""hd_video"":""false""," & _
    "   ""approval_type"":""0""," & _
    "   ""close_registration"":""false""," & _
    "   ""show_share_button"":""false""," & _
    "   ""allow_multiple_devices"":""true""," & _
    "   ""registrants_confirmation_email"":""true""," & _
    "   ""registrants_restrict_number"":""" & strSeats & """," & _
    "   ""notify_registrants"":""false""" & _
    "   }" & _
    "}"

Set ServerXmlHttp = Server.CreateObject("MSXML2.XMLHTTP.6.0")
ServerXmlHttp.open "PATCH", postURL
ServerXmlHttp.setRequestHeader "Accept", "application/json"
ServerXmlHttp.setRequestHeader "Content-Type", "application/json"
ServerXmlHttp.setRequestHeader "Authorization", "Bearer " & access_token
ServerXmlHttp.send parmToSend

jsonResponse = ServerXmlHttp.responseText

它间歇性地工作,但 atm 它不断返回相同的错误:

msxml6.dll 错误“80070005”

访问被拒绝。

它在以下行失败:

ServerXmlHttp.send parmToSend

谁能帮我解释为什么会这样?

谢谢

4

0 回答 0