contentful-management 1.8.1 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +15 -0
- data/README.md +209 -41
- data/contentful-management.gemspec +1 -1
- data/lib/contentful/management/asset.rb +1 -1
- data/lib/contentful/management/client.rb +155 -31
- data/lib/contentful/management/client_organization_methods_factory.rb +23 -0
- data/lib/contentful/management/client_personal_access_tokens_methods_factory.rb +27 -0
- data/lib/contentful/management/client_snapshot_methods_factory.rb +16 -6
- data/lib/contentful/management/client_space_membership_methods_factory.rb +15 -0
- data/lib/contentful/management/client_ui_extension_methods_factory.rb +15 -0
- data/lib/contentful/management/client_user_methods_factory.rb +27 -0
- data/lib/contentful/management/client_webhook_call_methods_factory.rb +30 -0
- data/lib/contentful/management/client_webhook_health_methods_factory.rb +27 -0
- data/lib/contentful/management/content_type.rb +10 -0
- data/lib/contentful/management/content_type_snapshot_methods_factory.rb +35 -0
- data/lib/contentful/management/editor_interface.rb +1 -1
- data/lib/contentful/management/organization.rb +20 -0
- data/lib/contentful/management/personal_access_token.rb +45 -0
- data/lib/contentful/management/request.rb +0 -1
- data/lib/contentful/management/resource.rb +4 -2
- data/lib/contentful/management/resource_builder.rb +15 -0
- data/lib/contentful/management/snapshot.rb +31 -20
- data/lib/contentful/management/space.rb +32 -10
- data/lib/contentful/management/space_membership.rb +43 -0
- data/lib/contentful/management/space_space_membership_methods_factory.rb +15 -0
- data/lib/contentful/management/space_ui_extension_methods_factory.rb +15 -0
- data/lib/contentful/management/ui_extension.rb +106 -0
- data/lib/contentful/management/user.rb +28 -0
- data/lib/contentful/management/version.rb +1 -1
- data/lib/contentful/management/webhook.rb +20 -0
- data/lib/contentful/management/webhook_call.rb +77 -0
- data/lib/contentful/management/webhook_health.rb +79 -0
- data/lib/contentful/management/webhook_webhook_call_methods_factory.rb +30 -0
- data/lib/contentful/management/webhook_webhook_health_methods_factory.rb +28 -0
- data/spec/fixtures/vcr_cassettes/get_request.yml +34 -17
- data/spec/fixtures/vcr_cassettes/organization/all.yml +100 -0
- data/spec/fixtures/vcr_cassettes/personal_access_token/all.yml +101 -0
- data/spec/fixtures/vcr_cassettes/personal_access_token/create.yml +94 -0
- data/spec/fixtures/vcr_cassettes/personal_access_token/find.yml +91 -0
- data/spec/fixtures/vcr_cassettes/personal_access_token/find_not_found.yml +88 -0
- data/spec/fixtures/vcr_cassettes/personal_access_token/revoke.yml +179 -0
- data/spec/fixtures/vcr_cassettes/snapshot/ct_all.yml +207 -0
- data/spec/fixtures/vcr_cassettes/snapshot/ct_find.yml +198 -0
- data/spec/fixtures/vcr_cassettes/snapshot/ct_find_not_found.yml +94 -0
- data/spec/fixtures/vcr_cassettes/space/all_disabled_cache.yml +428 -0
- data/spec/fixtures/vcr_cassettes/space/disabled_cache.yml +120 -0
- data/spec/fixtures/vcr_cassettes/space_memberships/all.yml +190 -0
- data/spec/fixtures/vcr_cassettes/space_memberships/create.yml +143 -0
- data/spec/fixtures/vcr_cassettes/space_memberships/delete.yml +322 -0
- data/spec/fixtures/vcr_cassettes/space_memberships/find.yml +141 -0
- data/spec/fixtures/vcr_cassettes/ui_extension/all.yml +1020 -0
- data/spec/fixtures/vcr_cassettes/ui_extension/create.yml +133 -0
- data/spec/fixtures/vcr_cassettes/ui_extension/delete.yml +291 -0
- data/spec/fixtures/vcr_cassettes/ui_extension/find.yml +126 -0
- data/spec/fixtures/vcr_cassettes/user/find.yml +96 -0
- data/spec/fixtures/vcr_cassettes/webhook_call/all.yml +151 -0
- data/spec/fixtures/vcr_cassettes/webhook_call/find.yml +88 -0
- data/spec/fixtures/vcr_cassettes/webhook_call/find_not_found.yml +93 -0
- data/spec/fixtures/vcr_cassettes/webhook_health/find.yml +111 -0
- data/spec/lib/contentful/management/client_spec.rb +25 -26
- data/spec/lib/contentful/management/entry_spec.rb +48 -48
- data/spec/lib/contentful/management/organization_spec.rb +33 -0
- data/spec/lib/contentful/management/personal_access_token_spec.rb +85 -0
- data/spec/lib/contentful/management/snapshot_spec.rb +134 -47
- data/spec/lib/contentful/management/space_membership_spec.rb +147 -0
- data/spec/lib/contentful/management/space_spec.rb +35 -1
- data/spec/lib/contentful/management/ui_extension_spec.rb +276 -0
- data/spec/lib/contentful/management/user_spec.rb +52 -0
- data/spec/lib/contentful/management/webhook_calls_spec.rb +69 -0
- data/spec/lib/contentful/management/webhook_health_spec.rb +51 -0
- metadata +88 -8
- data/lib/contentful/management/http_client.rb +0 -89
@@ -0,0 +1,28 @@
|
|
1
|
+
require_relative 'resource_requester'
|
2
|
+
|
3
|
+
module Contentful
|
4
|
+
module Management
|
5
|
+
# Wrapper for webhook health information for a specific webhook.
|
6
|
+
# @private
|
7
|
+
class WebhookWebhookHealthMethodsFactory
|
8
|
+
attr_reader :webhook
|
9
|
+
|
10
|
+
# @private
|
11
|
+
def initialize(webhook)
|
12
|
+
@webhook = webhook
|
13
|
+
end
|
14
|
+
|
15
|
+
# Not supported
|
16
|
+
def all(*)
|
17
|
+
fail 'Not supported'
|
18
|
+
end
|
19
|
+
|
20
|
+
# Gets a webhook call detail for a specific webhook by ID.
|
21
|
+
#
|
22
|
+
# @return [Contentful::Management::WebhookCall]
|
23
|
+
def find
|
24
|
+
WebhookHealth.find(webhook.client, webhook.space.id, webhook.id)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -2,36 +2,53 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://
|
5
|
+
uri: http://mockbin.org/bin/be499b1d-286a-4d22-8d26-00a014b83817?foo=bar
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
+
X-Contentful-User-Agent:
|
11
|
+
- sdk contentful-management.rb/1.8.1; platform ruby/2.4.1; os macOS/16;
|
12
|
+
Authorization:
|
13
|
+
- Bearer <ACCESS_TOKEN>
|
14
|
+
Content-Type:
|
15
|
+
- application/vnd.contentful.management.v1+json
|
16
|
+
Connection:
|
17
|
+
- close
|
10
18
|
Host:
|
11
|
-
-
|
19
|
+
- mockbin.org
|
12
20
|
User-Agent:
|
13
|
-
-
|
21
|
+
- http.rb/2.2.2
|
14
22
|
response:
|
15
23
|
status:
|
16
|
-
code:
|
17
|
-
message:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
18
26
|
headers:
|
27
|
+
Date:
|
28
|
+
- Tue, 03 Oct 2017 20:23:30 GMT
|
19
29
|
Content-Type:
|
20
|
-
- text/html
|
21
|
-
|
22
|
-
-
|
30
|
+
- text/html; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
23
33
|
Connection:
|
24
34
|
- close
|
25
|
-
|
26
|
-
-
|
35
|
+
Set-Cookie:
|
36
|
+
- __cfduid=df1794ea112f7de36ff53566fc22ece8b1507062210; expires=Wed, 03-Oct-18
|
37
|
+
20:23:30 GMT; path=/; domain=.mockbin.org; HttpOnly
|
38
|
+
Vary:
|
39
|
+
- Accept-Encoding
|
40
|
+
Via:
|
41
|
+
- 1.1 vegur
|
27
42
|
Server:
|
28
|
-
-
|
43
|
+
- cloudflare-nginx
|
44
|
+
Cf-Ray:
|
45
|
+
- 3a829e9fb15c52f0-MIA
|
29
46
|
body:
|
30
47
|
encoding: UTF-8
|
31
|
-
string:
|
32
|
-
|
33
|
-
|
34
|
-
|
48
|
+
string: |-
|
49
|
+
{
|
50
|
+
"status": "ok"
|
51
|
+
}
|
35
52
|
http_version:
|
36
|
-
recorded_at:
|
37
|
-
recorded_with: VCR
|
53
|
+
recorded_at: Tue, 03 Oct 2017 20:23:30 GMT
|
54
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,100 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.contentful.com//organizations
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
X-Contentful-User-Agent:
|
11
|
+
- sdk contentful-management.rb/1.8.1; platform ruby/2.4.1; os macOS/16;
|
12
|
+
Authorization:
|
13
|
+
- Bearer <ACCESS_TOKEN>
|
14
|
+
Content-Type:
|
15
|
+
- application/vnd.contentful.management.v1+json
|
16
|
+
Connection:
|
17
|
+
- close
|
18
|
+
Host:
|
19
|
+
- api.contentful.com
|
20
|
+
User-Agent:
|
21
|
+
- http.rb/2.2.2
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Accept-Ranges:
|
28
|
+
- bytes
|
29
|
+
Access-Control-Allow-Headers:
|
30
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Experimental-Feature
|
31
|
+
Access-Control-Allow-Methods:
|
32
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- "*"
|
35
|
+
Access-Control-Expose-Headers:
|
36
|
+
- Etag
|
37
|
+
Access-Control-Max-Age:
|
38
|
+
- '1728000'
|
39
|
+
Cache-Control:
|
40
|
+
- max-age=0
|
41
|
+
Content-Type:
|
42
|
+
- application/vnd.contentful.management.v1+json
|
43
|
+
Date:
|
44
|
+
- Wed, 04 Oct 2017 15:07:52 GMT
|
45
|
+
Etag:
|
46
|
+
- W/"651ea6013850e9b421dd9fc9426d98a3"
|
47
|
+
Server:
|
48
|
+
- Contentful
|
49
|
+
Strict-Transport-Security:
|
50
|
+
- max-age=15768000
|
51
|
+
X-Content-Type-Options:
|
52
|
+
- nosniff
|
53
|
+
X-Contentful-Request-Id:
|
54
|
+
- a3271171ef948742df81f08a0b1839b1
|
55
|
+
X-Frame-Options:
|
56
|
+
- ALLOWALL
|
57
|
+
X-Xss-Protection:
|
58
|
+
- 1; mode=block
|
59
|
+
Content-Length:
|
60
|
+
- '343'
|
61
|
+
Connection:
|
62
|
+
- Close
|
63
|
+
Set-Cookie:
|
64
|
+
- incap_ses_223_673446=ZamKG/Ez7Rzc1K1KyEEYA0j51FkAAAAAwMTHGsQIxzlSQN0ayUjTzQ==;
|
65
|
+
path=/; Domain=.contentful.com
|
66
|
+
- nlbi_673446=BbqTVnmmeEBCNnCR6lKYhQAAAACw9U4GLjDDTTS/vywnp5Ct; path=/; Domain=.contentful.com
|
67
|
+
- visid_incap_673446=MDM9r/WsT3ejhqliOQzTXkj51FkAAAAAQUIPAAAAAABwHMFu35H/VWRglAubS+3U;
|
68
|
+
expires=Thu, 04 Oct 2018 07:14:21 GMT; path=/; Domain=.contentful.com
|
69
|
+
X-Iinfo:
|
70
|
+
- 9-36001826-36002100 NNNN CT(80 72 0) RT(1507129669648 2160) q(0 0 1 -1) r(2
|
71
|
+
2) U5
|
72
|
+
X-Cdn:
|
73
|
+
- Incapsula
|
74
|
+
body:
|
75
|
+
encoding: ASCII-8BIT
|
76
|
+
string: |+
|
77
|
+
{
|
78
|
+
"total":1,
|
79
|
+
"limit":25,
|
80
|
+
"skip":0,
|
81
|
+
"sys":{
|
82
|
+
"type":"Array"
|
83
|
+
},
|
84
|
+
"items":[
|
85
|
+
{
|
86
|
+
"name":"My Test Organization",
|
87
|
+
"sys":{
|
88
|
+
"type":"Organization",
|
89
|
+
"id":"6FR8PjPO6UUvA8qbrkbWWq",
|
90
|
+
"version":0,
|
91
|
+
"createdAt":"2017-10-04T14:25:55Z",
|
92
|
+
"updatedAt":"2017-10-04T14:25:55Z"
|
93
|
+
}
|
94
|
+
}
|
95
|
+
]
|
96
|
+
}
|
97
|
+
|
98
|
+
http_version:
|
99
|
+
recorded_at: Wed, 04 Oct 2017 15:07:53 GMT
|
100
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,101 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.contentful.com/users/me/access_tokens
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
X-Contentful-User-Agent:
|
11
|
+
- sdk contentful-management.rb/1.8.1; platform ruby/2.4.1; os macOS/16;
|
12
|
+
Authorization:
|
13
|
+
- Bearer <ACCESS_TOKEN>
|
14
|
+
Content-Type:
|
15
|
+
- application/vnd.contentful.management.v1+json
|
16
|
+
Connection:
|
17
|
+
- close
|
18
|
+
Host:
|
19
|
+
- api.contentful.com
|
20
|
+
User-Agent:
|
21
|
+
- http.rb/2.2.2
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Accept-Ranges:
|
28
|
+
- bytes
|
29
|
+
Access-Control-Allow-Headers:
|
30
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Experimental-Feature
|
31
|
+
Access-Control-Allow-Methods:
|
32
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- "*"
|
35
|
+
Access-Control-Expose-Headers:
|
36
|
+
- Etag
|
37
|
+
Access-Control-Max-Age:
|
38
|
+
- '1728000'
|
39
|
+
Cache-Control:
|
40
|
+
- max-age=0
|
41
|
+
Content-Type:
|
42
|
+
- application/vnd.contentful.management.v1+json
|
43
|
+
Date:
|
44
|
+
- Fri, 06 Oct 2017 15:16:13 GMT
|
45
|
+
Etag:
|
46
|
+
- W/"1716686f0f9148d4bedf71b34151de1c"
|
47
|
+
Server:
|
48
|
+
- Contentful
|
49
|
+
Strict-Transport-Security:
|
50
|
+
- max-age=15768000
|
51
|
+
X-Content-Type-Options:
|
52
|
+
- nosniff
|
53
|
+
X-Contentful-Request-Id:
|
54
|
+
- 61b89142e1d0104fa78d4febb524aa69
|
55
|
+
X-Frame-Options:
|
56
|
+
- ALLOWALL
|
57
|
+
X-Xss-Protection:
|
58
|
+
- 1; mode=block
|
59
|
+
Content-Length:
|
60
|
+
- '389'
|
61
|
+
Connection:
|
62
|
+
- Close
|
63
|
+
Set-Cookie:
|
64
|
+
- incap_ses_223_673446=uXT2dlzKIlaMxJpPyEEYAzye11kAAAAAxCeCWSWpFbkJhJN/MSBwEw==;
|
65
|
+
path=/; Domain=.contentful.com
|
66
|
+
- nlbi_673446=Rlw5KejBEkE/DLQc6lKYhQAAAAD3CkXJ5yzp/3RPQPW/nO+x; path=/; Domain=.contentful.com
|
67
|
+
- visid_incap_673446=Eew2bCYrTJimpHzOVB8b3jye11kAAAAAQUIPAAAAAAA7MoKvSlfp5c19tY43IVVj;
|
68
|
+
expires=Sat, 06 Oct 2018 07:14:23 GMT; path=/; Domain=.contentful.com
|
69
|
+
X-Iinfo:
|
70
|
+
- 9-80202481-80202579 NNNN CT(28 35 0) RT(1507302972170 382) q(0 0 1 3) r(1
|
71
|
+
1) U5
|
72
|
+
X-Cdn:
|
73
|
+
- Incapsula
|
74
|
+
body:
|
75
|
+
encoding: ASCII-8BIT
|
76
|
+
string: |+
|
77
|
+
{
|
78
|
+
"total":1,
|
79
|
+
"limit":25,
|
80
|
+
"skip":0,
|
81
|
+
"sys":{
|
82
|
+
"type":"Array"
|
83
|
+
},
|
84
|
+
"items":[
|
85
|
+
{
|
86
|
+
"name":"Playground",
|
87
|
+
"revokedAt":null,
|
88
|
+
"sys":{
|
89
|
+
"type":"PersonalAccessToken",
|
90
|
+
"id":"3XBnbqn5s7oJ5PxyZiTzIg",
|
91
|
+
"createdAt":"2017-08-14T13:43:41Z",
|
92
|
+
"updatedAt":"2017-08-14T13:43:41Z"
|
93
|
+
},
|
94
|
+
"scopes":["content_management_manage"]
|
95
|
+
}
|
96
|
+
]
|
97
|
+
}
|
98
|
+
|
99
|
+
http_version:
|
100
|
+
recorded_at: Fri, 06 Oct 2017 15:16:13 GMT
|
101
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,94 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.contentful.com/users/me/access_tokens
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"name":"Test Token","scopes":["content_management_manage"]}'
|
9
|
+
headers:
|
10
|
+
X-Contentful-User-Agent:
|
11
|
+
- sdk contentful-management.rb/1.8.1; platform ruby/2.4.1; os macOS/16;
|
12
|
+
Authorization:
|
13
|
+
- Bearer <ACCESS_TOKEN>
|
14
|
+
Content-Type:
|
15
|
+
- application/vnd.contentful.management.v1+json
|
16
|
+
Connection:
|
17
|
+
- close
|
18
|
+
Host:
|
19
|
+
- api.contentful.com
|
20
|
+
User-Agent:
|
21
|
+
- http.rb/2.2.2
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 201
|
25
|
+
message: Created
|
26
|
+
headers:
|
27
|
+
Accept-Ranges:
|
28
|
+
- bytes
|
29
|
+
Access-Control-Allow-Headers:
|
30
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Experimental-Feature
|
31
|
+
Access-Control-Allow-Methods:
|
32
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- "*"
|
35
|
+
Access-Control-Expose-Headers:
|
36
|
+
- Etag
|
37
|
+
Access-Control-Max-Age:
|
38
|
+
- '1728000'
|
39
|
+
Cache-Control:
|
40
|
+
- max-age=0
|
41
|
+
Content-Type:
|
42
|
+
- application/vnd.contentful.management.v1+json
|
43
|
+
Date:
|
44
|
+
- Fri, 06 Oct 2017 15:25:58 GMT
|
45
|
+
Etag:
|
46
|
+
- W/"883ee3bb6b8555af2e47fb5c0ff3c440"
|
47
|
+
Location:
|
48
|
+
- https://api.contentful.com/users/me/access_tokens/4us7wI40rNxTDzLuLl79dA
|
49
|
+
Server:
|
50
|
+
- Contentful
|
51
|
+
Strict-Transport-Security:
|
52
|
+
- max-age=15768000
|
53
|
+
X-Content-Type-Options:
|
54
|
+
- nosniff
|
55
|
+
X-Contentful-Request-Id:
|
56
|
+
- f0f4b0bd6f03b25380ad213cfcabc0eb
|
57
|
+
X-Frame-Options:
|
58
|
+
- ALLOWALL
|
59
|
+
X-Xss-Protection:
|
60
|
+
- 1; mode=block
|
61
|
+
Content-Length:
|
62
|
+
- '336'
|
63
|
+
Connection:
|
64
|
+
- Close
|
65
|
+
Set-Cookie:
|
66
|
+
- incap_ses_223_673446=ZdhYENcESGbQC6NPyEEYA4Wg11kAAAAAtzxphGEMf/1/DQ48LagYtw==;
|
67
|
+
path=/; Domain=.contentful.com
|
68
|
+
- nlbi_673446=bgzIWQcuqwcpzyfr6lKYhQAAAACeltU6Eb3709qlgu1fg7zn; path=/; Domain=.contentful.com
|
69
|
+
- visid_incap_673446=pHXwn2GPTyuzMkokuEvzvoWg11kAAAAAQUIPAAAAAADPpfZ3yKlSdv5U1EY9gXbu;
|
70
|
+
expires=Sat, 06 Oct 2018 07:14:23 GMT; path=/; Domain=.contentful.com
|
71
|
+
X-Iinfo:
|
72
|
+
- 9-80390063-80390142 NNNN CT(26 57 0) RT(1507303556874 322) q(0 0 1 -1) r(2
|
73
|
+
2) U5
|
74
|
+
X-Cdn:
|
75
|
+
- Incapsula
|
76
|
+
body:
|
77
|
+
encoding: ASCII-8BIT
|
78
|
+
string: |+
|
79
|
+
{
|
80
|
+
"name":"Test Token",
|
81
|
+
"revokedAt":null,
|
82
|
+
"sys":{
|
83
|
+
"type":"PersonalAccessToken",
|
84
|
+
"id":"4us7wI40rNxTDzLuLl79dA",
|
85
|
+
"createdAt":"2017-10-06T15:25:58Z",
|
86
|
+
"updatedAt":"2017-10-06T15:25:58Z"
|
87
|
+
},
|
88
|
+
"scopes":["content_management_manage"],
|
89
|
+
"token":"CFPAT-testytest"
|
90
|
+
}
|
91
|
+
|
92
|
+
http_version:
|
93
|
+
recorded_at: Fri, 06 Oct 2017 15:25:58 GMT
|
94
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,91 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.contentful.com/users/me/access_tokens/3XBnbqn5s7oJ5PxyZiTzIg
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
X-Contentful-User-Agent:
|
11
|
+
- sdk contentful-management.rb/1.8.1; platform ruby/2.4.1; os macOS/16;
|
12
|
+
Authorization:
|
13
|
+
- Bearer <ACCESS_TOKEN>
|
14
|
+
Content-Type:
|
15
|
+
- application/vnd.contentful.management.v1+json
|
16
|
+
Connection:
|
17
|
+
- close
|
18
|
+
Host:
|
19
|
+
- api.contentful.com
|
20
|
+
User-Agent:
|
21
|
+
- http.rb/2.2.2
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Accept-Ranges:
|
28
|
+
- bytes
|
29
|
+
Access-Control-Allow-Headers:
|
30
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent,X-Contentful-Enable-Experimental-Feature
|
31
|
+
Access-Control-Allow-Methods:
|
32
|
+
- DELETE,GET,HEAD,POST,PUT,OPTIONS
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- "*"
|
35
|
+
Access-Control-Expose-Headers:
|
36
|
+
- Etag
|
37
|
+
Access-Control-Max-Age:
|
38
|
+
- '1728000'
|
39
|
+
Cache-Control:
|
40
|
+
- max-age=0
|
41
|
+
Content-Type:
|
42
|
+
- application/vnd.contentful.management.v1+json
|
43
|
+
Date:
|
44
|
+
- Fri, 06 Oct 2017 15:19:13 GMT
|
45
|
+
Etag:
|
46
|
+
- W/"a58719a01ac6ffe482534bf2f41b52ed"
|
47
|
+
Server:
|
48
|
+
- Contentful
|
49
|
+
Strict-Transport-Security:
|
50
|
+
- max-age=15768000
|
51
|
+
X-Content-Type-Options:
|
52
|
+
- nosniff
|
53
|
+
X-Contentful-Request-Id:
|
54
|
+
- 8074aa4c59a616d2b3365d29aa06d210
|
55
|
+
X-Frame-Options:
|
56
|
+
- ALLOWALL
|
57
|
+
X-Xss-Protection:
|
58
|
+
- 1; mode=block
|
59
|
+
Content-Length:
|
60
|
+
- '252'
|
61
|
+
Connection:
|
62
|
+
- Close
|
63
|
+
Set-Cookie:
|
64
|
+
- incap_ses_223_673446=DZTSUMexARKMxJpPyEEYA/Ce11kAAAAAzAtXw1jUJ1GJIeDncSoErQ==;
|
65
|
+
path=/; Domain=.contentful.com
|
66
|
+
- nlbi_673446=EXUpWKS15TiwnM+R6lKYhQAAAAD9JgSwip91yb7DmRrVuWGP; path=/; Domain=.contentful.com
|
67
|
+
- visid_incap_673446=Eew2bCYrTJimpHzOVB8b3jye11kAAAAAQUIPAAAAAAA7MoKvSlfp5c19tY43IVVj;
|
68
|
+
expires=Sat, 06 Oct 2018 07:14:23 GMT; path=/; Domain=.contentful.com
|
69
|
+
X-Iinfo:
|
70
|
+
- 9-80256826-80256908 NNNN CT(42 64 0) RT(1507303151736 348) q(0 0 2 10) r(2
|
71
|
+
2) U5
|
72
|
+
X-Cdn:
|
73
|
+
- Incapsula
|
74
|
+
body:
|
75
|
+
encoding: ASCII-8BIT
|
76
|
+
string: |+
|
77
|
+
{
|
78
|
+
"name":"Playground",
|
79
|
+
"revokedAt":null,
|
80
|
+
"sys":{
|
81
|
+
"type":"PersonalAccessToken",
|
82
|
+
"id":"3XBnbqn5s7oJ5PxyZiTzIg",
|
83
|
+
"createdAt":"2017-08-14T13:43:41Z",
|
84
|
+
"updatedAt":"2017-08-14T13:43:41Z"
|
85
|
+
},
|
86
|
+
"scopes":["content_management_manage"]
|
87
|
+
}
|
88
|
+
|
89
|
+
http_version:
|
90
|
+
recorded_at: Fri, 06 Oct 2017 15:19:13 GMT
|
91
|
+
recorded_with: VCR 3.0.3
|