Hello,
I'm trying to use the ors Matrix API with VBA (Excel 2016) with the following expresion (similar to the example in the documentation):
---------------------------------
Option Explicit
Sub XMLHttpTest()
Dim XMLHttp As Object
Dim strURL As String, strMethod As String, strUser As String
Dim strPassword As String
Dim bolAsync As Boolean
Dim varMessage
Dim WS As Excel.Worksheet
Set WS = ActiveSheet
Set XMLHttp = CreateObject("MSXML2.XMLHTTP")
--------------------------------
This approach fails and I'm receiving the following output
Status: 403
Response Text: "error": "Key not authorised"
Response Header:
Server: nginx
Date: Wed, 30 May 2018 06:08:54 GMT
Content-Type: application/json
Content-Length: 37
Connection: keep-alive
I guess, there is a problem with the Header. Does anybody know the problem?
Thank you in advance!
Best regards,
Martin