Skip to content

Instantly share code, notes, and snippets.

@TheOpenDevProject
Created November 7, 2015 05:44
Show Gist options
  • Save TheOpenDevProject/e3d6236b047f97ce7e39 to your computer and use it in GitHub Desktop.
Save TheOpenDevProject/e3d6236b047f97ce7e39 to your computer and use it in GitHub Desktop.
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