-
-
Save TheOpenDevProject/e3d6236b047f97ce7e39 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool GPMPP::GPMSessionManager::Login(QString email, QString password) | |
{ | |
QNetworkRequest GPMRequestor; | |
GPMRequestor.setHeader(QNetworkRequest::ContentTypeHeader,"application/x-www-form-urlencoded"); | |
//Service URL for Google Play | |
QUrl SLAUrl("https://accounts.google.com/ServiceLoginAuth"); | |
QUrlQuery GetParams; | |
//Some weird service query params | |
GetParams.addQueryItem("service","sj"); | |
//This one forwards you I think?!? | |
GetParams.addQueryItem("continue","https://play.google.com/music/listen"); | |
GetParams.addQueryItem("GALX",""); | |
GetParams.addQueryItem("Email",""); | |
GetParams.addQueryItem("Passwd",""); | |
GetParams.addQueryItem("PersistentCookie","yes"); | |
GPMRequestor.setUrl(SLAUrl); | |
//qnam->get(GPMRequestor); | |
qnam->post(GPMRequestor,GetParams.toString(QUrl::FullyEncoded).toUtf8()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment