Unity Scopes API
|
Class that downloads http JSON files synchronously. More...
#include <unity/scopes/qt/JsonReader.h>
Public Member Functions | |
QJsonDocumentSptr | read (QUrl const &uri) const |
Downloads a remote JSON document and returns a parser containing the data. More... | |
QJsonDocumentSptr | read (QString const &host, QJsonParameters const ¶meters) const |
Downloads a remote JSON document and returns a parser containing the data. More... | |
Class that downloads http JSON files synchronously.
Executes a remote HTTP query synchronously to return a JSON parser filled with the downloaded data.
QJsonDocumentSptr unity::scopes::qt::JsonReader::read | ( | QUrl const & | uri | ) | const |
Downloads a remote JSON document and returns a parser containing the data.
uri | URI to download |
QJsonDocumentSptr unity::scopes::qt::JsonReader::read | ( | QString const & | host, |
QJsonParameters const & | parameters | ||
) | const |
Downloads a remote JSON document and returns a parser containing the data.
host | the remote host name |
parameters | The parameters that will build the final query, defined by a list of pairs of key and value |