I'm looking for some VBA code to upload data filled out in an Excel spreadsheet to create a record in a Knack object. I've had a crack below and come up with a time out error. Any thoughts?
Sub PostJSON()
Dim URL As String
Dim JSONString As String
Dim objHTTP As New WinHttpRequest
URL = "https://api.knack.com/v1/objects/object_1/records"
objHTTP.Open "POST", URL, False
objHTTP.SetRequestHeader "X-Knack-Application-Id", "######"
objHTTP.SetRequestHeader "X-Knack-REST-API-KEY", "######"
objHTTP.SetRequestHeader "Content-Type", "application/json"
JSONString = "{""field_1"":""1 Smith St, Smithville""}"
objHTTP.Send JSONString
End Sub