Module: HomeAway::API::Domain::MyInbox
- Included in:
- Client
- Defined in:
- lib/homeaway/api/domain/my_inbox.rb
Instance Method Summary collapse
-
#my_inbox(opts = {}) ⇒ HomeAway::API::Paginator
Load the Owner’s Inbox for the logged-in User.
Instance Method Details
#my_inbox(opts = {}) ⇒ HomeAway::API::Paginator
Note:
user must be logged in via 3 legged oauth to call this function without error
Load the Owner’s Inbox for the logged-in User
analogous to calling a GET on API url /public/myInbox
Headers:
-
X-HomeAway-DisplayLocale: If a locale is not specified in a query param, it will be searched for in the X-HomeAway-DisplayLocale Header. If it is not supplied in either area the default locale of the user will be selected if it exists. Otherwise the Accept-Language Header will be used.
46 47 48 49 50 51 52 53 54 |
# File 'lib/homeaway/api/domain/my_inbox.rb', line 46 def my_inbox(opts={}) params = { 'page' => 1, 'pageSize' => @configuration.page_size, 'asTraveler' => false }.merge(HomeAway::API::Util::Validators.query_keys(opts)) hashie = get '/public/myInbox', params HomeAway::API::Paginator.new(self, hashie, @configuration.auto_pagination) end |