bookingsync-api 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -1
  3. data/Gemfile +2 -1
  4. data/Guardfile +3 -6
  5. data/README.md +11 -3
  6. data/bookingsync-api.gemspec +2 -2
  7. data/lib/bookingsync/api.rb +0 -2
  8. data/lib/bookingsync/api/client.rb +151 -54
  9. data/lib/bookingsync/api/client/amenities.rb +22 -0
  10. data/lib/bookingsync/api/client/billing_addresses.rb +22 -0
  11. data/lib/bookingsync/api/client/bookings.rb +7 -9
  12. data/lib/bookingsync/api/client/bookings_payments.rb +22 -0
  13. data/lib/bookingsync/api/client/clients.rb +43 -0
  14. data/lib/bookingsync/api/client/destinations.rb +22 -0
  15. data/lib/bookingsync/api/client/inquiries.rb +2 -2
  16. data/lib/bookingsync/api/client/payments.rb +53 -0
  17. data/lib/bookingsync/api/client/periods.rb +54 -0
  18. data/lib/bookingsync/api/client/photos.rb +22 -0
  19. data/lib/bookingsync/api/client/rates.rb +23 -0
  20. data/lib/bookingsync/api/client/rates_rules.rb +22 -0
  21. data/lib/bookingsync/api/client/rates_tables.rb +53 -0
  22. data/lib/bookingsync/api/client/rental_agreements.rb +50 -0
  23. data/lib/bookingsync/api/client/rentals.rb +39 -1
  24. data/lib/bookingsync/api/client/reviews.rb +31 -0
  25. data/lib/bookingsync/api/client/seasons.rb +53 -0
  26. data/lib/bookingsync/api/client/special_offers.rb +54 -0
  27. data/lib/bookingsync/api/relation.rb +87 -0
  28. data/lib/bookingsync/api/resource.rb +58 -0
  29. data/lib/bookingsync/api/response.rb +79 -0
  30. data/lib/bookingsync/api/serializer.rb +100 -0
  31. data/lib/bookingsync/api/version.rb +1 -1
  32. data/spec/bookingsync/api/client/amenities_spec.rb +12 -0
  33. data/spec/bookingsync/api/client/billing_addresses_spec.rb +12 -0
  34. data/spec/bookingsync/api/client/billings_payments_spec.rb +12 -0
  35. data/spec/bookingsync/api/client/bookings_spec.rb +10 -8
  36. data/spec/bookingsync/api/client/clients_spec.rb +55 -0
  37. data/spec/bookingsync/api/client/destinations_spec.rb +12 -0
  38. data/spec/bookingsync/api/client/inquiries_spec.rb +1 -1
  39. data/spec/bookingsync/api/client/payments_spec.rb +56 -0
  40. data/spec/bookingsync/api/client/periods_spec.rb +61 -0
  41. data/spec/bookingsync/api/client/photos_spec.rb +12 -0
  42. data/spec/bookingsync/api/client/rates_rules_spec.rb +13 -0
  43. data/spec/bookingsync/api/client/rates_spec.rb +12 -0
  44. data/spec/bookingsync/api/client/rates_tables_spec.rb +59 -0
  45. data/spec/bookingsync/api/client/rental_agreements_spec.rb +64 -0
  46. data/spec/bookingsync/api/client/rentals_spec.rb +56 -6
  47. data/spec/bookingsync/api/client/reviews_spec.rb +33 -0
  48. data/spec/bookingsync/api/client/seasons_spec.rb +61 -0
  49. data/spec/bookingsync/api/client/special_offers_spec.rb +63 -0
  50. data/spec/bookingsync/api/client_spec.rb +31 -10
  51. data/spec/bookingsync/api/relation_spec.rb +72 -0
  52. data/spec/bookingsync/api/resource_spec.rb +79 -0
  53. data/spec/bookingsync/api/response_spec.rb +66 -0
  54. data/spec/cassettes/BookingSync_API_Client_Amenities/_amenities/returns_amenities.yml +72 -0
  55. data/spec/cassettes/BookingSync_API_Client_BillingAddresses/_billing_addresses/returns_billing_addresses.yml +65 -0
  56. data/spec/cassettes/BookingSync_API_Client_Bookings/_bookings/pagination/with_a_block/yields_block_with_batch_of_bookings.yml +12 -12
  57. data/spec/cassettes/BookingSync_API_Client_Bookings/_bookings/pagination/with_auto_paginate_true/returns_all_bookings_joined_from_many_requests.yml +12 -12
  58. data/spec/cassettes/BookingSync_API_Client_Bookings/_bookings/pagination/with_per_page_setting/returns_limited_number_of_bookings.yml +3 -3
  59. data/spec/cassettes/BookingSync_API_Client_Bookings/_clients/returns_clients.yml +66 -0
  60. data/spec/cassettes/BookingSync_API_Client_Bookings/_create_booking/creates_a_booking.yml +1 -1
  61. data/spec/cassettes/BookingSync_API_Client_Bookings/_create_client/creates_a_new_client.yml +64 -0
  62. data/spec/cassettes/BookingSync_API_Client_Bookings/_edit_booking/updates_given_booking_by_ID.yml +18 -14
  63. data/spec/cassettes/BookingSync_API_Client_Bookings/_edit_client/updates_given_client_by_ID.yml +62 -0
  64. data/spec/cassettes/BookingSync_API_Client_BookingsPayments/_bookings_payments/returns_bookings_payments.yml +65 -0
  65. data/spec/cassettes/BookingSync_API_Client_Destinations/_destinations/returns_destinations.yml +64 -0
  66. data/spec/cassettes/BookingSync_API_Client_Inquiries/_create_inquiry/creates_a_new_inquiry.yml +1 -1
  67. data/spec/cassettes/BookingSync_API_Client_Inquiries/_inquiries/returns_inquiries.yml +1 -1
  68. data/spec/cassettes/BookingSync_API_Client_Payments/_cancel_payment/cancels_given_payment.yml +57 -0
  69. data/spec/cassettes/BookingSync_API_Client_Payments/_create_payment/creates_a_new_payment.yml +63 -0
  70. data/spec/cassettes/BookingSync_API_Client_Payments/_edit_payment/updates_given_payment_by_ID.yml +61 -0
  71. data/spec/cassettes/BookingSync_API_Client_Payments/_payments/returns_payments.yml +64 -0
  72. data/spec/cassettes/BookingSync_API_Client_Periods/_create_period/creates_a_new_period.yml +63 -0
  73. data/spec/cassettes/BookingSync_API_Client_Periods/_delete_period/deletes_given_period.yml +70 -0
  74. data/spec/cassettes/BookingSync_API_Client_Periods/_edit_period/updates_given_period_by_ID.yml +61 -0
  75. data/spec/cassettes/BookingSync_API_Client_Periods/_periods/returns_periods.yml +64 -0
  76. data/spec/cassettes/BookingSync_API_Client_Photos/_photos/returns_photos.yml +72 -0
  77. data/spec/cassettes/BookingSync_API_Client_Rates/_rates/returns_rates.yml +64 -0
  78. data/spec/cassettes/BookingSync_API_Client_RatesRules/_rates_rules/returns_rates_rules.yml +64 -0
  79. data/spec/cassettes/BookingSync_API_Client_RatesTables/_create_rates_table/creates_a_new_rates_table.yml +64 -0
  80. data/spec/cassettes/BookingSync_API_Client_RatesTables/_delete_rates_table/deletes_given_rates_table.yml +57 -0
  81. data/spec/cassettes/BookingSync_API_Client_RatesTables/_edit_rates_table/updates_given_rates_table_by_ID.yml +62 -0
  82. data/spec/cassettes/BookingSync_API_Client_RatesTables/_rates_tables/returns_rates_tables.yml +74 -0
  83. data/spec/cassettes/BookingSync_API_Client_RentalAgreements/_create_rental_agreement/creates_a_new_rental_agreement.yml +63 -0
  84. data/spec/cassettes/BookingSync_API_Client_RentalAgreements/_create_rental_agreement_for_booking/creates_a_new_rental_agreement.yml +63 -0
  85. data/spec/cassettes/BookingSync_API_Client_RentalAgreements/_create_rental_agreement_for_rental/creates_a_new_rental_agreement.yml +63 -0
  86. data/spec/cassettes/BookingSync_API_Client_RentalAgreements/_rental_agreements/returns_rental_agreements.yml +64 -0
  87. data/spec/cassettes/BookingSync_API_Client_Rentals/_cancel_rental/cancels_given_rental.yml +57 -0
  88. data/spec/cassettes/BookingSync_API_Client_Rentals/_create_rental/creates_a_new_rental.yml +64 -0
  89. data/spec/cassettes/BookingSync_API_Client_Rentals/_edit_rental/updates_given_rental_by_ID.yml +64 -0
  90. data/spec/cassettes/BookingSync_API_Client_Rentals/_rental/returns_a_single_rental.yml +67 -0
  91. data/spec/cassettes/BookingSync_API_Client_Rentals/_rentals/links/returns_associated_photos.yml +152 -0
  92. data/spec/cassettes/BookingSync_API_Client_Rentals/_rentals/links/returns_links_to_associated_resources.yml +91 -0
  93. data/spec/cassettes/BookingSync_API_Client_Rentals/_rentals/returns_rentals.yml +45 -20
  94. data/spec/cassettes/BookingSync_API_Client_Reviews/_create_review/creates_a_new_review.yml +64 -0
  95. data/spec/cassettes/BookingSync_API_Client_Reviews/_reviews/returns_reviews.yml +83 -0
  96. data/spec/cassettes/BookingSync_API_Client_Seasons/_create_season/creates_a_new_season.yml +64 -0
  97. data/spec/cassettes/BookingSync_API_Client_Seasons/_delete_season/deletes_given_season.yml +57 -0
  98. data/spec/cassettes/BookingSync_API_Client_Seasons/_edit_season/updates_given_season_by_ID.yml +62 -0
  99. data/spec/cassettes/BookingSync_API_Client_Seasons/_seasons/returns_seasons.yml +74 -0
  100. data/spec/cassettes/BookingSync_API_Client_SpecialOffers/_create_special_offer/creates_a_new_special_offer.yml +63 -0
  101. data/spec/cassettes/BookingSync_API_Client_SpecialOffers/_delete_special_offer/deletes_given_special_offer.yml +57 -0
  102. data/spec/cassettes/BookingSync_API_Client_SpecialOffers/_edit_special_offer/updates_given_special_offer_by_ID.yml +61 -0
  103. data/spec/cassettes/{BookingSync_API_Client_Rentals/_rentals/with_specified_fields_in_options/returns_rentals_with_filtered_fields.yml → BookingSync_API_Client_SpecialOffers/_special_offers/returns_special_offers.yml} +17 -10
  104. data/spec/spec_helper.rb +1 -0
  105. metadata +143 -7
  106. data/lib/bookingsync/ext/resource.rb +0 -9
@@ -0,0 +1,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://bookingsync.com/api/v3/rental_agreements
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{\"rental_id\":20,\"rental_agreements\":[{\"body\":\"Lorem ipsum\"}]}"
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
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
+ response:
21
+ status:
22
+ code: 201
23
+ message: Created
24
+ headers:
25
+ X-Ratelimit-Limit:
26
+ - '1000'
27
+ X-Ratelimit-Reset:
28
+ - '1398866400'
29
+ X-Ratelimit-Remaining:
30
+ - '991'
31
+ Location:
32
+ - https://bookingsync.com/api/v3/rental_agreements/19
33
+ Access-Control-Allow-Origin:
34
+ - "*"
35
+ Access-Control-Request-Method:
36
+ - "*"
37
+ Content-Type:
38
+ - application/vnd.api+json; charset=utf-8
39
+ X-Ua-Compatible:
40
+ - IE=Edge
41
+ Etag:
42
+ - "\"0bb4ba747a8f146dd73ab6ab236c4735\""
43
+ Cache-Control:
44
+ - max-age=0, private, must-revalidate
45
+ P3p:
46
+ - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
47
+ OUR SAMi OTRo UNRo PUBi IND UNI STA"
48
+ Set-Cookie:
49
+ - _BookingSync_session=39334dd11baa7ddba3d36c9ed4c12a8c; path=/; secure; HttpOnly
50
+ X-Request-Id:
51
+ - 60fdc393d63cacd4cbc3b9b253f3f330
52
+ X-Runtime:
53
+ - '0.034372'
54
+ Date:
55
+ - Wed, 30 Apr 2014 13:50:50 GMT
56
+ Connection:
57
+ - close
58
+ body:
59
+ encoding: UTF-8
60
+ string: "{\"rental_agreements\":[{\"id\":19,\"body\":\"Lorem ipsum\",\"created_at\":\"2014-04-30T13:50:50Z\",\"updated_at\":\"2014-04-30T13:50:50Z\"}]}"
61
+ http_version:
62
+ recorded_at: Wed, 30 Apr 2014 13:50:51 GMT
63
+ recorded_with: VCR 2.9.0
@@ -0,0 +1,64 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.bookingsync.com/api/v3/rental_agreements
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
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
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ X-Ratelimit-Limit:
26
+ - '1000'
27
+ X-Ratelimit-Reset:
28
+ - '1397491200'
29
+ X-Ratelimit-Remaining:
30
+ - '994'
31
+ Link:
32
+ - <https://www.bookingsync.com/api/v3/rental_agreements?page=1>; rel="first", <https://www.bookingsync.com/api/v3/rental_agreements?page=1>;
33
+ rel="last"
34
+ X-Total-Pages:
35
+ - '1'
36
+ Access-Control-Allow-Origin:
37
+ - '*'
38
+ Access-Control-Request-Method:
39
+ - '*'
40
+ Content-Type:
41
+ - application/vnd.api+json; charset=utf-8
42
+ X-Ua-Compatible:
43
+ - IE=Edge
44
+ Etag:
45
+ - '"a701a631d335872bb921be7c758742a3"'
46
+ Cache-Control:
47
+ - max-age=0, private, must-revalidate
48
+ P3p:
49
+ - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
50
+ OUR SAMi OTRo UNRo PUBi IND UNI STA"
51
+ X-Request-Id:
52
+ - 09bdeaeaa32b9b3f506056f6bdca59f4
53
+ X-Runtime:
54
+ - '0.171807'
55
+ Date:
56
+ - Mon, 14 Apr 2014 15:16:53 GMT
57
+ Connection:
58
+ - close
59
+ body:
60
+ encoding: UTF-8
61
+ string: '{"rental_agreements":[{"id":1,"body":"My Agreement","created_at":"2014-04-14T15:16:42Z","updated_at":"2014-04-14T15:16:42Z"}]}'
62
+ http_version:
63
+ recorded_at: Mon, 14 Apr 2014 15:16:53 GMT
64
+ recorded_with: VCR 2.9.0
@@ -0,0 +1,57 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: https://www.bookingsync.com/api/v3/rentals/4
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{}"
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
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
+ response:
21
+ status:
22
+ code: 204
23
+ message: No Content
24
+ headers:
25
+ X-Ratelimit-Limit:
26
+ - '1000'
27
+ X-Ratelimit-Reset:
28
+ - '1398265200'
29
+ X-Ratelimit-Remaining:
30
+ - '963'
31
+ Access-Control-Allow-Origin:
32
+ - "*"
33
+ Access-Control-Request-Method:
34
+ - "*"
35
+ X-Ua-Compatible:
36
+ - IE=Edge
37
+ Cache-Control:
38
+ - no-cache
39
+ P3p:
40
+ - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
41
+ OUR SAMi OTRo UNRo PUBi IND UNI STA"
42
+ Set-Cookie:
43
+ - _BookingSync_session=bcbd4439e346e3bf8341242fa7cf0f02; path=/; secure; HttpOnly
44
+ X-Request-Id:
45
+ - 4311136581ff8a351f1a8159a6126105
46
+ X-Runtime:
47
+ - '0.082469'
48
+ Date:
49
+ - Wed, 23 Apr 2014 14:27:22 GMT
50
+ Connection:
51
+ - close
52
+ body:
53
+ encoding: UTF-8
54
+ string: ''
55
+ http_version:
56
+ recorded_at: Wed, 23 Apr 2014 14:27:22 GMT
57
+ recorded_with: VCR 2.9.0
@@ -0,0 +1,64 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.bookingsync.com/api/v3/rentals
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{\"rentals\":[{\"name\":\"New rental\",\"sleeps\":2}]}"
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
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
+ response:
21
+ status:
22
+ code: 201
23
+ message: Created
24
+ headers:
25
+ X-Ratelimit-Limit:
26
+ - '1000'
27
+ X-Ratelimit-Reset:
28
+ - '1398265200'
29
+ X-Ratelimit-Remaining:
30
+ - '986'
31
+ Location:
32
+ - https://www.bookingsync.com/api/v3/rentals/49
33
+ Access-Control-Allow-Origin:
34
+ - "*"
35
+ Access-Control-Request-Method:
36
+ - "*"
37
+ Content-Type:
38
+ - application/vnd.api+json; charset=utf-8
39
+ X-Ua-Compatible:
40
+ - IE=Edge
41
+ Etag:
42
+ - "\"fcd4f71deda5f59020d892a9cb37c95c\""
43
+ Cache-Control:
44
+ - max-age=0, private, must-revalidate
45
+ P3p:
46
+ - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
47
+ OUR SAMi OTRo UNRo PUBi IND UNI STA"
48
+ Set-Cookie:
49
+ - _BookingSync_session=5e931f0f43f705327f78ac704b7487f5; path=/; secure; HttpOnly
50
+ X-Request-Id:
51
+ - 30c4195436aded43dbc2fafd458d264f
52
+ X-Runtime:
53
+ - '0.059327'
54
+ Date:
55
+ - Wed, 23 Apr 2014 14:06:44 GMT
56
+ Connection:
57
+ - close
58
+ body:
59
+ encoding: UTF-8
60
+ string: "{\"links\":{\"rentals.destination\":\"https://www.bookingsync.com/api/v3/destinations/{rentals.destination}\",\"rentals.photos\":\"https://www.bookingsync.com/api/v3/photos/{rentals.photos}\"},\"rentals\":[{\"links\":{\"destination\":null,\"photos\":[]},\"account_id\":1,\"id\":49,\"name\":\"New
61
+ rental\",\"headline\":{\"en\":null},\"summary\":{\"en\":null},\"description\":{\"en\":null},\"rental_type\":null,\"units\":1,\"bedrooms_count\":null,\"sleeps\":2,\"sleeps_max\":null,\"bathrooms_count\":null,\"surface\":null,\"bookable_online\":false,\"min_price\":null,\"max_price\":null,\"price_kind\":null,\"currency\":null,\"rates_public_notes\":{\"en\":null},\"lat\":null,\"lng\":null,\"city\":null,\"state\":null,\"country\":\"\",\"contact_name\":null,\"amenities\":[],\"reviews_count\":0,\"reviews_average_rating\":null,\"updated_at\":\"2014-04-23T14:06:44Z\",\"checkin_time\":16,\"checkout_time\":10}]}"
62
+ http_version:
63
+ recorded_at: Wed, 23 Apr 2014 14:06:44 GMT
64
+ recorded_with: VCR 2.9.0
@@ -0,0 +1,64 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://www.bookingsync.com/api/v3/rentals/2
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{\"rentals\":[{\"name\":\"Updated Rental name\"}]}"
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
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
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ X-Ratelimit-Limit:
26
+ - '1000'
27
+ X-Ratelimit-Reset:
28
+ - '1398265200'
29
+ X-Ratelimit-Remaining:
30
+ - '985'
31
+ Access-Control-Allow-Origin:
32
+ - "*"
33
+ Access-Control-Request-Method:
34
+ - "*"
35
+ Content-Type:
36
+ - application/vnd.api+json; charset=utf-8
37
+ X-Ua-Compatible:
38
+ - IE=Edge
39
+ Etag:
40
+ - "\"ab7e1e0c70f49f65e25d05a6af9cf8be\""
41
+ Cache-Control:
42
+ - max-age=0, private, must-revalidate
43
+ P3p:
44
+ - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
45
+ OUR SAMi OTRo UNRo PUBi IND UNI STA"
46
+ Set-Cookie:
47
+ - _BookingSync_session=0bd7169bde0720ba5062c89f3bf64aea; path=/; secure; HttpOnly
48
+ X-Request-Id:
49
+ - 25f22d1946754feeb824dce34aff1d93
50
+ X-Runtime:
51
+ - '0.180833'
52
+ Date:
53
+ - Wed, 23 Apr 2014 14:06:45 GMT
54
+ Connection:
55
+ - close
56
+ body:
57
+ encoding: UTF-8
58
+ string: "{\"links\":{\"rentals.destination\":\"https://www.bookingsync.com/api/v3/destinations/{rentals.destination}\",\"rentals.photos\":\"https://www.bookingsync.com/api/v3/photos/{rentals.photos}\"},\"rentals\":[{\"links\":{\"destination\":1,\"photos\":[1]},\"account_id\":1,\"id\":2,\"name\":\"Updated
59
+ Rental name\",\"headline\":{\"en\":\"Super Headline\"},\"summary\":{\"en\":\"Super
60
+ summary\"},\"description\":{\"en\":\"Complete description\"},\"rental_type\":\"villa\",\"units\":1,\"bedrooms_count\":null,\"sleeps\":7,\"sleeps_max\":null,\"bathrooms_count\":3,\"surface\":120,\"bookable_online\":false,\"min_price\":700,\"max_price\":700,\"price_kind\":\"weekly\",\"currency\":\"EUR\",\"rates_public_notes\":{\"en\":null},\"lat\":45.02,\"lng\":6.6,\"city\":\"Nevache\",\"state\":null,\"country\":\"France\",\"contact_name\":\"Contact
61
+ Fullname\",\"amenities\":[],\"reviews_count\":0,\"reviews_average_rating\":null,\"updated_at\":\"2014-04-23T14:06:45Z\",\"checkin_time\":16,\"checkout_time\":10}]}"
62
+ http_version:
63
+ recorded_at: Wed, 23 Apr 2014 14:06:45 GMT
64
+ recorded_with: VCR 2.9.0
@@ -0,0 +1,67 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.bookingsync.com/api/v3/rentals/2
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
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
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ X-Ratelimit-Limit:
26
+ - '1000'
27
+ X-Ratelimit-Reset:
28
+ - '1395846000'
29
+ X-Ratelimit-Remaining:
30
+ - '997'
31
+ Link:
32
+ - "<https://www.bookingsync.com/api/v3/rentals/2?page=1>; rel=\"first\", <https://www.bookingsync.com/api/v3/rentals/2?page=1>;
33
+ rel=\"last\""
34
+ X-Total-Pages:
35
+ - '1'
36
+ Access-Control-Allow-Origin:
37
+ - "*"
38
+ Access-Control-Request-Method:
39
+ - "*"
40
+ Content-Type:
41
+ - application/vnd.api+json; charset=utf-8
42
+ X-Ua-Compatible:
43
+ - IE=Edge
44
+ Etag:
45
+ - "\"1bc671b0952e787b2101a2601173c6d9\""
46
+ Cache-Control:
47
+ - max-age=0, private, must-revalidate
48
+ P3p:
49
+ - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
50
+ OUR SAMi OTRo UNRo PUBi IND UNI STA"
51
+ X-Request-Id:
52
+ - e2367d447d03f800f132da2296cd2424
53
+ X-Runtime:
54
+ - '0.186784'
55
+ Date:
56
+ - Wed, 26 Mar 2014 14:14:36 GMT
57
+ Connection:
58
+ - close
59
+ body:
60
+ encoding: UTF-8
61
+ string: "{\"rentals\":[{\"links\":{\"photos\":[20]},\"account_id\":1,\"id\":2,\"name\":\"0
62
+ est\",\"headline\":{\"en\":\"Super Headline\"},\"summary\":{\"en\":\"Super
63
+ summary\"},\"description\":{\"en\":\"Complete description\"},\"rental_type\":\"villa\",\"units\":1,\"bedrooms\":null,\"sleeps\":7,\"sleeps_max\":null,\"bathrooms\":3,\"surface\":120,\"bookable_online\":false,\"min_price\":700,\"max_price\":700,\"price_kind\":\"weekly\",\"currency\":\"EUR\",\"rates_public_notes\":{\"en\":null},\"lat\":45.02,\"lng\":6.6,\"city\":\"Nevache\",\"state\":null,\"country\":\"France\",\"contact_name\":\"Contact
64
+ Fullname\",\"amenities\":[],\"reviews_count\":0,\"reviews_average_rating\":null,\"updated_at\":\"2014-03-26T14:14:18Z\"}]}"
65
+ http_version:
66
+ recorded_at: Wed, 26 Mar 2014 14:14:36 GMT
67
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,152 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.bookingsync.com/api/v3/rentals
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
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
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ X-Ratelimit-Limit:
26
+ - '1000'
27
+ X-Ratelimit-Reset:
28
+ - '1396900800'
29
+ X-Ratelimit-Remaining:
30
+ - '996'
31
+ Link:
32
+ - <https://www.bookingsync.com/api/v3/rentals?page=1>; rel="first", <https://www.bookingsync.com/api/v3/rentals?page=1>;
33
+ rel="last"
34
+ X-Total-Pages:
35
+ - '1'
36
+ Access-Control-Allow-Origin:
37
+ - '*'
38
+ Access-Control-Request-Method:
39
+ - '*'
40
+ Content-Type:
41
+ - application/vnd.api+json; charset=utf-8
42
+ X-Ua-Compatible:
43
+ - IE=Edge
44
+ Etag:
45
+ - '"eff718a9480ea3d04ce173f75f34c635"'
46
+ Cache-Control:
47
+ - max-age=0, private, must-revalidate
48
+ P3p:
49
+ - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
50
+ OUR SAMi OTRo UNRo PUBi IND UNI STA"
51
+ X-Request-Id:
52
+ - 1d00480933ae04a67cd55cb57277a3fd
53
+ X-Runtime:
54
+ - '2.011714'
55
+ Date:
56
+ - Mon, 07 Apr 2014 19:54:59 GMT
57
+ Connection:
58
+ - close
59
+ body:
60
+ encoding: UTF-8
61
+ string: '{"links":{"rentals.photos":"https://www.bookingsync.com/api/v3/photos/{rentals.photos}"},"rentals":[{"links":{"photos":[1,3,20]},"account_id":1,"id":2,"name":"0
62
+ est","headline":{"en":"Super Headline"},"summary":{"en":"Super summary"},"description":{"en":"Complete
63
+ description"},"rental_type":"villa","units":1,"bedrooms":null,"sleeps":7,"sleeps_max":null,"bathrooms":3,"surface":120,"bookable_online":false,"min_price":700,"max_price":700,"price_kind":"weekly","currency":"EUR","rates_public_notes":{"en":null},"lat":45.02,"lng":6.6,"city":"Nevache","state":null,"country":"France","contact_name":"Contact
64
+ Fullname","amenities":[],"reviews_count":0,"reviews_average_rating":null,"updated_at":"2014-04-07T14:36:11Z"},{"links":{"photos":[2]},"account_id":1,"id":4,"name":"1
65
+ et","headline":{"en":"Super Headline"},"summary":{"en":"Super summary"},"description":{"en":"Complete
66
+ description"},"rental_type":"villa","units":1,"bedrooms":null,"sleeps":7,"sleeps_max":null,"bathrooms":3,"surface":120,"bookable_online":false,"min_price":700,"max_price":700,"price_kind":"weekly","currency":"EUR","rates_public_notes":{"en":null},"lat":45.02,"lng":6.6,"city":"Nevache","state":null,"country":"France","contact_name":"Contact
67
+ Fullname","amenities":[],"reviews_count":0,"reviews_average_rating":null,"updated_at":"2014-03-21T13:42:58Z"},{"links":{"photos":[]},"account_id":1,"id":6,"name":"ha
68
+ ha","headline":{"en":"Super Headline"},"summary":{"en":"Super summary"},"description":{"en":"Complete
69
+ description"},"rental_type":"villa","units":1,"bedrooms":null,"sleeps":7,"sleeps_max":null,"bathrooms":3,"surface":120,"bookable_online":false,"min_price":700,"max_price":700,"price_kind":"weekly","currency":"EUR","rates_public_notes":{"en":null},"lat":45.02,"lng":6.6,"city":"Nevache","state":null,"country":"France","contact_name":"Contact
70
+ Fullname","amenities":[],"reviews_count":0,"reviews_average_rating":null,"updated_at":"2014-03-26T13:06:42Z"},{"links":{"photos":[]},"account_id":1,"id":8,"name":"bla
71
+ bla","headline":{"en":"Super Headline"},"summary":{"en":"Super summary"},"description":{"en":"Complete
72
+ description"},"rental_type":"villa","units":1,"bedrooms":null,"sleeps":7,"sleeps_max":null,"bathrooms":3,"surface":120,"bookable_online":false,"min_price":700,"max_price":700,"price_kind":"weekly","currency":"EUR","rates_public_notes":{"en":null},"lat":45.02,"lng":6.6,"city":"Nevache","state":null,"country":"France","contact_name":"Contact
73
+ Fullname","amenities":[],"reviews_count":0,"reviews_average_rating":null,"updated_at":"2014-03-26T13:05:05Z"},{"links":{"photos":[]},"account_id":1,"id":10,"name":"4
74
+ sunt","headline":{"en":"Super Headline"},"summary":{"en":"Super summary"},"description":{"en":"Complete
75
+ description"},"rental_type":"villa","units":1,"bedrooms":null,"sleeps":7,"sleeps_max":null,"bathrooms":3,"surface":120,"bookable_online":false,"min_price":700,"max_price":700,"price_kind":"weekly","currency":"EUR","rates_public_notes":{"en":null},"lat":45.02,"lng":6.6,"city":"Nevache","state":null,"country":"France","contact_name":"Contact
76
+ Fullname","amenities":[],"reviews_count":0,"reviews_average_rating":null,"updated_at":"2014-03-21T13:41:55Z"},{"links":{"photos":[7]},"account_id":1,"id":14,"name":"6
77
+ aut sed","headline":{"en":"Super Headline"},"summary":{"en":"Super summary"},"description":{"en":"Complete
78
+ description"},"rental_type":"villa","units":1,"bedrooms":null,"sleeps":7,"sleeps_max":null,"bathrooms":3,"surface":120,"bookable_online":false,"min_price":700,"max_price":700,"price_kind":"weekly","currency":"EUR","rates_public_notes":{"en":null},"lat":45.02,"lng":6.6,"city":"Nevache","state":null,"country":"France","contact_name":"Contact
79
+ Fullname","amenities":[],"reviews_count":0,"reviews_average_rating":null,"updated_at":"2014-02-28T10:57:26Z"},{"links":{"photos":[8]},"account_id":1,"id":16,"name":"7
80
+ exercitationem ea soluta","headline":{"en":"Super Headline"},"summary":{"en":"Super
81
+ summary"},"description":{"en":"Complete description"},"rental_type":"villa","units":1,"bedrooms":null,"sleeps":7,"sleeps_max":null,"bathrooms":3,"surface":120,"bookable_online":false,"min_price":700,"max_price":700,"price_kind":"weekly","currency":"EUR","rates_public_notes":{"en":null},"lat":45.02,"lng":6.6,"city":"Nevache","state":null,"country":"France","contact_name":"Contact
82
+ Fullname","amenities":[],"reviews_count":0,"reviews_average_rating":null,"updated_at":"2014-02-28T10:57:26Z"},{"links":{"photos":[9]},"account_id":1,"id":18,"name":"8
83
+ dolores","headline":{"en":"Super Headline"},"summary":{"en":"Super summary"},"description":{"en":"Complete
84
+ description"},"rental_type":"villa","units":1,"bedrooms":null,"sleeps":7,"sleeps_max":null,"bathrooms":3,"surface":120,"bookable_online":false,"min_price":700,"max_price":700,"price_kind":"weekly","currency":"EUR","rates_public_notes":{"en":null},"lat":45.02,"lng":6.6,"city":"Nevache","state":null,"country":"France","contact_name":"Contact
85
+ Fullname","amenities":[],"reviews_count":0,"reviews_average_rating":null,"updated_at":"2014-02-28T10:58:36Z"},{"links":{"photos":[10]},"account_id":1,"id":20,"name":"9
86
+ doloremque sint","headline":{"en":"Super Headline"},"summary":{"en":"Super
87
+ summary"},"description":{"en":"Complete description"},"rental_type":"villa","units":1,"bedrooms":null,"sleeps":7,"sleeps_max":null,"bathrooms":3,"surface":120,"bookable_online":false,"min_price":700,"max_price":700,"price_kind":"weekly","currency":"EUR","rates_public_notes":{"en":null},"lat":45.02,"lng":6.6,"city":"Nevache","state":null,"country":"France","contact_name":"Contact
88
+ Fullname","amenities":[],"reviews_count":0,"reviews_average_rating":null,"updated_at":"2014-03-21T13:41:56Z"}]}'
89
+ http_version:
90
+ recorded_at: Mon, 07 Apr 2014 19:54:59 GMT
91
+ - request:
92
+ method: get
93
+ uri: https://www.bookingsync.com/api/v3/photos/1,3,20
94
+ body:
95
+ encoding: US-ASCII
96
+ string: ''
97
+ headers:
98
+ User-Agent:
99
+ - Faraday v0.9.0
100
+ Accept:
101
+ - application/vnd.api+json
102
+ Content-Type:
103
+ - application/vnd.api+json
104
+ Authorization:
105
+ - Bearer <<ACCESS_TOKEN>>
106
+ Accept-Encoding:
107
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
108
+ response:
109
+ status:
110
+ code: 200
111
+ message: OK
112
+ headers:
113
+ X-Ratelimit-Limit:
114
+ - '1000'
115
+ X-Ratelimit-Reset:
116
+ - '1396900800'
117
+ X-Ratelimit-Remaining:
118
+ - '995'
119
+ Link:
120
+ - <https://www.bookingsync.com/api/v3/photos/1,3,20?page=1>; rel="first", <https://www.bookingsync.com/api/v3/photos/1,3,20?page=1>;
121
+ rel="last"
122
+ X-Total-Pages:
123
+ - '1'
124
+ Access-Control-Allow-Origin:
125
+ - '*'
126
+ Access-Control-Request-Method:
127
+ - '*'
128
+ Content-Type:
129
+ - application/vnd.api+json; charset=utf-8
130
+ X-Ua-Compatible:
131
+ - IE=Edge
132
+ Etag:
133
+ - '"f0b8bd76067266289563618fdf89e421"'
134
+ Cache-Control:
135
+ - max-age=0, private, must-revalidate
136
+ P3p:
137
+ - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
138
+ OUR SAMi OTRo UNRo PUBi IND UNI STA"
139
+ X-Request-Id:
140
+ - 3c3d83cb4c2c2f8ed993065ffb4700a8
141
+ X-Runtime:
142
+ - '0.177880'
143
+ Date:
144
+ - Mon, 07 Apr 2014 19:55:00 GMT
145
+ Connection:
146
+ - close
147
+ body:
148
+ encoding: UTF-8
149
+ string: '{"photos":[{"id":1,"description":{"en":null},"kind":null,"large_url":"http://www.bookingsync.com/files/development/photo/photo/1/large_74bb15ca0b2008ab7237c807ef77a1ed.jpg","normal_url":"http://www.bookingsync.com/files/development/photo/photo/1/normal_74bb15ca0b2008ab7237c807ef77a1ed.jpg","thumb_url":"http://www.bookingsync.com/files/development/photo/photo/1/thumb_74bb15ca0b2008ab7237c807ef77a1ed.jpg","micro_url":"http://www.bookingsync.com/files/development/photo/photo/1/micro_74bb15ca0b2008ab7237c807ef77a1ed.jpg","position":1},{"id":3,"description":{"en":null},"kind":null,"large_url":"http://www.bookingsync.com/files/development/photo/photo/3/large_7a2d73719aeef0d0495bd821e3bc5a83.jpg","normal_url":"http://www.bookingsync.com/files/development/photo/photo/3/normal_7a2d73719aeef0d0495bd821e3bc5a83.jpg","thumb_url":"http://www.bookingsync.com/files/development/photo/photo/3/thumb_7a2d73719aeef0d0495bd821e3bc5a83.jpg","micro_url":"http://www.bookingsync.com/files/development/photo/photo/3/micro_7a2d73719aeef0d0495bd821e3bc5a83.jpg","position":1},{"id":20,"description":{"en":null},"kind":null,"large_url":"http://www.bookingsync.com/files/development/photo/photo/20/large_4db2ca4f3f26eef3a567c4dfd2e3c6eb.jpg","normal_url":"http://www.bookingsync.com/files/development/photo/photo/20/normal_4db2ca4f3f26eef3a567c4dfd2e3c6eb.jpg","thumb_url":"http://www.bookingsync.com/files/development/photo/photo/20/thumb_4db2ca4f3f26eef3a567c4dfd2e3c6eb.jpg","micro_url":"http://www.bookingsync.com/files/development/photo/photo/20/micro_4db2ca4f3f26eef3a567c4dfd2e3c6eb.jpg","position":1}]}'
150
+ http_version:
151
+ recorded_at: Mon, 07 Apr 2014 19:55:00 GMT
152
+ recorded_with: VCR 2.9.0