how can I connect to the JSON web page to get a token?

 

Hi.

I wish to get data from web API with internetlib  .

but web page responde

2021.06.23 08:24:02.848 token_dll (EURUSD,H1) aOut OpenURL=={"code":"rest_no_route","message":"\u0647\u06cc\u0686 \u0645\u0633\u06cc\u0631\u06cc \u0645\u0646\u0637\u0628\u0642 \u0628\u0627 URL \u0648 \u0631\u0648\u0634 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u067e\u06cc\u062f\u0627 \u0646\u0634\u062f.","data":{"status":404}}

Is there a problem with internetlib? Or did I make a mistake?
Files:
internetlib.mqh  32 kb
 
Ali poormomen: I wish to get data from web API with internetlib  . but web page responde

2021.06.23 08:24:02.848 token_dll (EURUSD,H1) aOut OpenURL=={"code":"rest_no_route","message":"\u0647\u06cc\u0686 \u0645\u0633\u06cc\u0631\u06cc \u0645\u0646\u0637\u0628\u0642 \u0628\u0627 URL \u0648 \u0631\u0648\u0634 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u067e\u06cc\u062f\u0627 \u0646\u0634\u062f.","data":{"status":404}}

Is there a problem with internetlib? Or did I make a mistake?
  1. Your question is not related to MQL but instead regarding the HTTP protocol and whatever Web API is in place by the webservice you are trying to use. You will have to read-up on that webservice's documentation and API usage.
  2. Your "internetlib" makes use of WinAPI, so you should research Microsoft Windows' API to better understand how it works. It is not part of MQL functionality like the WebRequest function.
Reason: