AthmanArumugam
Member
Hi,
I would like to know if anyone has passed in OAuth acces code to a webservice in excel macros. The below code works fine for the webservice when the access token is not passed.
Right now the development team has updated the service to include access token for client credentials with cleitn id, client security and scope.
Coudl you kindly guide me how to update the below module to access the webservice using access code.
I would like to know if anyone has passed in OAuth acces code to a webservice in excel macros. The below code works fine for the webservice when the access token is not passed.
Right now the development team has updated the service to include access token for client credentials with cleitn id, client security and scope.
Coudl you kindly guide me how to update the below module to access the webservice using access code.
Code:
Sub SubmitTokenisationRequest(strPaylodValue)
Set objHTTP = CreateObject("WinHttp.WinHttpRequest.5.1")
url = "https://application/test/token"
objHTTP.Open "POST", url, False
objHTTP.setRequestHeader "Content-Type", "application/xml"
objHTTP.setRequestHeader "Accept", "application/xml"
objHTTP.setProxy 2, "proxy.autozone.com:80", ""
objHTTP.send (strPaylodValue)
strResponseStatus = objHTTP.Status
strResponseText = objHTTP.responseText
strResponseText = CStr(strResponseText)
End Sub