qt 5 for rest api code example
Example 1: qt rest api
QUrl myurl;
myurl.setScheme(“http”); //https also applicable
myurl.setHost(“api.thingspeak.com”);
myurl.setPath(“/update.json”);
Example 2: qt rest api
QNetworkRequest request;
request.setUrl(myurl);
request.setHeader(QNetworkRequest::ContentTypeHeader,
”application/json”);