lala_Hae_dong
New Member
- Joined
- Apr 13, 2023
- Messages
- 7
- Office Version
- 365
- Platform
- Windows
Can this be done? How do I create the Authorization Header?
I have created the API Request , see below, but when I run I get the following message ,"{"status":"Internal Server Error","msg":[{"type":"ERROR","details":"The authorization header is either empty or isn't Basic."}]}" and I am unsure how to resolve.
Here is my current API Request
Sub SendAPIrequest()
Dim HTTPreq As Object, URL As String, response As String
Set HTTPreq = CreateObject("MSXML2.XMLHTTP")
URL = "myurl"
With HTTPreq
.Open "Get", URL, False
.send
End With
response = HTTPreq.responseText
Debug.Print response
Call ReadJSONresponse(response)
End Sub
I have created the API Request , see below, but when I run I get the following message ,"{"status":"Internal Server Error","msg":[{"type":"ERROR","details":"The authorization header is either empty or isn't Basic."}]}" and I am unsure how to resolve.
Here is my current API Request
Sub SendAPIrequest()
Dim HTTPreq As Object, URL As String, response As String
Set HTTPreq = CreateObject("MSXML2.XMLHTTP")
URL = "myurl"
With HTTPreq
.Open "Get", URL, False
.send
End With
response = HTTPreq.responseText
Debug.Print response
Call ReadJSONresponse(response)
End Sub