GoneToneStudio / node-google-play-api

Access Google Play by logging in and making requests as an Android device!
https://www.npmjs.com/package/@gonetone/google-play-api
MIT License
37 stars 8 forks source link

13 Test fails with message: 75Error retrieving information from server. DF-DFERH-01 #1

Closed its-mash closed 3 years ago

its-mash commented 3 years ago

All the failed tests giving the same error: "75Error retrieving information from server. DF-DFERH-01" though authentication test passed. See attached image:

gp1

GoneTone commented 3 years ago

My test is successful.

How did you test?

image

its-mash commented 3 years ago

Hi, I have done the following to test:

I believe, no wrong with following your instructions. Maybe the cause is something related to other layers of security of Google other than "Enabling access to less secure(already enabled)". Different accounts may behave differently here. I will try with a different google account.

GoneTone commented 3 years ago

Your GOOGLE_TEST_AUTH_TOKEN string start with aas_et/ or oauth2_4/ ? Which one is it?

its-mash commented 3 years ago

starts with oauth2_4/

GoneTone commented 3 years ago

The correct string start is aas_et/.

You must use gpAPI.getGoogleToken() to get!

Example:

gpAPI.getGoogleToken('Your OAuth2 Token', 'save/token.txt').then(async (token) => {
  await gpAPI.googleAuth(token)

  const details = await gpAPI.appDetails('com.github.android')

  console.log(`Title: ${details.title}`)
  console.log(`Description Html: ${details.descriptionHtml}`)
  console.log(`Developer Name: ${details.details.appDetails.developerName}`)
  console.log(`Version Code: ${details.details.appDetails.versionCode}`)
  console.log(`Version String: ${details.details.appDetails.versionString}`)
  console.log(`Package Name: ${details.details.appDetails.packageName}`)
  console.log(`Share Url: ${details.shareUrl}`)

  console.log(details)
})
its-mash commented 3 years ago

It worked! Thanks. btw what's your progress on "A version of this library for PHP is being developed." I need to port it to PHP, we can work together...

GoneTone commented 3 years ago

Recently I have many projects under development, PHP version is temporarily suspended.