我一直在努力寻找并打印出在项目上花费的时间并将其打印在网页上。无论我尝试什么,它都拒绝与我合作。我已经标记了我遇到问题的地方,例如问题代码。我的问题代码是:
'****Get hours spent on project
postUrl = "https://api.dovico.com/TimeEntries/Employee/{sEmployeeID}/?version=4"
Set xmlHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP.6.0")
xmlHTTP.open "GET", postUrl, false
xmlHTTP.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
xmlHttp.setRequestHeader "Authorization", "WRAP
access_token=""client = 52ced897fb6b404f87cfe70e84bed1b4.15731&user_token = 6d0a58751f5f4d619cce65c5cc52b420.15731"""
xmlHTTP.send
set mytime = xmlHTTP.responseXML
*hours = mytime.selectsingleNode("//TimeEntries/Employees/Employee:{274}").item(0)*
Response.write "Number of hours spend on project is: " & hours
任何人都可以帮忙。这是我的冰雹结婚通行证。