Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading reviews #38

Open
axos88 opened this issue Dec 11, 2019 · 0 comments
Open

Reading reviews #38

axos88 opened this issue Dec 11, 2019 · 0 comments

Comments

@axos88
Copy link

axos88 commented Dec 11, 2019

A GET to /v2/reviews with the following parameters:

{ 
  _format: "for_web_host_stats",
  _offset: offset, 
  _limit: limit, 
  _order: "recent",
  role: "guest", 
  "reviewee_id": user_id
}

Returns the reviews with pretty much all info. Role can be "host" to return all the reviews made by the hosts for that person.

Your own user_id can be deduced by get_host_summary['active_listings'].first['listing']['listing']['user_id']. Yuck. Whatever, I saved it as a constant and hardwired it, it's good enough for my use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant