bookingsync-api 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +13 -0
  4. data/lib/bookingsync/api/client.rb +21 -0
  5. data/lib/bookingsync/api/client/conversations.rb +75 -0
  6. data/lib/bookingsync/api/client/hosts.rb +51 -0
  7. data/lib/bookingsync/api/client/messages.rb +51 -0
  8. data/lib/bookingsync/api/client/participants.rb +51 -0
  9. data/lib/bookingsync/api/version.rb +1 -1
  10. data/spec/bookingsync/api/client/conversations_spec.rb +124 -0
  11. data/spec/bookingsync/api/client/hosts_spec.rb +79 -0
  12. data/spec/bookingsync/api/client/messages_spec.rb +77 -0
  13. data/spec/bookingsync/api/client/participants_spec.rb +77 -0
  14. data/spec/bookingsync/api/client_spec.rb +42 -0
  15. data/spec/fixtures/cassettes/BookingSync_API_Client_Conversations/_connect_booking_to_conversation/connects_given_conversation_with_booking.yml +154 -0
  16. data/spec/fixtures/cassettes/BookingSync_API_Client_Conversations/_conversation/returns_a_single_conversation.yml +82 -0
  17. data/spec/fixtures/cassettes/BookingSync_API_Client_Conversations/_conversations/returns_conversations.yml +83 -0
  18. data/spec/fixtures/cassettes/BookingSync_API_Client_Conversations/_create_conversation/creates_a_new_conversation.yml +81 -0
  19. data/spec/fixtures/cassettes/BookingSync_API_Client_Conversations/_disconnect_booking_from_conversation/disconnects_given_conversation_from_booking.yml +154 -0
  20. data/spec/fixtures/cassettes/BookingSync_API_Client_Conversations/_edit_conversation/updates_given_conversation_by_ID.yml +74 -0
  21. data/spec/fixtures/cassettes/BookingSync_API_Client_Hosts/_create_host/creates_a_new_host.yml +80 -0
  22. data/spec/fixtures/cassettes/BookingSync_API_Client_Hosts/_edit_host/updates_given_host_by_ID.yml +73 -0
  23. data/spec/fixtures/cassettes/BookingSync_API_Client_Hosts/_host/returns_a_single_host.yml +82 -0
  24. data/spec/fixtures/cassettes/BookingSync_API_Client_Hosts/_hosts/returns_hosts.yml +82 -0
  25. data/spec/fixtures/cassettes/BookingSync_API_Client_Messages/_create_message/creates_a_new_message.yml +81 -0
  26. data/spec/fixtures/cassettes/BookingSync_API_Client_Messages/_edit_message/updates_given_message_by_ID.yml +74 -0
  27. data/spec/fixtures/cassettes/BookingSync_API_Client_Messages/_message/returns_a_single_message.yml +82 -0
  28. data/spec/fixtures/cassettes/BookingSync_API_Client_Messages/_messages/returns_messages.yml +82 -0
  29. data/spec/fixtures/cassettes/BookingSync_API_Client_Participants/_create_participant/creates_a_new_participant.yml +80 -0
  30. data/spec/fixtures/cassettes/BookingSync_API_Client_Participants/_edit_participant/updates_given_participant_by_ID.yml +73 -0
  31. data/spec/fixtures/cassettes/BookingSync_API_Client_Participants/_participant/returns_a_single_participant.yml +82 -0
  32. data/spec/fixtures/cassettes/BookingSync_API_Client_Participants/_participants/returns_participants.yml +82 -0
  33. metadata +50 -2
@@ -0,0 +1,73 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://www.bookingsync.com/api/v3/hosts/2
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"hosts":[{"firstname":"Johnny"}]}'
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.8
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/"860e705e56add93f2eda2223443eb003"
35
+ P3p:
36
+ - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
37
+ OUR SAMi OTRo UNRo PUBi IND UNI STA"
38
+ Set-Cookie:
39
+ - ahoy_track=true; path=/
40
+ - ahoy_visit=948922de-71da-49f5-ba76-5acae7fec254; path=/; expires=Fri, 30 Mar
41
+ 2018 20:40:37 -0000
42
+ - ahoy_visitor=f78c8add-7572-46bf-a548-64b1ee47829f; path=/; expires=Mon, 23
43
+ Mar 2020 20:40:37 -0000
44
+ Vary:
45
+ - Origin
46
+ X-Content-Type-Options:
47
+ - nosniff
48
+ X-Frame-Options:
49
+ - SAMEORIGIN
50
+ X-Ratelimit-Limit:
51
+ - '1000'
52
+ X-Ratelimit-Remaining:
53
+ - '999'
54
+ X-Ratelimit-Reset:
55
+ - '1521838800'
56
+ X-Request-Id:
57
+ - 988f84f4-0e4d-446a-85dc-40a825dd3784
58
+ X-Runtime:
59
+ - '0.285543'
60
+ X-Updated-Since-Request-Synced-At:
61
+ - 2018-03-23 20:40:37 UTC
62
+ X-Xss-Protection:
63
+ - 1; mode=block
64
+ Date:
65
+ - Fri, 23 Mar 2018 20:40:37 GMT
66
+ Content-Length:
67
+ - '563'
68
+ body:
69
+ encoding: UTF-8
70
+ 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":[],"source":1,"user":1},"id":2,"firstname":"Johnny","lastname":"Doe","email":"host_email@example.com","created_at":"2018-03-23T20:40:36Z","updated_at":"2018-03-23T20:40:37Z"}],"meta":{}}'
71
+ http_version:
72
+ recorded_at: Fri, 23 Mar 2018 20:40:37 GMT
73
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,82 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.bookingsync.com/api/v3/hosts/1
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{}"
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.8
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/"10d0ae02e14550089aebdcda05ab0c22"
35
+ Link:
36
+ - <https://www.bookingsync.com/api/v3/hosts/1?page=1>; rel="first", <https://www.bookingsync.com/api/v3/hosts/1?page=1>;
37
+ rel="last"
38
+ P3p:
39
+ - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
40
+ OUR SAMi OTRo UNRo PUBi IND UNI STA"
41
+ Set-Cookie:
42
+ - ahoy_track=true; path=/
43
+ - ahoy_visit=a9232e63-73b8-4d9f-85fd-021c8a4ccd51; path=/; expires=Fri, 30 Mar
44
+ 2018 20:40:36 -0000
45
+ - ahoy_visitor=cb322dce-62d6-4eab-9194-5ffff7f1afaa; path=/; expires=Mon, 23
46
+ Mar 2020 20:40:36 -0000
47
+ Vary:
48
+ - Origin
49
+ X-Content-Type-Options:
50
+ - nosniff
51
+ X-Frame-Options:
52
+ - SAMEORIGIN
53
+ X-Per-Page:
54
+ - '100'
55
+ X-Ratelimit-Limit:
56
+ - '1000'
57
+ X-Ratelimit-Remaining:
58
+ - '999'
59
+ X-Ratelimit-Reset:
60
+ - '1521838800'
61
+ X-Request-Id:
62
+ - 5802db8e-0a46-4374-a766-e727299cdc12
63
+ X-Runtime:
64
+ - '0.142997'
65
+ X-Total-Count:
66
+ - '1'
67
+ X-Total-Pages:
68
+ - '1'
69
+ X-Updated-Since-Request-Synced-At:
70
+ - 2018-03-23 20:40:36 UTC
71
+ X-Xss-Protection:
72
+ - 1; mode=block
73
+ Date:
74
+ - Fri, 23 Mar 2018 20:40:36 GMT
75
+ Content-Length:
76
+ - '759'
77
+ body:
78
+ encoding: UTF-8
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/1?page=1","last":"https://www.bookingsync.com/api/v3/hosts/1?page=1"},"X-Total-Pages":"1","X-Total-Count":"1","X-Per-Page":"100"}}'
80
+ http_version:
81
+ recorded_at: Fri, 23 Mar 2018 20:40:36 GMT
82
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,82 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.bookingsync.com/api/v3/hosts
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{}"
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.8
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/"c34c85aca6dfe4bb966b790ffdff9603"
35
+ Link:
36
+ - <https://www.bookingsync.com/api/v3/hosts?page=1>; rel="first", <https://www.bookingsync.com/api/v3/hosts?page=1>;
37
+ rel="last"
38
+ P3p:
39
+ - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
40
+ OUR SAMi OTRo UNRo PUBi IND UNI STA"
41
+ Set-Cookie:
42
+ - ahoy_track=true; path=/
43
+ - ahoy_visit=64b480a3-0041-43cb-84ba-d027a25a4339; path=/; expires=Fri, 30 Mar
44
+ 2018 20:40:35 -0000
45
+ - ahoy_visitor=4a17152e-6b89-4963-9ff8-31505fc92b08; path=/; expires=Mon, 23
46
+ Mar 2020 20:40:35 -0000
47
+ Vary:
48
+ - Origin
49
+ X-Content-Type-Options:
50
+ - nosniff
51
+ X-Frame-Options:
52
+ - SAMEORIGIN
53
+ X-Per-Page:
54
+ - '100'
55
+ X-Ratelimit-Limit:
56
+ - '1000'
57
+ X-Ratelimit-Remaining:
58
+ - '999'
59
+ X-Ratelimit-Reset:
60
+ - '1521838800'
61
+ X-Request-Id:
62
+ - 389651fc-90ef-4d35-a536-198043d50d3c
63
+ X-Runtime:
64
+ - '1.359598'
65
+ X-Total-Count:
66
+ - '1'
67
+ X-Total-Pages:
68
+ - '1'
69
+ X-Updated-Since-Request-Synced-At:
70
+ - 2018-03-23 20:40:35 UTC
71
+ X-Xss-Protection:
72
+ - 1; mode=block
73
+ Date:
74
+ - Fri, 23 Mar 2018 20:40:36 GMT
75
+ Content-Length:
76
+ - '755'
77
+ body:
78
+ encoding: UTF-8
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:
81
+ recorded_at: Fri, 23 Mar 2018 20:40:36 GMT
82
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,81 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.bookingsync.com/api/v3/inbox/messages
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"messages":[{"content":"Message content","origin":"homeaway","visibility":"all","conversation_id":1,"sender_id":1}]}'
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.8
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/"97e7006d83ac5159402251bfc3cfca13"
35
+ Link:
36
+ - <https://www.bookingsync.com/api/v3/inbox/messages?messages%5B%5D%5Bcontent%5D=Message+content&messages%5B%5D%5Bconversation_id%5D=1&messages%5B%5D%5Borigin%5D=homeaway&messages%5B%5D%5Bsender_id%5D=1&messages%5B%5D%5Bvisibility%5D=all&page=1>;
37
+ rel="first"
38
+ Location:
39
+ - https://www.bookingsync.com/api/v3/inbox/messages/3
40
+ P3p:
41
+ - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
42
+ OUR SAMi OTRo UNRo PUBi IND UNI STA"
43
+ Set-Cookie:
44
+ - ahoy_track=true; path=/
45
+ - ahoy_visit=f96c593b-0d25-4d9e-8242-0e38c8f0f228; path=/; expires=Fri, 30 Mar
46
+ 2018 19:40:37 -0000
47
+ - ahoy_visitor=3490ce08-4cf4-455e-bc01-3dcf49c4c1c6; path=/; expires=Mon, 23
48
+ Mar 2020 19:40:37 -0000
49
+ Vary:
50
+ - Origin
51
+ X-Content-Type-Options:
52
+ - nosniff
53
+ X-Frame-Options:
54
+ - SAMEORIGIN
55
+ X-Per-Page:
56
+ - '100'
57
+ X-Ratelimit-Limit:
58
+ - '1000'
59
+ X-Ratelimit-Remaining:
60
+ - '999'
61
+ X-Ratelimit-Reset:
62
+ - '1521835200'
63
+ X-Request-Id:
64
+ - 35f99877-22f6-4a94-afcf-fba82dbc1865
65
+ X-Runtime:
66
+ - '0.167693'
67
+ X-Updated-Since-Request-Synced-At:
68
+ - 2018-03-23 19:40:37 UTC
69
+ X-Xss-Protection:
70
+ - 1; mode=block
71
+ Date:
72
+ - Fri, 23 Mar 2018 19:40:37 GMT
73
+ Content-Length:
74
+ - '871'
75
+ body:
76
+ encoding: UTF-8
77
+ string: '{"links":{"messages.attachments":"https://www.bookingsync.com/api/v3/inbox/attachments/{messages.attachments}","messages.conversation":"https://www.bookingsync.com/api/v3/inbox/conversations/{messages.conversation}","messages.sender":"https://www.bookingsync.com/api/v3/inbox/participants/{messages.sender}"},"messages":[{"links":{"attachments":[],"conversation":1,"sender":1},"content":"Message
78
+ content","created_at":"2018-03-23T19:40:37Z","id":3,"origin":"homeaway","sent_at":null,"updated_at":"2018-03-23T19:40:37Z","visibility":"all"}],"meta":{"Link":{"first":"https://www.bookingsync.com/api/v3/inbox/messages?messages%5B%5D%5Bcontent%5D=Message+content&messages%5B%5D%5Bconversation_id%5D=1&messages%5B%5D%5Borigin%5D=homeaway&messages%5B%5D%5Bsender_id%5D=1&messages%5B%5D%5Bvisibility%5D=all&page=1"},"X-Total-Pages":null,"X-Total-Count":null,"X-Per-Page":"100"}}'
79
+ http_version:
80
+ recorded_at: Fri, 23 Mar 2018 19:40:37 GMT
81
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,74 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://www.bookingsync.com/api/v3/inbox/messages/3
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"messages":[{"content":"Updated message content"}]}'
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.8
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/"7f0425f595afba5835f5d0faaa0fe992"
35
+ P3p:
36
+ - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
37
+ OUR SAMi OTRo UNRo PUBi IND UNI STA"
38
+ Set-Cookie:
39
+ - ahoy_track=true; path=/
40
+ - ahoy_visit=0a4e90e4-6e49-4b7b-8e1e-233c19358d6a; path=/; expires=Fri, 30 Mar
41
+ 2018 19:40:37 -0000
42
+ - ahoy_visitor=1a689df1-3cdb-47ef-87c0-0733d72fad34; path=/; expires=Mon, 23
43
+ Mar 2020 19:40:37 -0000
44
+ Vary:
45
+ - Origin
46
+ X-Content-Type-Options:
47
+ - nosniff
48
+ X-Frame-Options:
49
+ - SAMEORIGIN
50
+ X-Ratelimit-Limit:
51
+ - '1000'
52
+ X-Ratelimit-Remaining:
53
+ - '999'
54
+ X-Ratelimit-Reset:
55
+ - '1521835200'
56
+ X-Request-Id:
57
+ - 5ea237f9-2248-46db-82ec-60247fcbeb83
58
+ X-Runtime:
59
+ - '0.140907'
60
+ X-Updated-Since-Request-Synced-At:
61
+ - 2018-03-23 19:40:37 UTC
62
+ X-Xss-Protection:
63
+ - 1; mode=block
64
+ Date:
65
+ - Fri, 23 Mar 2018 19:40:37 GMT
66
+ Content-Length:
67
+ - '558'
68
+ body:
69
+ encoding: UTF-8
70
+ string: '{"links":{"messages.attachments":"https://www.bookingsync.com/api/v3/inbox/attachments/{messages.attachments}","messages.conversation":"https://www.bookingsync.com/api/v3/inbox/conversations/{messages.conversation}","messages.sender":"https://www.bookingsync.com/api/v3/inbox/participants/{messages.sender}"},"messages":[{"links":{"attachments":[],"conversation":1,"sender":1},"content":"Updated
71
+ message content","created_at":"2018-03-23T19:40:37Z","id":3,"origin":"homeaway","sent_at":null,"updated_at":"2018-03-23T19:40:37Z","visibility":"all"}],"meta":{}}'
72
+ http_version:
73
+ recorded_at: Fri, 23 Mar 2018 19:40:37 GMT
74
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,82 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.bookingsync.com/api/v3/inbox/messages/1
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{}"
9
+ headers:
10
+ User-Agent:
11
+ - BookingSync API gem v0.1.8
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/"a8e04f16b154912bf50117265a0d5781"
35
+ Link:
36
+ - <https://www.bookingsync.com/api/v3/inbox/messages/1?page=1>; rel="first",
37
+ <https://www.bookingsync.com/api/v3/inbox/messages/1?page=1>; rel="last"
38
+ P3p:
39
+ - CP="OTI DSP COR CUR ADMo DEVo TAI PSAi PSDi IVAi IVDi CONi HISi TELi OTPi
40
+ OUR SAMi OTRo UNRo PUBi IND UNI STA"
41
+ Set-Cookie:
42
+ - ahoy_track=true; path=/
43
+ - ahoy_visit=6cb01cf5-0040-42da-bebf-3ce479cfdce4; path=/; expires=Fri, 30 Mar
44
+ 2018 19:39:32 -0000
45
+ - ahoy_visitor=69be76eb-677f-4af9-9d14-660834cf4c8a; path=/; expires=Mon, 23
46
+ Mar 2020 19:39:32 -0000
47
+ Vary:
48
+ - Origin
49
+ X-Content-Type-Options:
50
+ - nosniff
51
+ X-Frame-Options:
52
+ - SAMEORIGIN
53
+ X-Per-Page:
54
+ - '100'
55
+ X-Ratelimit-Limit:
56
+ - '1000'
57
+ X-Ratelimit-Remaining:
58
+ - '999'
59
+ X-Ratelimit-Reset:
60
+ - '1521835200'
61
+ X-Request-Id:
62
+ - 39f5e032-1722-41a5-b470-3416db9501de
63
+ X-Runtime:
64
+ - '0.164893'
65
+ X-Total-Count:
66
+ - '1'
67
+ X-Total-Pages:
68
+ - '1'
69
+ X-Updated-Since-Request-Synced-At:
70
+ - 2018-03-23 19:39:32 UTC
71
+ X-Xss-Protection:
72
+ - 1; mode=block
73
+ Date:
74
+ - Fri, 23 Mar 2018 19:39:32 GMT
75
+ Content-Length:
76
+ - '749'
77
+ body:
78
+ encoding: UTF-8
79
+ string: '{"links":{"messages.attachments":"https://www.bookingsync.com/api/v3/inbox/attachments/{messages.attachments}","messages.conversation":"https://www.bookingsync.com/api/v3/inbox/conversations/{messages.conversation}","messages.sender":"https://www.bookingsync.com/api/v3/inbox/participants/{messages.sender}"},"messages":[{"links":{"attachments":[],"conversation":1,"sender":1},"content":"hello","created_at":"2018-03-20T13:48:45Z","id":1,"origin":"homeaway","sent_at":null,"updated_at":"2018-03-20T13:48:45Z","visibility":"internal"}],"meta":{"Link":{"first":"https://www.bookingsync.com/api/v3/inbox/messages/1?page=1","last":"https://www.bookingsync.com/api/v3/inbox/messages/1?page=1"},"X-Total-Pages":"1","X-Total-Count":"1","X-Per-Page":"100"}}'
80
+ http_version:
81
+ recorded_at: Fri, 23 Mar 2018 19:39:32 GMT
82
+ recorded_with: VCR 4.0.0