bookingsync-api 0.1.11 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +1 -0
  3. data/.travis.yml +3 -1
  4. data/CHANGELOG.md +12 -0
  5. data/bookingsync-api.gemspec +3 -3
  6. data/lib/bookingsync/api/client/applications.rb +43 -0
  7. data/lib/bookingsync/api/client/applications_periods_rentals.rb +49 -0
  8. data/lib/bookingsync/api/client/booking_comments.rb +1 -1
  9. data/lib/bookingsync/api/client/contacts.rb +63 -0
  10. data/lib/bookingsync/api/client/rental_urls.rb +72 -0
  11. data/lib/bookingsync/api/client/rentals.rb +3 -2
  12. data/lib/bookingsync/api/client.rb +12 -2
  13. data/lib/bookingsync/api/version.rb +1 -1
  14. data/spec/bookingsync/api/client/applications_periods_rentals_spec.rb +70 -0
  15. data/spec/bookingsync/api/client/applications_spec.rb +44 -0
  16. data/spec/bookingsync/api/client/contacts_spec.rb +116 -0
  17. data/spec/bookingsync/api/client/rental_urls_spec.rb +83 -0
  18. data/spec/fixtures/cassettes/BookingSync_API_Client_Applications/_application/returns_a_single_application.yml +84 -0
  19. data/spec/fixtures/cassettes/BookingSync_API_Client_Applications/_applications/returns_applications.yml +85 -0
  20. data/spec/fixtures/cassettes/BookingSync_API_Client_Applications/_edit_application/returns_updated_application.yml +73 -0
  21. data/spec/fixtures/cassettes/BookingSync_API_Client_Applications/_edit_application/updates_given_application_by_ID.yml +73 -0
  22. data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_applications_periods_rental/returns_applications_periods_rental.yml +80 -0
  23. data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_applications_periods_rentals/returns_applications_periods_rentals.yml +80 -0
  24. data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_create_applications_periods_rental/creates_a_applications_periods_rental.yml +71 -0
  25. data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_edit_applications_periods_rental/returns_updated_applications_periods_rental.yml +69 -0
  26. data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_edit_applications_periods_rental/updates_given_applications_periods_rental_by_ID.yml +69 -0
  27. data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_create_applications_periods_rental/creates_an_applications_periods_rental.yml +71 -0
  28. data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_contact/returns_a_single_contact.yml +99 -0
  29. data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_contact/returns_contact.yml +99 -0
  30. data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_contacts/returns_contacts.yml +99 -0
  31. data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_contacts/returns_contacts_by_ids.yml +99 -0
  32. data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_create_contact/creates_a_new_contact.yml +74 -0
  33. data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_delete_contact/deletes_given_contact.yml +63 -0
  34. data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_edit_contact/updates_given_contact_by_ID.yml +71 -0
  35. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalUrls/_cancel_rental_url/cancels_given_rental_url.yml +63 -0
  36. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalUrls/_create_rental_url/creates_a_new_rental_url.yml +71 -0
  37. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalUrls/_edit_rental_url/updates_given_rental_url_by_ID.yml +69 -0
  38. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalUrls/_rental_url/returns_rental_url.yml +81 -0
  39. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalUrls/_rental_urls/links/returns_associated_rental.yml +166 -0
  40. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalUrls/_rental_urls/returns_rental_urls.yml +80 -0
  41. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_create_rental_url/creates_a_new_rental_url.yml +71 -0
  42. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_edit_rental_url/updates_given_rentals_url.yml +69 -0
  43. data/spec/fixtures/cassettes/BookingSync_API_Client_RentalsAmenities/_edit_rental_url/updates_given_rentals_url_by_ID.yml +69 -0
  44. metadata +88 -19
@@ -0,0 +1,69 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://bookingsync.test/api/v3/applications_periods_rentals/2
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"applications_periods_rental":{"price_increase":3.1}}'
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.12
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/"e87338e07e338f7f4b22e391d698502d"
35
+ Set-Cookie:
36
+ - ahoy_visit=25bf2c5f-1f76-4e5c-a07d-117ebd659e00; path=/; expires=Tue, 19 Feb
37
+ 2019 13:33:29 -0000
38
+ - ahoy_visitor=80a0b13c-a5bf-45b4-8a55-317d7b5229c5; path=/; expires=Fri, 12
39
+ Feb 2021 13:33:29 -0000
40
+ Vary:
41
+ - Origin
42
+ X-Content-Type-Options:
43
+ - nosniff
44
+ X-Frame-Options:
45
+ - SAMEORIGIN
46
+ X-Ratelimit-Limit:
47
+ - '1000'
48
+ X-Ratelimit-Remaining:
49
+ - '991'
50
+ X-Ratelimit-Reset:
51
+ - '1549980000'
52
+ X-Request-Id:
53
+ - 040aa18d-5034-4286-8613-fcc9009a23d7
54
+ X-Runtime:
55
+ - '0.622521'
56
+ X-Updated-Since-Request-Synced-At:
57
+ - 2019-02-12 13:33:29 UTC
58
+ X-Xss-Protection:
59
+ - 1; mode=block
60
+ Date:
61
+ - Tue, 12 Feb 2019 13:33:30 GMT
62
+ Content-Length:
63
+ - '126'
64
+ body:
65
+ encoding: UTF-8
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:
68
+ recorded_at: Tue, 12 Feb 2019 13:33:30 GMT
69
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,69 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://bookingsync.test/api/v3/applications_periods_rentals/2
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"applications_periods_rental":{"price_increase":3.1}}'
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.12
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/"e87338e07e338f7f4b22e391d698502d"
35
+ Set-Cookie:
36
+ - ahoy_visit=82c5906e-40e1-4ba0-8c78-04aac21317e2; path=/; expires=Tue, 19 Feb
37
+ 2019 13:31:04 -0000
38
+ - ahoy_visitor=6bb373dc-921d-4295-944b-322c077fd671; path=/; expires=Fri, 12
39
+ Feb 2021 13:31:04 -0000
40
+ Vary:
41
+ - Origin
42
+ X-Content-Type-Options:
43
+ - nosniff
44
+ X-Frame-Options:
45
+ - SAMEORIGIN
46
+ X-Ratelimit-Limit:
47
+ - '1000'
48
+ X-Ratelimit-Remaining:
49
+ - '992'
50
+ X-Ratelimit-Reset:
51
+ - '1549980000'
52
+ X-Request-Id:
53
+ - 3d17d1bb-dcdd-435d-957b-ddc5430ca715
54
+ X-Runtime:
55
+ - '0.751354'
56
+ X-Updated-Since-Request-Synced-At:
57
+ - 2019-02-12 13:31:04 UTC
58
+ X-Xss-Protection:
59
+ - 1; mode=block
60
+ Date:
61
+ - Tue, 12 Feb 2019 13:31:05 GMT
62
+ Content-Length:
63
+ - '126'
64
+ body:
65
+ encoding: UTF-8
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:
68
+ recorded_at: Tue, 12 Feb 2019 13:31:05 GMT
69
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,71 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://bookingsync.test/api/v3/applications_periods_rentals
6
+ body:
7
+ encoding: UTF-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}}'
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.12
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/"d7c57adb81c25bce892b4917f77a619d"
35
+ Location:
36
+ - https://bookingsync.test/api/v3/applications_periods_rentals/4
37
+ Set-Cookie:
38
+ - ahoy_visit=40090208-8d23-4ef8-873d-c02ff7a572cc; path=/; expires=Tue, 19 Feb
39
+ 2019 17:50:06 -0000
40
+ - ahoy_visitor=14cb23fe-cc3f-44b5-94d7-f8b51bdbf89b; path=/; expires=Fri, 12
41
+ Feb 2021 17:50:06 -0000
42
+ Vary:
43
+ - Origin
44
+ X-Content-Type-Options:
45
+ - nosniff
46
+ X-Frame-Options:
47
+ - SAMEORIGIN
48
+ X-Ratelimit-Limit:
49
+ - '1000'
50
+ X-Ratelimit-Remaining:
51
+ - '996'
52
+ X-Ratelimit-Reset:
53
+ - '1549994400'
54
+ X-Request-Id:
55
+ - 7dbcc649-fd9c-48a3-9678-5b16badb3e1a
56
+ X-Runtime:
57
+ - '0.246783'
58
+ X-Updated-Since-Request-Synced-At:
59
+ - 2019-02-12 17:50:06 UTC
60
+ X-Xss-Protection:
61
+ - 1; mode=block
62
+ Date:
63
+ - Tue, 12 Feb 2019 17:50:07 GMT
64
+ Content-Length:
65
+ - '127'
66
+ body:
67
+ encoding: UTF-8
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:
70
+ recorded_at: Tue, 12 Feb 2019 17:50:07 GMT
71
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,99 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.bookingsync.com/api/v3/contacts/1
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{}"
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.13
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/"0eca489f8874ba9dde96f615bd9fb9b7"
35
+ Link:
36
+ - <https://www.bookingsync.com/api/v3/contacts/1?page=1>; rel="first", <https://www.bookingsync.com/api/v3/contacts/1?page=1>;
37
+ rel="last"
38
+ Set-Cookie:
39
+ - ahoy_visit=d3bfd0f3-14b2-4404-b948-19285c06f6c7; path=/; expires=Tue, 15 Oct
40
+ 2019 12:20:37 -0000
41
+ - ahoy_visitor=490b0ef2-6217-4ea5-b375-d6c714bfb510; path=/; expires=Fri, 08
42
+ Oct 2021 12:20:37 -0000
43
+ Vary:
44
+ - Origin
45
+ X-Content-Type-Options:
46
+ - nosniff
47
+ X-Current-Page:
48
+ - '1'
49
+ X-Frame-Options:
50
+ - SAMEORIGIN
51
+ X-Per-Page:
52
+ - '100'
53
+ X-Ratelimit-Limit:
54
+ - '1000'
55
+ X-Ratelimit-Remaining:
56
+ - '991'
57
+ X-Ratelimit-Reset:
58
+ - '1570539600'
59
+ X-Request-Id:
60
+ - b4af6678-9519-45ea-afea-59503bcb668c
61
+ X-Runtime:
62
+ - '0.093788'
63
+ X-Total-Count:
64
+ - '1'
65
+ X-Total-Pages:
66
+ - '1'
67
+ X-Updated-Since-Request-Synced-At:
68
+ - 2019-10-08 12:20:37 UTC
69
+ X-Xss-Protection:
70
+ - 1; mode=block
71
+ Date:
72
+ - Tue, 08 Oct 2019 12:20:37 GMT
73
+ Content-Length:
74
+ - '828'
75
+ body:
76
+ encoding: ASCII-8BIT
77
+ string: !binary |-
78
+ eyJsaW5rcyI6eyJjb250YWN0cy5hY2NvdW50IjoiaHR0cDovL2Jvb2tpbmdz
79
+ eW5jLnRlc3QvYXBpL3YzL2FjY291bnRzL3tjb250YWN0cy5hY2NvdW50fSJ9
80
+ LCJjb250YWN0cyI6W3sibGlua3MiOns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: Tue, 08 Oct 2019 12:20:37 GMT
99
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,99 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.bookingsync.com/api/v3/contacts/1
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{}"
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.13
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/"0eca489f8874ba9dde96f615bd9fb9b7"
35
+ Link:
36
+ - <https://www.bookingsync.com/api/v3/contacts/1?page=1>; rel="first", <https://www.bookingsync.com/api/v3/contacts/1?page=1>;
37
+ rel="last"
38
+ Set-Cookie:
39
+ - ahoy_visit=34f77b61-3548-4e91-8f91-5ccd5fb88fcc; path=/; expires=Tue, 15 Oct
40
+ 2019 12:13:52 -0000
41
+ - ahoy_visitor=96b332c7-a7a1-47da-9e88-33cce28422e7; path=/; expires=Fri, 08
42
+ Oct 2021 12:13:52 -0000
43
+ Vary:
44
+ - Origin
45
+ X-Content-Type-Options:
46
+ - nosniff
47
+ X-Current-Page:
48
+ - '1'
49
+ X-Frame-Options:
50
+ - SAMEORIGIN
51
+ X-Per-Page:
52
+ - '100'
53
+ X-Ratelimit-Limit:
54
+ - '1000'
55
+ X-Ratelimit-Remaining:
56
+ - '993'
57
+ X-Ratelimit-Reset:
58
+ - '1570539600'
59
+ X-Request-Id:
60
+ - daca0e5e-b1ac-4226-8a65-774bf4f2f921
61
+ X-Runtime:
62
+ - '0.136493'
63
+ X-Total-Count:
64
+ - '1'
65
+ X-Total-Pages:
66
+ - '1'
67
+ X-Updated-Since-Request-Synced-At:
68
+ - 2019-10-08 12:13:52 UTC
69
+ X-Xss-Protection:
70
+ - 1; mode=block
71
+ Date:
72
+ - Tue, 08 Oct 2019 12:13:52 GMT
73
+ Content-Length:
74
+ - '828'
75
+ body:
76
+ encoding: ASCII-8BIT
77
+ string: !binary |-
78
+ eyJsaW5rcyI6eyJjb250YWN0cy5hY2NvdW50IjoiaHR0cDovL2Jvb2tpbmdz
79
+ eW5jLnRlc3QvYXBpL3YzL2FjY291bnRzL3tjb250YWN0cy5hY2NvdW50fSJ9
80
+ LCJjb250YWN0cyI6W3sibGlua3MiOnsiYWNjb3VudCI6MX0sImlkIjoxLCJm
81
+ dWxsbmFtZSI6IkpvaG4gRG9lIiwic3Bva2VuX2xhbmd1YWdlcyI6WyJlbiIs
82
+ ImVzIl0sImVtYWlsIjoiYWRyaWFuQGJvb2tpbmdzeW5jLmNvbSIsInBob25l
83
+ cyI6W3sibGFiZWwiOiJkZW1vIiwibnVtYmVyIjoiMTIzNDU2Nzg5In1dLCJ3
84
+ ZWJzaXRlIjoiaHR0cDovL3d3LmJvb2tpbmdzeW5jLmNvbSIsInByaXZhdGVf
85
+ bm90ZXMiOm51bGwsImFkZHJlc3MxIjoiZGVtbyBhZGRyZXNzIiwiYWRkcmVz
86
+ czIiOm51bGwsImNpdHkiOiJOw6l2YWNoZSIsInN0YXRlIjoiU3RhdGUiLCJ6
87
+ aXAiOiIzMzIwOSIsImNvdW50cnlfY29kZSI6IkZSIiwiZmlyc3RuYW1lIjoi
88
+ Sm9obiIsImxhc3RuYW1lIjoiRG9lIiwiZ2VuZGVyIjoibWFsZSIsImNyZWF0
89
+ ZWRfYXQiOiIyMDE5LTEwLTA4VDEyOjA2OjQ5WiIsInVwZGF0ZWRfYXQiOiIy
90
+ MDE5LTEwLTA4VDEyOjA2OjQ5WiIsImNhbmNlbGVkX2F0IjpudWxsLCJmb3Jn
91
+ ZXRfbWVfYXQiOm51bGwsInByb2Nlc3NpbmdfcmVzdHJpY3RlZF9hdCI6bnVs
92
+ bH1dLCJtZXRhIjp7IkxpbmsiOnsiZmlyc3QiOiJodHRwOi8vYm9va2luZ3N5
93
+ bmMudGVzdC9hcGkvdjMvY29udGFjdHMvMT9wYWdlPTEiLCJsYXN0IjoiaHR0
94
+ cDovL2Jvb2tpbmdzeW5jLnRlc3QvYXBpL3YzL2NvbnRhY3RzLzE/cGFnZT0x
95
+ In0sIlgtVG90YWwtUGFnZXMiOiIxIiwiWC1Ub3RhbC1Db3VudCI6IjEiLCJY
96
+ LVBlci1QYWdlIjoiMTAwIn19
97
+ http_version:
98
+ recorded_at: Tue, 08 Oct 2019 12:13:52 GMT
99
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,99 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.bookingsync.com/api/v3/contacts
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{}"
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.13
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/"6d40a9df44cbfd4f6e31af938c30f15e"
35
+ Link:
36
+ - <https://www.bookingsync.com/api/v3/contacts?page=1>; rel="first", <https://www.bookingsync.com/api/v3/contacts?page=1>;
37
+ rel="last"
38
+ Set-Cookie:
39
+ - ahoy_visit=21d8d4cf-735b-4d60-a916-f5da7890620d; path=/; expires=Tue, 15 Oct
40
+ 2019 12:14:17 -0000
41
+ - ahoy_visitor=ad8819cd-447e-400f-851c-34882f0e97dd; path=/; expires=Fri, 08
42
+ Oct 2021 12:14:17 -0000
43
+ Vary:
44
+ - Origin
45
+ X-Content-Type-Options:
46
+ - nosniff
47
+ X-Current-Page:
48
+ - '1'
49
+ X-Frame-Options:
50
+ - SAMEORIGIN
51
+ X-Per-Page:
52
+ - '100'
53
+ X-Ratelimit-Limit:
54
+ - '1000'
55
+ X-Ratelimit-Remaining:
56
+ - '992'
57
+ X-Ratelimit-Reset:
58
+ - '1570539600'
59
+ X-Request-Id:
60
+ - 7aecd0b8-0be5-46b4-8eca-e0dde3ab8bce
61
+ X-Runtime:
62
+ - '0.080301'
63
+ X-Total-Count:
64
+ - '1'
65
+ X-Total-Pages:
66
+ - '1'
67
+ X-Updated-Since-Request-Synced-At:
68
+ - 2019-10-08 12:14:17 UTC
69
+ X-Xss-Protection:
70
+ - 1; mode=block
71
+ Date:
72
+ - Tue, 08 Oct 2019 12:14:17 GMT
73
+ Content-Length:
74
+ - '824'
75
+ body:
76
+ encoding: ASCII-8BIT
77
+ string: !binary |-
78
+ eyJsaW5rcyI6eyJjb250YWN0cy5hY2NvdW50IjoiaHR0cDovL2Jvb2tpbmdz
79
+ eW5jLnRlc3QvYXBpL3YzL2FjY291bnRzL3tjb250YWN0cy5hY2NvdW50fSJ9
80
+ LCJjb250YWN0cyI6W3sibGlua3MiOnsiYWNjb3VudCI6MX0sImlkIjoxLCJm
81
+ dWxsbmFtZSI6IkpvaG4gRG9lIiwic3Bva2VuX2xhbmd1YWdlcyI6WyJlbiIs
82
+ ImVzIl0sImVtYWlsIjoiYWRyaWFuQGJvb2tpbmdzeW5jLmNvbSIsInBob25l
83
+ cyI6W3sibGFiZWwiOiJkZW1vIiwibnVtYmVyIjoiMTIzNDU2Nzg5In1dLCJ3
84
+ ZWJzaXRlIjoiaHR0cDovL3d3LmJvb2tpbmdzeW5jLmNvbSIsInByaXZhdGVf
85
+ bm90ZXMiOm51bGwsImFkZHJlc3MxIjoiZGVtbyBhZGRyZXNzIiwiYWRkcmVz
86
+ czIiOm51bGwsImNpdHkiOiJOw6l2YWNoZSIsInN0YXRlIjoiU3RhdGUiLCJ6
87
+ aXAiOiIzMzIwOSIsImNvdW50cnlfY29kZSI6IkZSIiwiZmlyc3RuYW1lIjoi
88
+ Sm9obiIsImxhc3RuYW1lIjoiRG9lIiwiZ2VuZGVyIjoibWFsZSIsImNyZWF0
89
+ ZWRfYXQiOiIyMDE5LTEwLTA4VDEyOjA2OjQ5WiIsInVwZGF0ZWRfYXQiOiIy
90
+ MDE5LTEwLTA4VDEyOjA2OjQ5WiIsImNhbmNlbGVkX2F0IjpudWxsLCJmb3Jn
91
+ ZXRfbWVfYXQiOm51bGwsInByb2Nlc3NpbmdfcmVzdHJpY3RlZF9hdCI6bnVs
92
+ bH1dLCJtZXRhIjp7IkxpbmsiOnsiZmlyc3QiOiJodHRwOi8vYm9va2luZ3N5
93
+ bmMudGVzdC9hcGkvdjMvY29udGFjdHM/cGFnZT0xIiwibGFzdCI6Imh0dHA6
94
+ Ly9ib29raW5nc3luYy50ZXN0L2FwaS92My9jb250YWN0cz9wYWdlPTEifSwi
95
+ WC1Ub3RhbC1QYWdlcyI6IjEiLCJYLVRvdGFsLUNvdW50IjoiMSIsIlgtUGVy
96
+ LVBhZ2UiOiIxMDAifX0=
97
+ http_version:
98
+ recorded_at: Tue, 08 Oct 2019 12:14:17 GMT
99
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,99 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.bookingsync.com/api/v3/contacts/1
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{}"
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.13
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/"0eca489f8874ba9dde96f615bd9fb9b7"
35
+ Link:
36
+ - <https://www.bookingsync.com/api/v3/contacts/1?page=1>; rel="first", <https://www.bookingsync.com/api/v3/contacts/1?page=1>;
37
+ rel="last"
38
+ Set-Cookie:
39
+ - ahoy_visit=db3ad9fb-3ff1-4a63-befa-f8c567d68070; path=/; expires=Tue, 15 Oct
40
+ 2019 12:12:34 -0000
41
+ - ahoy_visitor=98b81e55-7220-4020-881a-8853b7c3ef87; path=/; expires=Fri, 08
42
+ Oct 2021 12:12:34 -0000
43
+ Vary:
44
+ - Origin
45
+ X-Content-Type-Options:
46
+ - nosniff
47
+ X-Current-Page:
48
+ - '1'
49
+ X-Frame-Options:
50
+ - SAMEORIGIN
51
+ X-Per-Page:
52
+ - '100'
53
+ X-Ratelimit-Limit:
54
+ - '1000'
55
+ X-Ratelimit-Remaining:
56
+ - '994'
57
+ X-Ratelimit-Reset:
58
+ - '1570539600'
59
+ X-Request-Id:
60
+ - 1446ac7b-b6e4-4e6f-be72-0b4879c340d7
61
+ X-Runtime:
62
+ - '0.085136'
63
+ X-Total-Count:
64
+ - '1'
65
+ X-Total-Pages:
66
+ - '1'
67
+ X-Updated-Since-Request-Synced-At:
68
+ - 2019-10-08 12:12:34 UTC
69
+ X-Xss-Protection:
70
+ - 1; mode=block
71
+ Date:
72
+ - Tue, 08 Oct 2019 12:12:34 GMT
73
+ Content-Length:
74
+ - '828'
75
+ body:
76
+ encoding: ASCII-8BIT
77
+ string: !binary |-
78
+ eyJsaW5rcyI6eyJjb250YWN0cy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hY3RzLzE/cGFnZT0x
95
+ In0sIlgtVG90YWwtUGFnZXMiOiIxIiwiWC1Ub3RhbC1Db3VudCI6IjEiLCJY
96
+ LVBlci1QYWdlIjoiMTAwIn19
97
+ http_version:
98
+ recorded_at: Tue, 08 Oct 2019 12:12:34 GMT
99
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,74 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.bookingsync.com/api/v3/contacts
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"contacts":[{"firstname":"John","lastname":"Doe","email":"halldor@example.com","website":"http://www.demo.com","address1":"Demo
9
+ address","gender":"male","phones":[{"label":"default","number":"123456789"}],"country_code":"IS","city":"Reykjavik","zip":"33209","state":"Demo","spoken_languages":["en"]}]}'
10
+ headers:
11
+ User-Agent:
12
+ - BookingSync API gem v0.1.13
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: 201
28
+ message: Created
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/"109d9e77fc462040fed610a1804f174b"
36
+ Location:
37
+ - https://www.bookingsync.com/api/v3/contacts/2
38
+ Set-Cookie:
39
+ - ahoy_visit=927716d7-6aed-44ba-a636-cb1edfae464c; path=/; expires=Tue, 15 Oct
40
+ 2019 12:23:10 -0000
41
+ - ahoy_visitor=aa6a9b4c-f97d-44c5-adde-376832ea98f3; path=/; expires=Fri, 08
42
+ Oct 2021 12:23:10 -0000
43
+ Vary:
44
+ - Origin
45
+ X-Content-Type-Options:
46
+ - nosniff
47
+ X-Frame-Options:
48
+ - SAMEORIGIN
49
+ X-Ratelimit-Limit:
50
+ - '1000'
51
+ X-Ratelimit-Remaining:
52
+ - '990'
53
+ X-Ratelimit-Reset:
54
+ - '1570539600'
55
+ X-Request-Id:
56
+ - 17912562-0f48-4ef3-9cf5-ec3e289dfda4
57
+ X-Runtime:
58
+ - '0.288931'
59
+ X-Updated-Since-Request-Synced-At:
60
+ - 2019-10-08 12:23:10 UTC
61
+ X-Xss-Protection:
62
+ - 1; mode=block
63
+ Date:
64
+ - Tue, 08 Oct 2019 12:23:10 GMT
65
+ Content-Length:
66
+ - '633'
67
+ body:
68
+ encoding: UTF-8
69
+ string: '{"links":{"contacts.account":"https://www.bookingsync.com/api/v3/accounts/{contacts.account}"},"contacts":[{"links":{"account":1},"id":2,"fullname":"John
70
+ Doe","spoken_languages":["en"],"email":"halldor@example.com","phones":[{"label":"default","number":"123456789"}],"website":"http://www.demo.com","private_notes":null,"address1":"Demo
71
+ address","address2":null,"city":"Reykjavik","state":"Demo","zip":"33209","country_code":"IS","firstname":"John","lastname":"Doe","gender":"male","created_at":"2019-10-08T12:23:10Z","updated_at":"2019-10-08T12:23:10Z","canceled_at":null,"forget_me_at":null,"processing_restricted_at":null}],"meta":{}}'
72
+ http_version:
73
+ recorded_at: Tue, 08 Oct 2019 12:23:10 GMT
74
+ recorded_with: VCR 5.0.0