bookingsync-api 0.2.0 → 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/.github/workflows/ci.yml +25 -0
- data/CHANGELOG.md +12 -0
- data/README.md +1 -1
- data/bookingsync-api.gemspec +2 -1
- data/lib/bookingsync/api/client/host_reviews.rb +95 -0
- data/lib/bookingsync/api/client/review_replies.rb +53 -0
- data/lib/bookingsync/api/client/reviews.rb +10 -0
- data/lib/bookingsync/api/client.rb +10 -6
- data/lib/bookingsync/api/version.rb +1 -1
- data/lib/bookingsync/api.rb +1 -0
- data/spec/bookingsync/api/client/host_reviews_spec.rb +150 -0
- data/spec/bookingsync/api/client/review_replies_spec.rb +61 -0
- data/spec/bookingsync/api/client/reviews_spec.rb +21 -1
- data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_applications_periods_rental/returns_applications_periods_rental.yml +5 -5
- data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_applications_periods_rentals/returns_applications_periods_rentals.yml +5 -5
- data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_create_applications_periods_rental/creates_a_applications_periods_rental.yml +3 -3
- data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_edit_applications_periods_rental/returns_updated_applications_periods_rental.yml +2 -2
- data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_edit_applications_periods_rental/updates_given_applications_periods_rental_by_ID.yml +2 -2
- data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_create_applications_periods_rental/creates_an_applications_periods_rental.yml +3 -3
- data/spec/fixtures/cassettes/BookingSync_API_Client_HostReviews/_create_draft_host_review/creates_a_new_draft_review.yml +78 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_HostReviews/_create_submitted_host_review/creates_a_new_submitted_review.yml +78 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_HostReviews/_dismiss_host_review/dismisses_host_review.yml +76 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_HostReviews/_edit_draft_host_review/updates_given_host_review_by_ID.yml +77 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_HostReviews/_host_review/returns_a_single_host_review.yml +88 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_HostReviews/_host_reviews/returns_host_reviews.yml +87 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_HostReviews/_submit_draft_host_review/submits_given_host_review_by_ID.yml +77 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Hosts/_hosts/returns_hosts.yml +1 -1
- data/spec/fixtures/cassettes/BookingSync_API_Client_RentalUrls/_rental_urls/links/returns_associated_rental.yml +3 -3
- data/spec/fixtures/cassettes/BookingSync_API_Client_ReviewReplies/_create_guest_review_reply/creates_new_reply_to_a_guest_review.yml +77 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_ReviewReplies/_create_host_review_reply/creates_a_new_reply_to_host_review.yml +77 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_ReviewReplies/_review_replies/returns_review_replies.yml +86 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_ReviewReplies/_review_reply/returns_a_single_review_reply.yml +87 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Reviews/_create_review/creates_a_new_review.yml +41 -50
- data/spec/fixtures/cassettes/BookingSync_API_Client_Reviews/_dismiss_review/dismisses_review.yml +126 -0
- metadata +50 -6
- data/.travis.yml +0 -11
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: put
|
5
|
-
uri: https://bookingsync.
|
5
|
+
uri: https://www.bookingsync.com/api/v3/applications_periods_rentals/2
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"applications_periods_rental":{"price_increase":3.1}}'
|
@@ -64,6 +64,6 @@ http_interactions:
|
|
64
64
|
body:
|
65
65
|
encoding: UTF-8
|
66
66
|
string: '{"applications_periods_rentals":[{"id":2,"price_increase":"3.1","start_date":"2019-01-01","end_date":"2100-01-01"}],"meta":{}}'
|
67
|
-
http_version:
|
67
|
+
http_version:
|
68
68
|
recorded_at: Tue, 12 Feb 2019 13:33:30 GMT
|
69
69
|
recorded_with: VCR 4.0.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: put
|
5
|
-
uri: https://bookingsync.
|
5
|
+
uri: https://www.bookingsync.com/api/v3/applications_periods_rentals/2
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"applications_periods_rental":{"price_increase":3.1}}'
|
@@ -64,6 +64,6 @@ http_interactions:
|
|
64
64
|
body:
|
65
65
|
encoding: UTF-8
|
66
66
|
string: '{"applications_periods_rentals":[{"id":2,"price_increase":"3.1","start_date":"2019-01-01","end_date":"2100-01-01"}],"meta":{}}'
|
67
|
-
http_version:
|
67
|
+
http_version:
|
68
68
|
recorded_at: Tue, 12 Feb 2019 13:31:05 GMT
|
69
69
|
recorded_with: VCR 4.0.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://bookingsync.
|
5
|
+
uri: https://www.bookingsync.com/api/v3/applications_periods_rentals
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"applications_periods_rental":{"rental_id":1,"application_id":9,"start_date":"2017-01-03","end_date":"2017-01-04","price_increase":15}}'
|
@@ -33,7 +33,7 @@ http_interactions:
|
|
33
33
|
Etag:
|
34
34
|
- W/"d7c57adb81c25bce892b4917f77a619d"
|
35
35
|
Location:
|
36
|
-
- https://bookingsync.
|
36
|
+
- https://www.bookingsync.com/api/v3/applications_periods_rentals/4
|
37
37
|
Set-Cookie:
|
38
38
|
- ahoy_visit=40090208-8d23-4ef8-873d-c02ff7a572cc; path=/; expires=Tue, 19 Feb
|
39
39
|
2019 17:50:06 -0000
|
@@ -66,6 +66,6 @@ http_interactions:
|
|
66
66
|
body:
|
67
67
|
encoding: UTF-8
|
68
68
|
string: '{"applications_periods_rentals":[{"id":4,"price_increase":"15.0","start_date":"2017-01-03","end_date":"2017-01-04"}],"meta":{}}'
|
69
|
-
http_version:
|
69
|
+
http_version:
|
70
70
|
recorded_at: Tue, 12 Feb 2019 17:50:07 GMT
|
71
71
|
recorded_with: VCR 4.0.0
|
@@ -0,0 +1,78 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://www.bookingsync.com/api/v3/bookings/228/host_reviews/draft
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"host_reviews":[{"comment":"Awesome guest","expires_at":"2045-06-07T12:00:00Z","shareable":false}]}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- BookingSync API gem v0.1.14
|
12
|
+
Accept:
|
13
|
+
- application/vnd.api+json
|
14
|
+
Content-Type:
|
15
|
+
- application/vnd.api+json
|
16
|
+
Authorization:
|
17
|
+
- Bearer <<ACCESS_TOKEN>>
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
Connection:
|
21
|
+
- keep-alive
|
22
|
+
Keep-Alive:
|
23
|
+
- '30'
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 201
|
27
|
+
message: Created
|
28
|
+
headers:
|
29
|
+
Cache-Control:
|
30
|
+
- max-age=0, private, must-revalidate
|
31
|
+
Content-Type:
|
32
|
+
- application/vnd.api+json; charset=utf-8
|
33
|
+
Etag:
|
34
|
+
- W/"8a190c64ff1437e4a18cdc2dc9fdaf8c"
|
35
|
+
Location:
|
36
|
+
- https://www.bookingsync.com/api/v3/host_reviews/c571047a-0055-448a-8651-56461fbf30e2
|
37
|
+
Referrer-Policy:
|
38
|
+
- strict-origin-when-cross-origin
|
39
|
+
Set-Cookie:
|
40
|
+
- ahoy_visit=ff8e8a6b-1b47-45b1-9d88-be41290cff32; path=/; expires=Thu, 13 May
|
41
|
+
2021 10:55:37 GMT
|
42
|
+
- ahoy_visitor=66457c2f-dcb3-451e-a07c-37dc0675be51; path=/; expires=Sat, 06
|
43
|
+
May 2023 10:55:37 GMT
|
44
|
+
Vary:
|
45
|
+
- Origin
|
46
|
+
X-Content-Type-Options:
|
47
|
+
- nosniff
|
48
|
+
X-Download-Options:
|
49
|
+
- noopen
|
50
|
+
X-Frame-Options:
|
51
|
+
- SAMEORIGIN
|
52
|
+
X-Permitted-Cross-Domain-Policies:
|
53
|
+
- none
|
54
|
+
X-Ratelimit-Limit:
|
55
|
+
- '1000'
|
56
|
+
X-Ratelimit-Remaining:
|
57
|
+
- '990'
|
58
|
+
X-Ratelimit-Reset:
|
59
|
+
- '1620298800'
|
60
|
+
X-Request-Id:
|
61
|
+
- 0c05768a-83e7-4f3d-a6b7-c1d836ad2c9f
|
62
|
+
X-Runtime:
|
63
|
+
- '0.421751'
|
64
|
+
X-Updated-Since-Request-Synced-At:
|
65
|
+
- 2021-05-06 10:55:37 UTC
|
66
|
+
X-Xss-Protection:
|
67
|
+
- 1; mode=block
|
68
|
+
Date:
|
69
|
+
- Thu, 06 May 2021 10:55:38 GMT
|
70
|
+
Content-Length:
|
71
|
+
- '902'
|
72
|
+
body:
|
73
|
+
encoding: UTF-8
|
74
|
+
string: '{"links":{"host_reviews.source":"https://www.bookingsync.com/api/v3/sources/{host_reviews.source}","host_reviews.booking":"https://www.bookingsync.com/api/v3/bookings/{host_reviews.booking}","host_reviews.rental":"https://www.bookingsync.com/api/v3/rentals/{host_reviews.rental}","host_reviews.account":"https://www.bookingsync.com/api/v3/accounts/{host_reviews.account}","host_reviews.reply":"https://www.bookingsync.com/api/v3/review_replies/{host_reviews.reply}"},"host_reviews":[{"links":{"account":1,"booking":228,"rental":1,"reply":null,"source":null},"id":"c571047a-0055-448a-8651-56461fbf30e2","comment":"Awesome
|
75
|
+
guest","created_at":"2021-05-06T10:55:37Z","updated_at":"2021-05-06T10:55:37Z","shareable":false,"private_comment":null,"criteria":{"cleanliness":null,"communication":null,"respect_house_rules":null},"submitted_at":null,"is_guest_recommended":null,"expires_at":"2045-06-07T12:00:00Z"}],"meta":{}}'
|
76
|
+
http_version:
|
77
|
+
recorded_at: Thu, 06 May 2021 10:55:38 GMT
|
78
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,78 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://www.bookingsync.com/api/v3/bookings/3/host_reviews
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"host_reviews":[{"comment":"Awesome guest","submitted_at":"2020-06-06T12:00:00Z","expires_at":"2020-06-07T12:00:00Z","is_guest_recommended":true,"shareable":false,"source_id":2,"criteria":{"cleanliness":{"rating":5},"respect_house_rules":{"rating":4},"communication":{"rating":5}}}]}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- BookingSync API gem v0.1.14
|
12
|
+
Accept:
|
13
|
+
- application/vnd.api+json
|
14
|
+
Content-Type:
|
15
|
+
- application/vnd.api+json
|
16
|
+
Authorization:
|
17
|
+
- Bearer <<ACCESS_TOKEN>>
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
Connection:
|
21
|
+
- keep-alive
|
22
|
+
Keep-Alive:
|
23
|
+
- '30'
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 201
|
27
|
+
message: Created
|
28
|
+
headers:
|
29
|
+
Cache-Control:
|
30
|
+
- max-age=0, private, must-revalidate
|
31
|
+
Content-Type:
|
32
|
+
- application/vnd.api+json; charset=utf-8
|
33
|
+
Etag:
|
34
|
+
- W/"8aaea846312e42d6a5c9f440860ad6d7"
|
35
|
+
Location:
|
36
|
+
- https://www.bookingsync.com/api/v3/host_reviews/e479505f-e07c-4787-b920-3519a943562d
|
37
|
+
Referrer-Policy:
|
38
|
+
- strict-origin-when-cross-origin
|
39
|
+
Set-Cookie:
|
40
|
+
- ahoy_visit=e1998ede-bbd3-4f05-ad98-17395049028e; path=/; expires=Wed, 08 Dec
|
41
|
+
2021 13:41:20 GMT
|
42
|
+
- ahoy_visitor=a4636ca2-5162-4dab-b422-472f32872432; path=/; expires=Fri, 01
|
43
|
+
Dec 2023 13:41:20 GMT
|
44
|
+
Vary:
|
45
|
+
- Accept, Origin
|
46
|
+
X-Content-Type-Options:
|
47
|
+
- nosniff
|
48
|
+
X-Download-Options:
|
49
|
+
- noopen
|
50
|
+
X-Frame-Options:
|
51
|
+
- SAMEORIGIN
|
52
|
+
X-Permitted-Cross-Domain-Policies:
|
53
|
+
- none
|
54
|
+
X-Ratelimit-Limit:
|
55
|
+
- '1000'
|
56
|
+
X-Ratelimit-Remaining:
|
57
|
+
- '993'
|
58
|
+
X-Ratelimit-Reset:
|
59
|
+
- '1638367200'
|
60
|
+
X-Request-Id:
|
61
|
+
- d815ae97-05db-4b1b-a1de-c2ff8300f250
|
62
|
+
X-Runtime:
|
63
|
+
- '1.188677'
|
64
|
+
X-Updated-Since-Request-Synced-At:
|
65
|
+
- 2021-12-01 13:41:20 UTC
|
66
|
+
X-Xss-Protection:
|
67
|
+
- 1; mode=block
|
68
|
+
Date:
|
69
|
+
- Wed, 01 Dec 2021 13:41:21 GMT
|
70
|
+
Content-Length:
|
71
|
+
- '1060'
|
72
|
+
body:
|
73
|
+
encoding: UTF-8
|
74
|
+
string: '{"links":{"host_reviews.source":"https://www.bookingsync.com/api/v3/sources/{host_reviews.source}","host_reviews.booking":"https://www.bookingsync.com/api/v3/bookings/{host_reviews.booking}","host_reviews.rental":"https://www.bookingsync.com/api/v3/rentals/{host_reviews.rental}","host_reviews.account":"https://www.bookingsync.com/api/v3/accounts/{host_reviews.account}","host_reviews.reply":"https://www.bookingsync.com/api/v3/review_replies/{host_reviews.reply}"},"host_reviews":[{"links":{"account":1,"booking":3,"rental":1,"reply":null,"source":2},"id":"e479505f-e07c-4787-b920-3519a943562d","comment":"Awesome
|
75
|
+
guest","created_at":"2021-12-01T13:41:20Z","updated_at":"2021-12-01T13:41:20Z","shareable":false,"private_comment":null,"criteria":{"cleanliness":{"rating":"5.0","comment":null},"communication":{"rating":"5.0","comment":null},"respect_house_rules":{"rating":"4.0","comment":null}},"submitted_at":"2020-06-06T12:00:00Z","is_guest_recommended":true,"expires_at":"2020-06-07T12:00:00Z","dismissed_at":null,"dismissed_by":null,"dismissal_reason":null}],"meta":{}}'
|
76
|
+
http_version:
|
77
|
+
recorded_at: Wed, 01 Dec 2021 13:41:21 GMT
|
78
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,76 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: https://www.bookingsync.com/api/v3/host_reviews/e479505f-e07c-4787-b920-3519a943562d/dismiss
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"host_reviews":[{"dismissed_at":"2021-12-01T16:00:00Z"}]}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- BookingSync API gem v0.1.14
|
12
|
+
Accept:
|
13
|
+
- application/vnd.api+json
|
14
|
+
Content-Type:
|
15
|
+
- application/vnd.api+json
|
16
|
+
Authorization:
|
17
|
+
- Bearer <<ACCESS_TOKEN>>
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
Connection:
|
21
|
+
- keep-alive
|
22
|
+
Keep-Alive:
|
23
|
+
- '30'
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message: OK
|
28
|
+
headers:
|
29
|
+
Cache-Control:
|
30
|
+
- max-age=0, private, must-revalidate
|
31
|
+
Content-Type:
|
32
|
+
- application/vnd.api+json; charset=utf-8
|
33
|
+
Etag:
|
34
|
+
- W/"3ad985c84389f975a95729501ad8d914"
|
35
|
+
Referrer-Policy:
|
36
|
+
- strict-origin-when-cross-origin
|
37
|
+
Set-Cookie:
|
38
|
+
- ahoy_visit=f2626bcb-3f8b-4522-bb3d-c08b9930ef5b; path=/; expires=Wed, 08 Dec
|
39
|
+
2021 13:55:08 GMT
|
40
|
+
- ahoy_visitor=b142d3ae-cb46-4ab4-a919-da1d362b8fb8; path=/; expires=Fri, 01
|
41
|
+
Dec 2023 13:55:08 GMT
|
42
|
+
Vary:
|
43
|
+
- Accept, Origin
|
44
|
+
X-Content-Type-Options:
|
45
|
+
- nosniff
|
46
|
+
X-Download-Options:
|
47
|
+
- noopen
|
48
|
+
X-Frame-Options:
|
49
|
+
- SAMEORIGIN
|
50
|
+
X-Permitted-Cross-Domain-Policies:
|
51
|
+
- none
|
52
|
+
X-Ratelimit-Limit:
|
53
|
+
- '1000'
|
54
|
+
X-Ratelimit-Remaining:
|
55
|
+
- '992'
|
56
|
+
X-Ratelimit-Reset:
|
57
|
+
- '1638367200'
|
58
|
+
X-Request-Id:
|
59
|
+
- fcfcd3bf-8ef9-4824-a449-d670d6d6b39c
|
60
|
+
X-Runtime:
|
61
|
+
- '17.461036'
|
62
|
+
X-Updated-Since-Request-Synced-At:
|
63
|
+
- 2021-12-01 13:55:08 UTC
|
64
|
+
X-Xss-Protection:
|
65
|
+
- 1; mode=block
|
66
|
+
Date:
|
67
|
+
- Wed, 01 Dec 2021 13:55:09 GMT
|
68
|
+
Content-Length:
|
69
|
+
- '1078'
|
70
|
+
body:
|
71
|
+
encoding: UTF-8
|
72
|
+
string: '{"links":{"host_reviews.source":"https://www.bookingsync.com/api/v3/sources/{host_reviews.source}","host_reviews.booking":"https://www.bookingsync.com/api/v3/bookings/{host_reviews.booking}","host_reviews.rental":"https://www.bookingsync.com/api/v3/rentals/{host_reviews.rental}","host_reviews.account":"https://www.bookingsync.com/api/v3/accounts/{host_reviews.account}","host_reviews.reply":"https://www.bookingsync.com/api/v3/review_replies/{host_reviews.reply}"},"host_reviews":[{"links":{"account":1,"booking":3,"rental":1,"reply":null,"source":2},"id":"e479505f-e07c-4787-b920-3519a943562d","comment":"Awesome
|
73
|
+
guest","created_at":"2021-12-01T13:41:20Z","updated_at":"2021-12-01T13:55:08Z","shareable":false,"private_comment":null,"criteria":{"cleanliness":{"rating":"5.0","comment":null},"communication":{"rating":"5.0","comment":null},"respect_house_rules":{"rating":"4.0","comment":null}},"submitted_at":"2020-06-06T12:00:00Z","is_guest_recommended":true,"expires_at":"2020-06-07T12:00:00Z","dismissed_at":"2021-12-01T16:00:00Z","dismissed_by":null,"dismissal_reason":null}],"meta":{}}'
|
74
|
+
http_version:
|
75
|
+
recorded_at: Wed, 01 Dec 2021 13:55:09 GMT
|
76
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,77 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: https://www.bookingsync.com/api/v3/host_reviews/draft/c571047a-0055-448a-8651-56461fbf30e2
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"host_reviews":[{"comment":"Woops, not great after all, he emptied
|
9
|
+
the fridge"}]}'
|
10
|
+
headers:
|
11
|
+
User-Agent:
|
12
|
+
- BookingSync API gem v0.1.14
|
13
|
+
Accept:
|
14
|
+
- application/vnd.api+json
|
15
|
+
Content-Type:
|
16
|
+
- application/vnd.api+json
|
17
|
+
Authorization:
|
18
|
+
- Bearer <<ACCESS_TOKEN>>
|
19
|
+
Accept-Encoding:
|
20
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
21
|
+
Connection:
|
22
|
+
- keep-alive
|
23
|
+
Keep-Alive:
|
24
|
+
- '30'
|
25
|
+
response:
|
26
|
+
status:
|
27
|
+
code: 200
|
28
|
+
message: OK
|
29
|
+
headers:
|
30
|
+
Cache-Control:
|
31
|
+
- max-age=0, private, must-revalidate
|
32
|
+
Content-Type:
|
33
|
+
- application/vnd.api+json; charset=utf-8
|
34
|
+
Etag:
|
35
|
+
- W/"e697833c0978de5df707b05aaeaf6f7c"
|
36
|
+
Referrer-Policy:
|
37
|
+
- strict-origin-when-cross-origin
|
38
|
+
Set-Cookie:
|
39
|
+
- ahoy_visit=1a0880e6-5499-4370-a6ae-1844415a71db; path=/; expires=Thu, 13 May
|
40
|
+
2021 10:55:38 GMT
|
41
|
+
- ahoy_visitor=b875df99-003c-4ce9-9bea-a92bc7ad28ac; path=/; expires=Sat, 06
|
42
|
+
May 2023 10:55:38 GMT
|
43
|
+
Vary:
|
44
|
+
- Origin
|
45
|
+
X-Content-Type-Options:
|
46
|
+
- nosniff
|
47
|
+
X-Download-Options:
|
48
|
+
- noopen
|
49
|
+
X-Frame-Options:
|
50
|
+
- SAMEORIGIN
|
51
|
+
X-Permitted-Cross-Domain-Policies:
|
52
|
+
- none
|
53
|
+
X-Ratelimit-Limit:
|
54
|
+
- '1000'
|
55
|
+
X-Ratelimit-Remaining:
|
56
|
+
- '989'
|
57
|
+
X-Ratelimit-Reset:
|
58
|
+
- '1620298800'
|
59
|
+
X-Request-Id:
|
60
|
+
- ccb5a8a1-314f-4a29-a79f-406e90518923
|
61
|
+
X-Runtime:
|
62
|
+
- '0.361907'
|
63
|
+
X-Updated-Since-Request-Synced-At:
|
64
|
+
- 2021-05-06 10:55:38 UTC
|
65
|
+
X-Xss-Protection:
|
66
|
+
- 1; mode=block
|
67
|
+
Date:
|
68
|
+
- Thu, 06 May 2021 10:55:38 GMT
|
69
|
+
Content-Length:
|
70
|
+
- '938'
|
71
|
+
body:
|
72
|
+
encoding: UTF-8
|
73
|
+
string: '{"links":{"host_reviews.source":"https://www.bookingsync.com/api/v3/sources/{host_reviews.source}","host_reviews.booking":"https://www.bookingsync.com/api/v3/bookings/{host_reviews.booking}","host_reviews.rental":"https://www.bookingsync.com/api/v3/rentals/{host_reviews.rental}","host_reviews.account":"https://www.bookingsync.com/api/v3/accounts/{host_reviews.account}","host_reviews.reply":"https://www.bookingsync.com/api/v3/review_replies/{host_reviews.reply}"},"host_reviews":[{"links":{"account":1,"booking":228,"rental":1,"reply":null,"source":null},"id":"c571047a-0055-448a-8651-56461fbf30e2","comment":"Woops,
|
74
|
+
not great after all, he emptied the fridge","created_at":"2021-05-06T10:55:37Z","updated_at":"2021-05-06T10:55:38Z","shareable":false,"private_comment":null,"criteria":{"cleanliness":null,"communication":null,"respect_house_rules":null},"submitted_at":null,"is_guest_recommended":null,"expires_at":"2045-06-07T12:00:00Z"}],"meta":{}}'
|
75
|
+
http_version:
|
76
|
+
recorded_at: Thu, 06 May 2021 10:55:38 GMT
|
77
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,88 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://www.bookingsync.com/api/v3/host_reviews/04356dc9-1349-4e05-b818-09ccdac8d5dd
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: "{}"
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- BookingSync API gem v0.1.14
|
12
|
+
Accept:
|
13
|
+
- application/vnd.api+json
|
14
|
+
Content-Type:
|
15
|
+
- application/vnd.api+json
|
16
|
+
Authorization:
|
17
|
+
- Bearer <<ACCESS_TOKEN>>
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
Connection:
|
21
|
+
- keep-alive
|
22
|
+
Keep-Alive:
|
23
|
+
- '30'
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message: OK
|
28
|
+
headers:
|
29
|
+
Cache-Control:
|
30
|
+
- max-age=0, private, must-revalidate
|
31
|
+
Content-Type:
|
32
|
+
- application/vnd.api+json; charset=utf-8
|
33
|
+
Etag:
|
34
|
+
- W/"2bbaed797f40dd87050510f595e83645"
|
35
|
+
Link:
|
36
|
+
- <https://www.bookingsync.com/api/v3/host_reviews/04356dc9-1349-4e05-b818-09ccdac8d5dd?page=1>;
|
37
|
+
rel="first", <https://www.bookingsync.com/api/v3/host_reviews/04356dc9-1349-4e05-b818-09ccdac8d5dd?page=1>;
|
38
|
+
rel="last"
|
39
|
+
Referrer-Policy:
|
40
|
+
- strict-origin-when-cross-origin
|
41
|
+
Set-Cookie:
|
42
|
+
- ahoy_visit=bb7a7df5-af8d-4c3a-b356-22911704cbad; path=/; expires=Mon, 29 Mar
|
43
|
+
2021 15:24:09 GMT
|
44
|
+
- ahoy_visitor=6ff42ba0-78ad-4df2-8ee7-5e73297f84a1; path=/; expires=Wed, 22
|
45
|
+
Mar 2023 15:24:09 GMT
|
46
|
+
Vary:
|
47
|
+
- Origin
|
48
|
+
X-Content-Type-Options:
|
49
|
+
- nosniff
|
50
|
+
X-Current-Page:
|
51
|
+
- '1'
|
52
|
+
X-Download-Options:
|
53
|
+
- noopen
|
54
|
+
X-Frame-Options:
|
55
|
+
- SAMEORIGIN
|
56
|
+
X-Per-Page:
|
57
|
+
- '100'
|
58
|
+
X-Permitted-Cross-Domain-Policies:
|
59
|
+
- none
|
60
|
+
X-Ratelimit-Limit:
|
61
|
+
- '1000'
|
62
|
+
X-Ratelimit-Remaining:
|
63
|
+
- '996'
|
64
|
+
X-Ratelimit-Reset:
|
65
|
+
- '1616428800'
|
66
|
+
X-Request-Id:
|
67
|
+
- 77d8ea39-be9e-4f7d-a2da-5bb73dfbd52a
|
68
|
+
X-Runtime:
|
69
|
+
- '0.226179'
|
70
|
+
X-Total-Count:
|
71
|
+
- '1'
|
72
|
+
X-Total-Pages:
|
73
|
+
- '1'
|
74
|
+
X-Updated-Since-Request-Synced-At:
|
75
|
+
- 2021-03-22 15:24:09 UTC
|
76
|
+
X-Xss-Protection:
|
77
|
+
- 1; mode=block
|
78
|
+
Date:
|
79
|
+
- Mon, 22 Mar 2021 15:24:09 GMT
|
80
|
+
Content-Length:
|
81
|
+
- '1146'
|
82
|
+
body:
|
83
|
+
encoding: UTF-8
|
84
|
+
string: '{"links":{"host_reviews.source":"https://www.bookingsync.com/api/v3/sources/{host_reviews.source}","host_reviews.booking":"https://www.bookingsync.com/api/v3/bookings/{host_reviews.booking}","host_reviews.rental":"https://www.bookingsync.com/api/v3/rentals/{host_reviews.rental}","host_reviews.account":"https://www.bookingsync.com/api/v3/accounts/{host_reviews.account}","host_reviews.reply":"https://www.bookingsync.com/api/v3/review_replies/{host_reviews.reply}"},"host_reviews":[{"links":{"account":1,"booking":96,"rental":1,"reply":null,"source":null},"id":"04356dc9-1349-4e05-b818-09ccdac8d5dd","comment":"Awesome
|
85
|
+
place","created_at":"2021-03-22T15:23:27Z","updated_at":"2021-03-22T15:23:27Z","shareable":true,"private_comment":null,"criteria":{"cleanliness":null,"communication":null,"respect_house_rules":null},"submitted_at":null,"is_guest_recommended":null,"expires_at":null}],"meta":{"Link":{"first":"https://www.bookingsync.com/api/v3/host_reviews/04356dc9-1349-4e05-b818-09ccdac8d5dd?page=1","last":"https://www.bookingsync.com/api/v3/host_reviews/04356dc9-1349-4e05-b818-09ccdac8d5dd?page=1"},"X-Total-Pages":"1","X-Total-Count":"1","X-Per-Page":"100"}}'
|
86
|
+
http_version:
|
87
|
+
recorded_at: Mon, 22 Mar 2021 15:24:09 GMT
|
88
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,87 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://www.bookingsync.com/api/v3/host_reviews
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: "{}"
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- BookingSync API gem v0.1.14
|
12
|
+
Accept:
|
13
|
+
- application/vnd.api+json
|
14
|
+
Content-Type:
|
15
|
+
- application/vnd.api+json
|
16
|
+
Authorization:
|
17
|
+
- Bearer <<ACCESS_TOKEN>>
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
Connection:
|
21
|
+
- keep-alive
|
22
|
+
Keep-Alive:
|
23
|
+
- '30'
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message: OK
|
28
|
+
headers:
|
29
|
+
Cache-Control:
|
30
|
+
- max-age=0, private, must-revalidate
|
31
|
+
Content-Type:
|
32
|
+
- application/vnd.api+json; charset=utf-8
|
33
|
+
Etag:
|
34
|
+
- W/"34d06aaa8a03d8ab7fc1ecd9fe2435de"
|
35
|
+
Link:
|
36
|
+
- <https://www.bookingsync.com/api/v3/host_reviews?page=1>; rel="first", <https://www.bookingsync.com/api/v3/host_reviews?page=1>;
|
37
|
+
rel="last"
|
38
|
+
Referrer-Policy:
|
39
|
+
- strict-origin-when-cross-origin
|
40
|
+
Set-Cookie:
|
41
|
+
- ahoy_visit=18b0e6dd-4d68-43be-90f9-57b650705c8d; path=/; expires=Mon, 29 Mar
|
42
|
+
2021 15:23:56 GMT
|
43
|
+
- ahoy_visitor=606c015a-fcc9-43cf-81e4-af9073aa647c; path=/; expires=Wed, 22
|
44
|
+
Mar 2023 15:23:56 GMT
|
45
|
+
Vary:
|
46
|
+
- Origin
|
47
|
+
X-Content-Type-Options:
|
48
|
+
- nosniff
|
49
|
+
X-Current-Page:
|
50
|
+
- '1'
|
51
|
+
X-Download-Options:
|
52
|
+
- noopen
|
53
|
+
X-Frame-Options:
|
54
|
+
- SAMEORIGIN
|
55
|
+
X-Per-Page:
|
56
|
+
- '100'
|
57
|
+
X-Permitted-Cross-Domain-Policies:
|
58
|
+
- none
|
59
|
+
X-Ratelimit-Limit:
|
60
|
+
- '1000'
|
61
|
+
X-Ratelimit-Remaining:
|
62
|
+
- '997'
|
63
|
+
X-Ratelimit-Reset:
|
64
|
+
- '1616428800'
|
65
|
+
X-Request-Id:
|
66
|
+
- b91285d5-0c81-49d5-a3f5-b491ab1e4a5e
|
67
|
+
X-Runtime:
|
68
|
+
- '0.235913'
|
69
|
+
X-Total-Count:
|
70
|
+
- '1'
|
71
|
+
X-Total-Pages:
|
72
|
+
- '1'
|
73
|
+
X-Updated-Since-Request-Synced-At:
|
74
|
+
- 2021-03-22 15:23:56 UTC
|
75
|
+
X-Xss-Protection:
|
76
|
+
- 1; mode=block
|
77
|
+
Date:
|
78
|
+
- Mon, 22 Mar 2021 15:23:56 GMT
|
79
|
+
Content-Length:
|
80
|
+
- '1072'
|
81
|
+
body:
|
82
|
+
encoding: UTF-8
|
83
|
+
string: '{"links":{"host_reviews.source":"https://www.bookingsync.com/api/v3/sources/{host_reviews.source}","host_reviews.booking":"https://www.bookingsync.com/api/v3/bookings/{host_reviews.booking}","host_reviews.rental":"https://www.bookingsync.com/api/v3/rentals/{host_reviews.rental}","host_reviews.account":"https://www.bookingsync.com/api/v3/accounts/{host_reviews.account}","host_reviews.reply":"https://www.bookingsync.com/api/v3/review_replies/{host_reviews.reply}"},"host_reviews":[{"links":{"account":1,"booking":96,"rental":1,"reply":null,"source":null},"id":"04356dc9-1349-4e05-b818-09ccdac8d5dd","comment":"Awesome
|
84
|
+
place","created_at":"2021-03-22T15:23:27Z","updated_at":"2021-03-22T15:23:27Z","shareable":true,"private_comment":null,"criteria":{"cleanliness":null,"communication":null,"respect_house_rules":null},"submitted_at":null,"is_guest_recommended":null,"expires_at":null}],"meta":{"Link":{"first":"https://www.bookingsync.com/api/v3/host_reviews?page=1","last":"https://www.bookingsync.com/api/v3/host_reviews?page=1"},"X-Total-Pages":"1","X-Total-Count":"1","X-Per-Page":"100"}}'
|
85
|
+
http_version:
|
86
|
+
recorded_at: Mon, 22 Mar 2021 15:23:56 GMT
|
87
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,77 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: https://www.bookingsync.com/api/v3/host_reviews/draft/c571047a-0055-448a-8651-56461fbf30e2/submit
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"host_reviews":[{"comment":"Woops, not great after all, he emptied
|
9
|
+
the fridge","submitted_at":"2021-06-06T12:00:00Z","is_guest_recommended":false}]}'
|
10
|
+
headers:
|
11
|
+
User-Agent:
|
12
|
+
- BookingSync API gem v0.1.14
|
13
|
+
Accept:
|
14
|
+
- application/vnd.api+json
|
15
|
+
Content-Type:
|
16
|
+
- application/vnd.api+json
|
17
|
+
Authorization:
|
18
|
+
- Bearer <<ACCESS_TOKEN>>
|
19
|
+
Accept-Encoding:
|
20
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
21
|
+
Connection:
|
22
|
+
- keep-alive
|
23
|
+
Keep-Alive:
|
24
|
+
- '30'
|
25
|
+
response:
|
26
|
+
status:
|
27
|
+
code: 200
|
28
|
+
message: OK
|
29
|
+
headers:
|
30
|
+
Cache-Control:
|
31
|
+
- max-age=0, private, must-revalidate
|
32
|
+
Content-Type:
|
33
|
+
- application/vnd.api+json; charset=utf-8
|
34
|
+
Etag:
|
35
|
+
- W/"1cba4be802f03f3278c2dbb595411e4b"
|
36
|
+
Referrer-Policy:
|
37
|
+
- strict-origin-when-cross-origin
|
38
|
+
Set-Cookie:
|
39
|
+
- ahoy_visit=f8cd74ec-c485-46b7-9400-a5bf571ed0de; path=/; expires=Thu, 13 May
|
40
|
+
2021 10:55:38 GMT
|
41
|
+
- ahoy_visitor=14c6ee55-dbae-4dd5-8363-7fd7fef9fb1d; path=/; expires=Sat, 06
|
42
|
+
May 2023 10:55:38 GMT
|
43
|
+
Vary:
|
44
|
+
- Origin
|
45
|
+
X-Content-Type-Options:
|
46
|
+
- nosniff
|
47
|
+
X-Download-Options:
|
48
|
+
- noopen
|
49
|
+
X-Frame-Options:
|
50
|
+
- SAMEORIGIN
|
51
|
+
X-Permitted-Cross-Domain-Policies:
|
52
|
+
- none
|
53
|
+
X-Ratelimit-Limit:
|
54
|
+
- '1000'
|
55
|
+
X-Ratelimit-Remaining:
|
56
|
+
- '988'
|
57
|
+
X-Ratelimit-Reset:
|
58
|
+
- '1620298800'
|
59
|
+
X-Request-Id:
|
60
|
+
- d2e25319-8415-4aa2-be15-ce1c4a84e699
|
61
|
+
X-Runtime:
|
62
|
+
- '0.381850'
|
63
|
+
X-Updated-Since-Request-Synced-At:
|
64
|
+
- 2021-05-06 10:55:38 UTC
|
65
|
+
X-Xss-Protection:
|
66
|
+
- 1; mode=block
|
67
|
+
Date:
|
68
|
+
- Thu, 06 May 2021 10:55:39 GMT
|
69
|
+
Content-Length:
|
70
|
+
- '957'
|
71
|
+
body:
|
72
|
+
encoding: UTF-8
|
73
|
+
string: '{"links":{"host_reviews.source":"https://www.bookingsync.com/api/v3/sources/{host_reviews.source}","host_reviews.booking":"https://www.bookingsync.com/api/v3/bookings/{host_reviews.booking}","host_reviews.rental":"https://www.bookingsync.com/api/v3/rentals/{host_reviews.rental}","host_reviews.account":"https://www.bookingsync.com/api/v3/accounts/{host_reviews.account}","host_reviews.reply":"https://www.bookingsync.com/api/v3/review_replies/{host_reviews.reply}"},"host_reviews":[{"links":{"account":1,"booking":228,"rental":1,"reply":null,"source":null},"id":"c571047a-0055-448a-8651-56461fbf30e2","comment":"Woops,
|
74
|
+
not great after all, he emptied the fridge","created_at":"2021-05-06T10:55:37Z","updated_at":"2021-05-06T10:55:38Z","shareable":false,"private_comment":null,"criteria":{"cleanliness":null,"communication":null,"respect_house_rules":null},"submitted_at":"2021-06-06T12:00:00Z","is_guest_recommended":false,"expires_at":"2045-06-07T12:00:00Z"}],"meta":{}}'
|
75
|
+
http_version:
|
76
|
+
recorded_at: Thu, 06 May 2021 10:55:39 GMT
|
77
|
+
recorded_with: VCR 3.0.3
|
@@ -77,6 +77,6 @@ http_interactions:
|
|
77
77
|
body:
|
78
78
|
encoding: UTF-8
|
79
79
|
string: '{"links":{"hosts.user":"https://www.bookingsync.com/api/v3/users/{hosts.user}","hosts.source":"https://www.bookingsync.com/api/v3/sources/{hosts.source}","hosts.account":"https://www.bookingsync.com/api/v3/accounts/{hosts.account}","hosts.participants":"https://www.bookingsync.com/api/v3/inbox/participants/{hosts.participants}"},"hosts":[{"links":{"account":1,"participants":[7,6,5,4,3,2],"source":null,"user":null},"id":1,"firstname":"John","lastname":"Doe","email":"johns@example.com","created_at":"2018-03-22T22:45:04Z","updated_at":"2018-03-22T22:45:04Z"}],"meta":{"Link":{"first":"https://www.bookingsync.com/api/v3/hosts?page=1","last":"https://www.bookingsync.com/api/v3/hosts?page=1"},"X-Total-Pages":"1","X-Total-Count":"1","X-Per-Page":"100"}}'
|
80
|
-
http_version:
|
80
|
+
http_version:
|
81
81
|
recorded_at: Fri, 23 Mar 2018 20:40:36 GMT
|
82
82
|
recorded_with: VCR 4.0.0
|