SET @authHeader = 'BASIC 0123456789ABCDEF0123456789ABCDEF'; SET @contentType = 'application/x-www-form-urlencoded'; SET @postData = 'value1=Hello&value2=World' SET @url = 'https://api.counttrack.com/fetch_data?data={"id":"1917","type":"custom_shop_id","api_key":"CZQoUy6aB8MrWf","date_from":"2018-10-01 15:15","interval":"15min"}'
-- Open the connection. EXEC @ret = sp_OACreate 'MSXML2.ServerXMLHTTP', @token OUT; IF @ret <> 0 RAISERROR('Unable to open HTTP connection.', 10, 1);