Closed its-mash closed 3 years ago
My test is successful.
How did you test?
Hi, I have done the following to test:
npm install
npm run 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.
Your GOOGLE_TEST_AUTH_TOKEN
string start with aas_et/
or oauth2_4/
?
Which one is it?
starts with oauth2_4/
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)
})
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...
Recently I have many projects under development, PHP version is temporarily suspended.
All the failed tests giving the same error: "75Error retrieving information from server. DF-DFERH-01" though authentication test passed. See attached image: