Answer the question
In order to leave comments, you need to log in
No response to HTTP request to YANDEX DISK REST API?
QNetworkRequest request(QUrl(" https://cloud-api.yandex.net:443/v1/disk/resources... "));
Without sending Header, a response should come (not authorized)
It does not exist. And another question, maybe it's still because of his not sending?
How to send header correctly?
From the documentation:
After registration, the application will be able to receive OAuth tokens for accessing user data in Drive.
The resulting token should be passed in the Authorization header on every Drive API call, specifying the type of the token before its value. An example of such a header:
Authorization: OAuth 0c4181a7c2cf4521964a72ff57a34a07
Answer the question
In order to leave comments, you need to log in
request.setRawHeader(QByteArray("Authorization"), QByteArray("OAuth AQAAAAAMsMHEAADLW6bnl0Kw7UJjotzztWNVaxM"));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question