My team and I our trying to get a cUrl request transcribed to vbscirpt (or csharp) so we can use it in an SSIS script Task to import the file into sql server 2014. We've tried postman, fiddler, and every other platform to try and get some sample code working. Following is the cUrl Statment:
set ID=80
set BeginDate=2019-01-01
set EndDate=2020-01-01
set APIKey=myAPIKey
set OutputPath=C:\Desktop\Output.json
curl https://Api.com/services/SomeReport/%ID%?q=report_begin_date=%BeginDate%:%EndDate% -u %APIKey%: > %OutputPath%e
The thing that seems to kill it every time is the authorization portion. There are examples of cUrl to vbscript, but they don't deal with authorization.
Does anybody have any ideas?