[Interest] Send POST request with QOAuth2AuthorizationCodeFlow
Jesus Fernandez
Jesus.Fernandez at qt.io
Tue Feb 21 09:57:00 CET 2017
On Monday, February 20, 2017 04:24:10 PM Juhani Matilainen wrote:
> Hello,
>
> Qt 5.8 contains new QtNetwork Auth module (as a technology preview). I successfully login to Google and get a data from Google Drive. But I haven’t figured out how to use post() -function. There is no QByteArray or QHttpMultiPart arguments but only QVariantMap. How I can send data with QOAuth2AuthorizationCodeFlow?
>
> QNetworkReply *QOAuth2AuthorizationCodeFlow::post(const QUrl &url, const QVariantMap ¶meters = QVariantMap())
>
> Regards,
> Juhani
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
Hello Juhani,
You should use the parameters argument to send the parameters you want. Internally it will converted to a QByteArray.
--
Best regards,
Jesus
More information about the Interest
mailing list