Skip to content
This repository has been archived by the owner on Jul 21, 2020. It is now read-only.

No request will be sent if the Token value is used #77

Open
SafwatHassan opened this issue Jul 17, 2017 · 0 comments
Open

No request will be sent if the Token value is used #77

SafwatHassan opened this issue Jul 17, 2017 · 0 comments

Comments

@SafwatHassan
Copy link

SafwatHassan commented Jul 17, 2017

The file googleplay.py has a coding issue starting from line 109

if (authSubToken is not None):
            self.setAuthSubToken(authSubToken)
        else:
            if (email is None or password is None):
                raise Exception("You should provide at least authSubToken or (email and password)")
            params = {"Email": email,
                                "Passwd": password,
                                "service": self.SERVICE,
                                "accountType": self.ACCOUNT_TYPE_HOSTED_OR_GOOGLE,
                                "has_permission": "1",
                                "source": "android",
                                "androidId": self.androidId,
                                "app": "com.android.vending",
                                #"client_sig": self.client_sig,
                                "device_country": "fr",
                                "operatorCountry": "fr",
                                "lang": "fr",
                                "sdk_version": "16"}
            headers = {
                "Accept-Encoding": "",
            }
            response = requests.post(self.URL_LOGIN, data=params, headers=headers, verify=False)
         

The parameters and headers definition should be aliened with the if and the else statements.

@SafwatHassan SafwatHassan changed the title No request sent if the Token value is used No request will be sent if the Token value is used Jul 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant