homeaway-api 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +24 -0
- data/lib/homeaway/api/domain/client_includes.rb +2 -0
- data/lib/homeaway/api/domain/listing_review.rb +35 -0
- data/lib/homeaway/api/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87940e1ae0baa8fdae8331a9baad7b0db4d6436d
|
4
|
+
data.tar.gz: 2f084f225ccc9b15a83e02771295ee4cb8e3a7eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04e32f37174e358729c67a2845382007d0ac4f8fddc28475604247f58e0d2590515d335289bf67b17cbcaa673900a298f769b4375600d61a5b638e9d48be505e
|
7
|
+
data.tar.gz: ecc599039662e2b1d3df53a5c87609dafcebe3f02268a3b5db414c128ba777c47d9748be8c1dff3d15d7d8de7ee97a3e8b2e04013791b5f145888d95a6ebd75b
|
data/README.md
CHANGED
@@ -122,6 +122,30 @@ $ hacurl -i <your_client_id> -s <your_client_secret> /public/listing?id=123456
|
|
122
122
|
|
123
123
|
The full API documentation is located at: https://www.homeaway.com/platform/documentation
|
124
124
|
|
125
|
+
## Running tests
|
126
|
+
|
127
|
+
Create a file `internal/spec_helper_extensions.rb` with:
|
128
|
+
|
129
|
+
```ruby
|
130
|
+
def client_id
|
131
|
+
"your-application-client-id"
|
132
|
+
end
|
133
|
+
|
134
|
+
def client_secret
|
135
|
+
"your-application-client-secret"
|
136
|
+
end
|
137
|
+
|
138
|
+
def test_email
|
139
|
+
"your-homeaway-email"
|
140
|
+
end
|
141
|
+
|
142
|
+
def test_password
|
143
|
+
"your-homeaway_password"
|
144
|
+
end
|
145
|
+
```
|
146
|
+
|
147
|
+
Run specs with `bundle exec rspec spec`.
|
148
|
+
|
125
149
|
## Contributing
|
126
150
|
|
127
151
|
1. Fork it https://github.com/homeaway/homeaway_api_ruby
|
@@ -15,6 +15,7 @@
|
|
15
15
|
|
16
16
|
require 'homeaway/api/domain/listing'
|
17
17
|
require 'homeaway/api/domain/listing_reviews'
|
18
|
+
require 'homeaway/api/domain/listing_review'
|
18
19
|
require 'homeaway/api/domain/search'
|
19
20
|
require 'homeaway/api/domain/quote'
|
20
21
|
require 'homeaway/api/domain/my_listings'
|
@@ -30,6 +31,7 @@ module HomeAway
|
|
30
31
|
class Client
|
31
32
|
include HomeAway::API::Domain::Listing
|
32
33
|
include HomeAway::API::Domain::ListingReviews
|
34
|
+
include HomeAway::API::Domain::ListingReview
|
33
35
|
include HomeAway::API::Domain::Search
|
34
36
|
include HomeAway::API::Domain::Quote
|
35
37
|
include HomeAway::API::Domain::MyListings
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# Copyright (c) 2015 HomeAway.com, Inc.
|
2
|
+
# All rights reserved. http://www.homeaway.com
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
|
16
|
+
module HomeAway
|
17
|
+
module API
|
18
|
+
module Domain
|
19
|
+
module ListingReview
|
20
|
+
|
21
|
+
# Returns a single review given its uuid
|
22
|
+
#
|
23
|
+
# analogous to calling a GET on API url /public/listingReview
|
24
|
+
#
|
25
|
+
# @param uuid [String] The review ID in UUID form
|
26
|
+
def listing_review(uuid, opts={})
|
27
|
+
params = {
|
28
|
+
'id' => HomeAway::API::Util::Validators.uuid(uuid.to_s)
|
29
|
+
}.merge(HomeAway::API::Util::Validators.query_keys(opts))
|
30
|
+
get '/public/listingReview', params
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
data/lib/homeaway/api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: homeaway-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charlie Meyer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hashie
|
@@ -324,6 +324,7 @@ files:
|
|
324
324
|
- lib/homeaway/api/domain/client_includes.rb
|
325
325
|
- lib/homeaway/api/domain/conversation.rb
|
326
326
|
- lib/homeaway/api/domain/listing.rb
|
327
|
+
- lib/homeaway/api/domain/listing_review.rb
|
327
328
|
- lib/homeaway/api/domain/listing_reviews.rb
|
328
329
|
- lib/homeaway/api/domain/me.rb
|
329
330
|
- lib/homeaway/api/domain/my_inbox.rb
|