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

App reviews #13

Closed
markostamcar opened this issue Dec 6, 2012 · 4 comments
Closed

App reviews #13

markostamcar opened this issue Dec 6, 2012 · 4 comments

Comments

@markostamcar
Copy link

Hi! Thanks once more for making this possible. I managed to port it partially to PHP ( vincentkoc/android-market-api-php#12 (comment) ) but was wondering where the app reviews data lurks... I don't get it back in the "details" request, however there is an empty "userReview" field there... might be a bug in the PHP protobuf implementation or something else entirely... any pointers appreciated!

@egirault
Copy link
Owner

egirault commented Dec 8, 2012

Hi!
The API was indeed missing support for app reviews. I just added it:

    def reviews(self, packageName, filterByDevice=False, sort=2, nb_results=None, offset=None):
        """Browse reviews.
        packageName is the app unique ID.
        If filterByDevice is True, return only reviews for your device."""
        path = "rev?doc=%s&sort=%d" % (requests.utils.quote(packageName), sort)
        if (nb_results is not None):
            path += "&n=%d" % int(nb_results)
        if (offset is not None):
            path += "&o=%d" % int(offset)
        if(filterByDevice):
            path += "&dfil=1"
        message = self.executeRequestApi2(path)
        return message.payload.reviewResponse

Please update ;)

@markostamcar
Copy link
Author

Thank you!

@egirault
Copy link
Owner

egirault commented Dec 8, 2012

You're welcome!

@egirault egirault closed this as completed Dec 8, 2012
@markostamcar
Copy link
Author

egirault, shame you stopped working on this project :( But I understand you have other things in your life :)

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

2 participants