Thank you. Unfortunately I couldn’t get it to work with multipart post request. 
Do you have an example? But I found that I can successfully use it in the old 
way: QAbstractOAuth::networkAccessManager::post()

Another question: Google login requires ’access_type=offline’ parameter in 
authorization request to get refresh token. Which function should be used to 
set it?

Regards,
Juhani


> Jesus Fernandez <jesus.fernan...@qt.io> kirjoitti 21.2.2017 kello 10.57:
> 
> 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 &parameters = QVariantMap())
>> 
>> Regards,
>> Juhani
>> _______________________________________________
>> Interest mailing list
>> Interest@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

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to