module HomeAway::API::Domain::ListingReviews
Public Instance Methods
listing_reviews(listing_id, unit_id, opts={})
click to toggle source
Returns a page of reviews for the specified listing and unit
analogous to calling a GET on API
url /public/listingReviews
@param listing_id [String] The listing id to be booked as retrieved from the search operation @param unit_id [Integer] The id of the unit being booked for the stay @option opts [Integer] :page The page number to fetch @option opts [Integer] :page_size The number of reviews to return per page @return [HomeAway::API::Paginator] the result of the call to the API
# File lib/homeaway/api/domain/listing_reviews.rb, line 30 def listing_reviews(listing_id, unit_id, opts={}) params = { 'listingId' => listing_id.to_s, 'unitId' => unit_id.to_s, 'page' => 1, 'pageSize' => @configuration.page_size }.merge(HomeAway::API::Util::Validators.query_keys(opts)) hashie = get '/public/listingReviews', params HomeAway::API::Paginator.new(self, hashie, @configuration.auto_pagination) end