zxol / airbnbapi

Unofficial airbnb.com REST API wrapper for node.js
MIT License
218 stars 52 forks source link

Reading reviews #38

Open axos88 opened 4 years ago

axos88 commented 4 years ago

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.