Hello, i am trying to get a connection to the free finance api of worldtradingdata.com up and running. As far as I understood, I should be able to send a get URL and receive and parse the json response. But I am already stuck at getting the socket to send the URL.
So far I have tried to
[code]Dim Socket as new HTTPSocket
Dim Result As String
Result = Socket.get(“https://api.worldtradingdata.com/api/v1/forex_history?base=GBP&convert_to=EUR&api_token=***********”, 30)
Result = DefineEncoding(Result, Encodings.UTF8)
Window1.ResponseArea.Text =Result
[/code]
But my response is this. ( Yes I have entered and tested a valid api_token, just opening the url in a browser receives the json data)
[code]
301 Moved Permanently301 Moved Permanently
nginx/1.15.8 [code][/code][/code]
Any pointers where I am going wrong?
Markus