Code Monkey home page Code Monkey logo

Comments (5)

dweinstein avatar dweinstein commented on June 1, 2024

by default completeDownloadInfo uses the downloadUserAgent as can be seen

'User-Agent': _opts.downloadUserAgent,

Are you perhaps passing the wrong agent to the constructor?

from node-google-play.

donmezburak avatar donmezburak commented on June 1, 2024

Yes you are right. However, at the end, it goes to post request and that method reset all headers as i see

from node-google-play.

dweinstein avatar dweinstein commented on June 1, 2024

getCompleteDownloadInfo does not make the request for you, it simply returns an object suitable for being passed to e.g., request lib and it does AFAICT put the downloadUserAgentas default user-agent. perhaps you can show your code.

from node-google-play.

donmezburak avatar donmezburak commented on June 1, 2024

`var playapi = require('gpapi').GooglePlayAPI({
"username": "[email protected]",
"password": "xx",
"androidId": "xx",
"sdkVersion":23,
"apiUserAgent": "Android-Finsky/8.8.12-all (api=3,versionCode=80881200,sdk=23,device=mp1s3gss,hardware=mp1s3gss,product=mp1s3gss_global_com,platformVersionRelease=6.0,model=LG-H542,buildId=MRA58K,isWideScreen=0,supportedAbis=armeabi-v7a;armeabi)",
"downloadUserAgent": "AndroidDownloadManager/6.0 (Linux; U; Android 6.0; LG-H542 Build/MRA58K)"
});

playapi.details("com.mobinavel.KeepTheBall", function (err, res) {

playapi.completeDownloadInfo("com.mobinavel.KeepTheBall", res.details.appDetails.versionCode)
.then(
function (downloadResult, x, y, z, t) {
console.log(downloadResult)
}).catch(function (err, x, y, z) {
console.log(err);
});

});`
this is the code that i used. firstly, i got details of app and downloaded app using version code. When i debug this code, i realized that completeDownloadInfo goes to post request and sets user-agent to apiuseragent.

from node-google-play.

dweinstein avatar dweinstein commented on June 1, 2024

closed due to inactivity. can't confirm if this is actually a bug or not enough information to determine that. please update the issue with more information and re-open if it's still happening

from node-google-play.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.