Module: HomeAway::API::Domain::MyReservations
- Included in:
- Client
- Defined in:
- lib/homeaway/api/domain/my_reservations.rb
Instance Method Summary collapse
-
#my_reservations(listing_id, opts = {}) ⇒ HomeAway::API::Paginator
Returns a paginated list of the current and future reservations for the given listing from oldest to newest.
Instance Method Details
#my_reservations(listing_id, opts = {}) ⇒ HomeAway::API::Paginator
Note:
user must be logged in via 3 legged oauth to call this function without error
Returns a paginated list of the current and future reservations for the given listing from oldest to newest.
analogous to calling a GET on API url /public/myReservations
41 42 43 44 45 46 47 48 49 |
# File 'lib/homeaway/api/domain/my_reservations.rb', line 41 def my_reservations(listing_id, opts={}) params = { 'page' => 1, 'pageSize' => @configuration.page_size, 'listingId' => listing_id.to_s }.merge(HomeAway::API::Util::Validators.query_keys(opts)) hashie = get '/public/myReservations', params HomeAway::API::Paginator.new(self, hashie, @configuration.auto_pagination) end |