How to connect via API?
-
wrote on 15 May 2019, 15:08 last edited by
Thanks, earned. I receive a response signal. But theoretically, a json file should come in response to the request. Please tell me how you can open the response data, read it, and then delete it if it is not deleted by itself.
-
Thanks, earned. I receive a response signal. But theoretically, a json file should come in response to the request. Please tell me how you can open the response data, read it, and then delete it if it is not deleted by itself.
wrote on 15 May 2019, 17:33 last edited by@Mikeeeeee Internet searching is your friend... maybe this example could help you.
-
wrote on 17 May 2019, 13:36 last edited by
This example is not working.
-
wrote on 17 May 2019, 13:46 last edited by
delete
connect(apiQuery, &QNetworkAccessManager::finished, this, &MainWindow::testSlotFromQDebug);
then:
void MainWindow::on_testButton_clicked() { QNetworkRequest request; request.setUrl(QUrl("https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=MSFT&interval=5min&apikey=demo")); QNetworkReply* reply = apiQuery->get(request) connect(reply ,&QNetworkReply::finished,this,std::bind(&MainWindow::on_reply,this,reply )); } void MainWindow::on_reply(QNetworkReply* reply){ QJsonDocument jdoc = QJsonDocument::fromJson(reply->readAll()); // do something with the jdoc }
-
wrote on 17 May 2019, 14:11 last edited by
Qt says: qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
I have api-key: 63YUZ8NP5SW1D302
How can I use the key? -
wrote on 17 May 2019, 14:14 last edited by VRonin
Qt says: qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
Make sure you have OpenSSL installed
I have api-key: 63YUZ8NP5SW1D302
How can I use the key? -
wrote on 17 May 2019, 14:54 last edited by
@VRonin said in How to connect via API?:
OpenSSL
This link is nothing about OpenSSL.
OpenSSL need to connect to the project? -
wrote on 17 May 2019, 19:06 last edited by
I installed everything in MaintenanceTool. Do I need to download additional OpenSSL?
If you need to install OpenSSL, then how to connect it to Qt? -
I installed everything in MaintenanceTool. Do I need to download additional OpenSSL?
If you need to install OpenSSL, then how to connect it to Qt?Hi,
@Mikeeeeee said in How to connect via API?:
I installed everything in MaintenanceTool. Do I need to download additional OpenSSL?
If you need to install OpenSSL, then how to connect it to Qt?What OS are you on ? My guess would be Windows.
-
wrote on 18 May 2019, 08:12 last edited by
My OS - Windows.
-
-
wrote on 18 May 2019, 10:32 last edited by
downloaded openssl-1.1.1b and put it in the folder with the executable file. Did not help.
In openssl-1.1.1b there is no libeay32.dll. -
wrote on 18 May 2019, 13:26 last edited by
There is a file e_os.h in the main folder of the library .
-
What version of Qt are you using ?
-
I installed everything in MaintenanceTool. Do I need to download additional OpenSSL?
If you need to install OpenSSL, then how to connect it to Qt?wrote on 19 May 2019, 07:59 last edited by -
wrote on 19 May 2019, 08:05 last edited by
I use Qt 5.12.2
-
Then try again with the latest version of the 1.0 series.
-
wrote on 20 May 2019, 08:21 last edited by
I downloaded openssl-1.0.2r. There is no bin folder. No .exe files. No libeay32.dll. What to do with it?
-
wrote on 20 May 2019, 08:28 last edited by
I downloaded libeay32.dll ssleay32.dll and put them to the executable file and the project, but it still does not work.
20/66