Reply
Member
Posts: 1
Registered: ‎04-30-2020

Using VBA with HTTP requests - need coding help please!

I am coding in VBA with Access 97. Yes, that is my platform.

Here is the code that I use to POST to another server. It works fine:

 

With CreateObject("msxml2.xmlhttp")
.Open "POST", "https://sandbox.some_domain.com/api/v1/orders/", False
.setRequestHeader "Authorization", "Token my_token_key"
.setRequestHeader "Content-Type", "application/json"
.setRequestHeader "Accept", "application/json"
.Send (strJson)

 

I need to know how to put my credentials into Authorize.Net. Where do the LOGIN and API Key get inputted?