bookingsync-api 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/.travis.yml +3 -1
- data/CHANGELOG.md +3 -0
- data/lib/bookingsync/api/client.rb +10 -0
- data/lib/bookingsync/api/client/applications.rb +43 -0
- data/lib/bookingsync/api/client/applications_periods_rentals.rb +49 -0
- data/lib/bookingsync/api/client/booking_comments.rb +1 -1
- data/lib/bookingsync/api/client/contacts.rb +63 -0
- data/lib/bookingsync/api/client/rentals.rb +3 -2
- data/lib/bookingsync/api/version.rb +1 -1
- data/spec/bookingsync/api/client/applications_periods_rentals_spec.rb +70 -0
- data/spec/bookingsync/api/client/applications_spec.rb +44 -0
- data/spec/bookingsync/api/client/contacts_spec.rb +116 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Applications/_application/returns_a_single_application.yml +84 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Applications/_applications/returns_applications.yml +85 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Applications/_edit_application/returns_updated_application.yml +73 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Applications/_edit_application/updates_given_application_by_ID.yml +73 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_applications_periods_rental/returns_applications_periods_rental.yml +80 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_applications_periods_rentals/returns_applications_periods_rentals.yml +80 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_create_applications_periods_rental/creates_a_applications_periods_rental.yml +71 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_edit_applications_periods_rental/returns_updated_applications_periods_rental.yml +69 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_ApplicationsPeriodsRentals/_edit_applications_periods_rental/updates_given_applications_periods_rental_by_ID.yml +69 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Bookings/_create_applications_periods_rental/creates_an_applications_periods_rental.yml +71 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_contact/returns_a_single_contact.yml +99 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_contact/returns_contact.yml +99 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_contacts/returns_contacts.yml +99 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_contacts/returns_contacts_by_ids.yml +99 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_create_contact/creates_a_new_contact.yml +74 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_delete_contact/deletes_given_contact.yml +63 -0
- data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_edit_contact/updates_given_contact_by_ID.yml +71 -0
- metadata +46 -4
@@ -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/"329930caf43d53b1d9585178f1d749c2"
|
35
|
+
Location:
|
36
|
+
- https://bookingsync.test/api/v3/applications_periods_rentals/3
|
37
|
+
Set-Cookie:
|
38
|
+
- ahoy_visit=4cb740ce-99ee-48b1-9999-5f87d415f164; path=/; expires=Tue, 19 Feb
|
39
|
+
2019 17:47:53 -0000
|
40
|
+
- ahoy_visitor=bfb3a53f-61fe-4530-b1f4-273bc8592f22; path=/; expires=Fri, 12
|
41
|
+
Feb 2021 17:47:53 -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
|
+
- '998'
|
52
|
+
X-Ratelimit-Reset:
|
53
|
+
- '1549994400'
|
54
|
+
X-Request-Id:
|
55
|
+
- 8b539374-fab2-444c-add6-36f36602dc75
|
56
|
+
X-Runtime:
|
57
|
+
- '0.585753'
|
58
|
+
X-Updated-Since-Request-Synced-At:
|
59
|
+
- 2019-02-12 17:47:53 UTC
|
60
|
+
X-Xss-Protection:
|
61
|
+
- 1; mode=block
|
62
|
+
Date:
|
63
|
+
- Tue, 12 Feb 2019 17:47:54 GMT
|
64
|
+
Content-Length:
|
65
|
+
- '127'
|
66
|
+
body:
|
67
|
+
encoding: UTF-8
|
68
|
+
string: '{"applications_periods_rentals":[{"id":3,"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:47:54 GMT
|
71
|
+
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=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
|
data/spec/fixtures/cassettes/BookingSync_API_Client_Contacts/_contact/returns_a_single_contact.yml
ADDED
@@ -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
|
+
LCJjb250YWN0cyI6W3sibGlua3MiOnsiYWNjb3VudCI6MX0sImlkIjoxLCJm
|
81
|
+
dWxsbmFtZ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
|
97
|
+
http_version:
|
98
|
+
recorded_at: 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
|
+
ZWJzaXRlIjoiaHR0cDovL3d3LmJvb2tpbmdzeW5jLmNvbS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