Qt Rest Api Client
Unsolved
Mobile and Embedded
-
@NickV hi
in QML/js you can use JSON and XMLHttpRequest
Component.onCompleted: { var req = new XMLHttpRequest(); req.open("GET","https://httpbin.org/get",true); req.onreadystatechange = function() { if (req.readyState === XMLHttpRequest.DONE && req.status === 200) { //console.log(req.responseText) var jsonObject = JSON.parse(req.responseText); console.log(jsonObject.origin) } } req.send(); }
-
Hi,
You might be interested by the Cutelyst project.
-
@LeLev hi
This solution is not checking the expiration time of the token, and also not uses tokens. I need to use tokens because my api is protected.@SGaist hi.
I don't think that Cutelyst is this that i am looking for. Cutelyst is for creating an api. Also as far as i look the Cutelyst is not uses tokens (access_token and refresh_token) but only CSRF token. Let me know if i am telling something wrong. -
So thinking about the QtNetworkAuth module ?