oshpark 0.0.10 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +192 -39
- data/lib/oshpark/client.rb +5 -5
- data/lib/oshpark/connection.rb +12 -6
- data/lib/oshpark/model.rb +1 -0
- data/lib/oshpark/order.rb +9 -15
- data/lib/oshpark/project.rb +2 -3
- data/lib/oshpark/shipping_rate.rb +5 -0
- data/lib/oshpark/version.rb +1 -1
- data/oshpark.gemspec +1 -1
- data/spec/acceptance/workflow_spec.rb +3 -4
- data/spec/fixtures/cassettes/RSpec_ExampleGroups_APIWorkflow.yml +15547 -1451
- data/spec/fixtures/cassettes/RSpec_ExampleGroups_OshparkClient_Authenicate_WithAPassword_WithAValidPassword_Token_2.yml +128 -0
- data/spec/fixtures/cassettes/RSpec_ExampleGroups_OshparkClient_Authenicate_WithAPassword_WithAnInvalidPassword.yml +121 -0
- data/spec/fixtures/cassettes/RSpec_ExampleGroups_OshparkClient_Authenicate_WithAnAPISecret_WithAValidAPISecret_Token_2.yml +129 -0
- data/spec/fixtures/cassettes/RSpec_ExampleGroups_OshparkClient_Authenicate_WithAnAPISecret_WithAnInvalidAPISecret.yml +122 -0
- data/spec/fixtures/cassettes/RSpec_ExampleGroups_OshparkClient_Token.yml +64 -0
- data/spec/lib/oshpark/client_spec.rb +2 -3
- data/spec/lib/oshpark/import_spec.rb +1 -0
- data/spec/lib/oshpark/order_spec.rb +4 -4
- data/spec/lib/oshpark/panel_spec.rb +1 -0
- data/spec/lib/oshpark/project_spec.rb +1 -0
- data/spec/lib/oshpark/upload_spec.rb +1 -0
- metadata +13 -3
@@ -0,0 +1,128 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://oshpark.com/api/v1/sessions
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
base64_string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 201
|
19
|
+
message: Created
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- Cowboy
|
23
|
+
Date:
|
24
|
+
- Tue, 06 Jan 2015 03:31:11 GMT
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Strict-Transport-Security:
|
28
|
+
- max-age=31536000
|
29
|
+
X-Frame-Options:
|
30
|
+
- SAMEORIGIN
|
31
|
+
X-Xss-Protection:
|
32
|
+
- 1; mode=block
|
33
|
+
X-Content-Type-Options:
|
34
|
+
- nosniff
|
35
|
+
Location:
|
36
|
+
- "/api/v1/sessions.%23%3CApiSessionToken:0x007fa06be7d020%3E"
|
37
|
+
Content-Type:
|
38
|
+
- application/json; charset=utf-8
|
39
|
+
Etag:
|
40
|
+
- '"48b9619225bd716a1eb1765b14506537"'
|
41
|
+
Cache-Control:
|
42
|
+
- max-age=0, private, must-revalidate
|
43
|
+
Set-Cookie:
|
44
|
+
- _Playground_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTk1Y2VmZmQ1MTI4MzQyNzc0ZWU3M2JjNWNmNmZkNWJhBjsAVEkiEXByZXZpb3VzX3VybAY7AEZJIhUvYXBpL3YxL3Nlc3Npb25zBjsAVA%3D%3D--9dbe95f9bb95289b89ab7e8400b4bc00e8556037;
|
45
|
+
path=/; secure; HttpOnly
|
46
|
+
X-Request-Id:
|
47
|
+
- 07ac6567-4290-4de5-be05-962ad5a7e2bd
|
48
|
+
X-Runtime:
|
49
|
+
- '0.024809'
|
50
|
+
Transfer-Encoding:
|
51
|
+
- chunked
|
52
|
+
Via:
|
53
|
+
- 1.1 vegur
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
base64_string: |
|
57
|
+
eyJhcGlfc2Vzc2lvbl90b2tlbiI6eyJ0b2tlbiI6Ild5UlhGYUo5VDByek9p
|
58
|
+
OFdlV2dPbnFub1RVenJpZkdrRm5Cb3lmMTk3TjRHSGlzQWp3aEw1Q1ppOWlC
|
59
|
+
Q1lEWFBuclVwb0w1ZWZ0ZnlGU2RrZEx2Mjg2SHZ0Z3ZVZXlYNVV3ZjQyWUl6
|
60
|
+
aHNWNDZyY1pFZ1V0NWFyWm9yclc5NTNIIiwidHRsIjoxMTk5LCJ1c2VyX2lk
|
61
|
+
IjpudWxsfX0=
|
62
|
+
http_version:
|
63
|
+
recorded_at: Tue, 06 Jan 2015 03:31:11 GMT
|
64
|
+
- request:
|
65
|
+
method: post
|
66
|
+
uri: https://oshpark.com/api/v1/sessions
|
67
|
+
body:
|
68
|
+
encoding: US-ASCII
|
69
|
+
base64_string: |
|
70
|
+
ZW1haWw9VVNFUk5BTUUmcGFzc3dvcmQ9UEFTU1dPUkQ=
|
71
|
+
headers:
|
72
|
+
Accept-Encoding:
|
73
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
74
|
+
Accept:
|
75
|
+
- application/json
|
76
|
+
User-Agent:
|
77
|
+
- Ruby
|
78
|
+
Authorization:
|
79
|
+
- WyRXFaJ9T0rzOi8WeWgOnqnoTUzrifGkFnBoyf197N4GHisAjwhL5CZi9iBCYDXPnrUpoL5eftfyFSdkdLv286HvtgvUeyX5Uwf42YIzhsV46rcZEgUt5arZorrW953H
|
80
|
+
response:
|
81
|
+
status:
|
82
|
+
code: 201
|
83
|
+
message: Created
|
84
|
+
headers:
|
85
|
+
Server:
|
86
|
+
- Cowboy
|
87
|
+
Date:
|
88
|
+
- Tue, 06 Jan 2015 03:31:12 GMT
|
89
|
+
Connection:
|
90
|
+
- keep-alive
|
91
|
+
Strict-Transport-Security:
|
92
|
+
- max-age=31536000
|
93
|
+
X-Frame-Options:
|
94
|
+
- SAMEORIGIN
|
95
|
+
X-Xss-Protection:
|
96
|
+
- 1; mode=block
|
97
|
+
X-Content-Type-Options:
|
98
|
+
- nosniff
|
99
|
+
Location:
|
100
|
+
- "/api/v1/sessions.%23%3CApiSessionToken:0x007fa088eb8270%3E"
|
101
|
+
Content-Type:
|
102
|
+
- application/json; charset=utf-8
|
103
|
+
Etag:
|
104
|
+
- '"be8c3fe08c92961d4970b5c1edc0400f"'
|
105
|
+
Cache-Control:
|
106
|
+
- max-age=0, private, must-revalidate
|
107
|
+
Set-Cookie:
|
108
|
+
- _Playground_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTRhNTRmM2M4ZmEwNmNhOTdkMDhlODc5ZGFjZDQ3ODdmBjsAVEkiEXByZXZpb3VzX3VybAY7AEZJIhUvYXBpL3YxL3Nlc3Npb25zBjsAVA%3D%3D--bf1a36bbcbd959002f1949602a89e3b34df6f3e8;
|
109
|
+
path=/; secure; HttpOnly
|
110
|
+
X-Request-Id:
|
111
|
+
- 2400b711-eaae-402e-8c29-a9f61a9990bf
|
112
|
+
X-Runtime:
|
113
|
+
- '0.141498'
|
114
|
+
Transfer-Encoding:
|
115
|
+
- chunked
|
116
|
+
Via:
|
117
|
+
- 1.1 vegur
|
118
|
+
body:
|
119
|
+
encoding: UTF-8
|
120
|
+
base64_string: |
|
121
|
+
eyJhcGlfc2Vzc2lvbl90b2tlbiI6eyJ0b2tlbiI6Ild5UlhGYUo5VDByek9p
|
122
|
+
OFdlV2dPbnFub1RVenJpZkdrRm5Cb3lmMTk3TjRHSGlzQWp3aEw1Q1ppOWlC
|
123
|
+
Q1lEWFBuclVwb0w1ZWZ0ZnlGU2RrZEx2Mjg2SHZ0Z3ZVZXlYNVV3ZjQyWUl6
|
124
|
+
aHNWNDZyY1pFZ1V0NWFyWm9yclc5NTNIIiwidHRsIjoxMTk5LCJ1c2VyX2lk
|
125
|
+
IjoiNTQ5ODhiOWEzMTY2NjIwMDI2NWMwMTAwIn19
|
126
|
+
http_version:
|
127
|
+
recorded_at: Tue, 06 Jan 2015 03:31:12 GMT
|
128
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,121 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://oshpark.com/api/v1/sessions
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
base64_string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 201
|
19
|
+
message: Created
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- Cowboy
|
23
|
+
Date:
|
24
|
+
- Tue, 06 Jan 2015 03:31:12 GMT
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Strict-Transport-Security:
|
28
|
+
- max-age=31536000
|
29
|
+
X-Frame-Options:
|
30
|
+
- SAMEORIGIN
|
31
|
+
X-Xss-Protection:
|
32
|
+
- 1; mode=block
|
33
|
+
X-Content-Type-Options:
|
34
|
+
- nosniff
|
35
|
+
Location:
|
36
|
+
- "/api/v1/sessions.%23%3CApiSessionToken:0x007fa085883bc8%3E"
|
37
|
+
Content-Type:
|
38
|
+
- application/json; charset=utf-8
|
39
|
+
Etag:
|
40
|
+
- '"22acb16b28156657852db4218dee8459"'
|
41
|
+
Cache-Control:
|
42
|
+
- max-age=0, private, must-revalidate
|
43
|
+
Set-Cookie:
|
44
|
+
- _Playground_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTE3ZjE5ZTk2MTdlN2NlMzk5NDJhNjEzNDI0MmIzNzMzBjsAVEkiEXByZXZpb3VzX3VybAY7AEZJIhUvYXBpL3YxL3Nlc3Npb25zBjsAVA%3D%3D--5e590ff03828c83a2066a07c3e6324ac2b2f7c5f;
|
45
|
+
path=/; secure; HttpOnly
|
46
|
+
X-Request-Id:
|
47
|
+
- 633ccdd8-8a41-492c-9f89-6802fe66a41d
|
48
|
+
X-Runtime:
|
49
|
+
- '0.026167'
|
50
|
+
Transfer-Encoding:
|
51
|
+
- chunked
|
52
|
+
Via:
|
53
|
+
- 1.1 vegur
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
base64_string: |
|
57
|
+
eyJhcGlfc2Vzc2lvbl90b2tlbiI6eyJ0b2tlbiI6InY2djNxSHd4dVV6Vm00
|
58
|
+
aUhyUWZ0NGlySk9rNW5DMm9IdVhQVnFwV3YwTlpQd09jT0RaQTZzZ0wyUEZa
|
59
|
+
SnUwRFRRenJObTBCV2NReURIdkRwWldxT2o4WUphdnNnQ0xSUFY1bFJ3SjBl
|
60
|
+
U2J4Nk5YazRLQ3I0Y2JmdGtEOTFsSEtQIiwidHRsIjoxMTk5LCJ1c2VyX2lk
|
61
|
+
IjpudWxsfX0=
|
62
|
+
http_version:
|
63
|
+
recorded_at: Tue, 06 Jan 2015 03:31:13 GMT
|
64
|
+
- request:
|
65
|
+
method: post
|
66
|
+
uri: https://oshpark.com/api/v1/sessions
|
67
|
+
body:
|
68
|
+
encoding: US-ASCII
|
69
|
+
base64_string: |
|
70
|
+
ZW1haWw9VVNFUk5BTUUmcGFzc3dvcmQ9QmpWVlpVamtEMjh1VWVFY29lWUE=
|
71
|
+
headers:
|
72
|
+
Accept-Encoding:
|
73
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
74
|
+
Accept:
|
75
|
+
- application/json
|
76
|
+
User-Agent:
|
77
|
+
- Ruby
|
78
|
+
Authorization:
|
79
|
+
- v6v3qHwxuUzVm4iHrQft4irJOk5nC2oHuXPVqpWv0NZPwOcODZA6sgL2PFZJu0DTQzrNm0BWcQyDHvDpZWqOj8YJavsgCLRPV5lRwJ0eSbx6NXk4KCr4cbftkD91lHKP
|
80
|
+
response:
|
81
|
+
status:
|
82
|
+
code: 401
|
83
|
+
message: Unauthorized
|
84
|
+
headers:
|
85
|
+
Server:
|
86
|
+
- Cowboy
|
87
|
+
Date:
|
88
|
+
- Tue, 06 Jan 2015 03:31:13 GMT
|
89
|
+
Connection:
|
90
|
+
- keep-alive
|
91
|
+
Strict-Transport-Security:
|
92
|
+
- max-age=31536000
|
93
|
+
X-Frame-Options:
|
94
|
+
- SAMEORIGIN
|
95
|
+
X-Xss-Protection:
|
96
|
+
- 1; mode=block
|
97
|
+
X-Content-Type-Options:
|
98
|
+
- nosniff
|
99
|
+
Content-Type:
|
100
|
+
- application/json; charset=utf-8
|
101
|
+
Cache-Control:
|
102
|
+
- no-cache
|
103
|
+
Set-Cookie:
|
104
|
+
- _Playground_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTI1ZWI4MmM5MzlhNmU5ZWZkOWFjMzg5NWRlZjBkZjRmBjsAVEkiEXByZXZpb3VzX3VybAY7AEZJIhUvYXBpL3YxL3Nlc3Npb25zBjsAVA%3D%3D--b149956800e18528b4929a7ea2ce8694e4e27686;
|
105
|
+
path=/; secure; HttpOnly
|
106
|
+
X-Request-Id:
|
107
|
+
- 5b78386f-19e5-48c6-91bc-98d36b8e1c98
|
108
|
+
X-Runtime:
|
109
|
+
- '0.134404'
|
110
|
+
Transfer-Encoding:
|
111
|
+
- chunked
|
112
|
+
Via:
|
113
|
+
- 1.1 vegur
|
114
|
+
body:
|
115
|
+
encoding: UTF-8
|
116
|
+
base64_string: |
|
117
|
+
eyJlcnJvciI6IlVzZXJBdXRoZW50aWNhdGlvblNlcnZpY2U6Ok5vdEF1dGhv
|
118
|
+
cml6ZWQifQ==
|
119
|
+
http_version:
|
120
|
+
recorded_at: Tue, 06 Jan 2015 03:31:14 GMT
|
121
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,129 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://oshpark.com/api/v1/sessions
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
base64_string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 201
|
19
|
+
message: Created
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- Cowboy
|
23
|
+
Date:
|
24
|
+
- Tue, 06 Jan 2015 03:31:15 GMT
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Strict-Transport-Security:
|
28
|
+
- max-age=31536000
|
29
|
+
X-Frame-Options:
|
30
|
+
- SAMEORIGIN
|
31
|
+
X-Xss-Protection:
|
32
|
+
- 1; mode=block
|
33
|
+
X-Content-Type-Options:
|
34
|
+
- nosniff
|
35
|
+
Location:
|
36
|
+
- "/api/v1/sessions.%23%3CApiSessionToken:0x007fa0880b2770%3E"
|
37
|
+
Content-Type:
|
38
|
+
- application/json; charset=utf-8
|
39
|
+
Etag:
|
40
|
+
- '"664524f3295cf1c6600844912415cbf0"'
|
41
|
+
Cache-Control:
|
42
|
+
- max-age=0, private, must-revalidate
|
43
|
+
Set-Cookie:
|
44
|
+
- _Playground_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJWQ3ZDQ4NWU3OWJmZTMwZWIzNDZmOGMyYjdkM2Q4MTZmBjsAVEkiEXByZXZpb3VzX3VybAY7AEZJIhUvYXBpL3YxL3Nlc3Npb25zBjsAVA%3D%3D--a6435e97311d57d2718401c803ce626c22c5cf66;
|
45
|
+
path=/; secure; HttpOnly
|
46
|
+
X-Request-Id:
|
47
|
+
- e3c0f96c-7a8b-48c5-b854-60df14cd56f4
|
48
|
+
X-Runtime:
|
49
|
+
- '0.018122'
|
50
|
+
Transfer-Encoding:
|
51
|
+
- chunked
|
52
|
+
Via:
|
53
|
+
- 1.1 vegur
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
base64_string: |
|
57
|
+
eyJhcGlfc2Vzc2lvbl90b2tlbiI6eyJ0b2tlbiI6IlpEZERqZmxTNnAyQjha
|
58
|
+
emNnZmpnSWFDbExRUWFwZFFHcXd5QkowSkFvNk9lc3JFa1hhd29YcWwxTFpl
|
59
|
+
WnNYYnVCekIxWXZyN3BIckFTbVB3M0paUHc5Q3FScGhveEdGRVJjMzNkSVJz
|
60
|
+
ekMwbzEyUGcwR2dnbFd4UFZaTVRUSG5rIiwidHRsIjoxMTk5LCJ1c2VyX2lk
|
61
|
+
IjpudWxsfX0=
|
62
|
+
http_version:
|
63
|
+
recorded_at: Tue, 06 Jan 2015 03:31:15 GMT
|
64
|
+
- request:
|
65
|
+
method: post
|
66
|
+
uri: https://oshpark.com/api/v1/sessions
|
67
|
+
body:
|
68
|
+
encoding: US-ASCII
|
69
|
+
base64_string: |
|
70
|
+
ZW1haWw9VVNFUk5BTUUmYXBpX2tleT1mOWNjMTBiZmJjMTYzMzIxM2QxYjUz
|
71
|
+
ZmFmYWVjYzM1MGQzMmM5N2RkZDgwYjQ2YzJiNjU1MDlkNDc0NzM0ZGQw
|
72
|
+
headers:
|
73
|
+
Accept-Encoding:
|
74
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
75
|
+
Accept:
|
76
|
+
- application/json
|
77
|
+
User-Agent:
|
78
|
+
- Ruby
|
79
|
+
Authorization:
|
80
|
+
- ZDdDjflS6p2B8ZzcgfjgIaClLQQapdQGqwyBJ0JAo6OesrEkXawoXql1LZeZsXbuBzB1Yvr7pHrASmPw3JZPw9CqRphoxGFERc33dIRszC0o12Pg0GgglWxPVZMTTHnk
|
81
|
+
response:
|
82
|
+
status:
|
83
|
+
code: 201
|
84
|
+
message: Created
|
85
|
+
headers:
|
86
|
+
Server:
|
87
|
+
- Cowboy
|
88
|
+
Date:
|
89
|
+
- Tue, 06 Jan 2015 03:31:16 GMT
|
90
|
+
Connection:
|
91
|
+
- keep-alive
|
92
|
+
Strict-Transport-Security:
|
93
|
+
- max-age=31536000
|
94
|
+
X-Frame-Options:
|
95
|
+
- SAMEORIGIN
|
96
|
+
X-Xss-Protection:
|
97
|
+
- 1; mode=block
|
98
|
+
X-Content-Type-Options:
|
99
|
+
- nosniff
|
100
|
+
Location:
|
101
|
+
- "/api/v1/sessions.%23%3CApiSessionToken:0x007fa06ac30b38%3E"
|
102
|
+
Content-Type:
|
103
|
+
- application/json; charset=utf-8
|
104
|
+
Etag:
|
105
|
+
- '"08311f26f62247cc9f066b84aa2cdfd1"'
|
106
|
+
Cache-Control:
|
107
|
+
- max-age=0, private, must-revalidate
|
108
|
+
Set-Cookie:
|
109
|
+
- _Playground_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTc5YmJmMWUzZjdhN2IzODE1ZjQ5NmI2N2RhMWE0ZWMzBjsAVEkiEXByZXZpb3VzX3VybAY7AEZJIhUvYXBpL3YxL3Nlc3Npb25zBjsAVA%3D%3D--9909abf2899c8612aa2071211c5f575046ad1adc;
|
110
|
+
path=/; secure; HttpOnly
|
111
|
+
X-Request-Id:
|
112
|
+
- c690fd1e-3e50-4563-9682-fd8e6d2100bb
|
113
|
+
X-Runtime:
|
114
|
+
- '0.041658'
|
115
|
+
Transfer-Encoding:
|
116
|
+
- chunked
|
117
|
+
Via:
|
118
|
+
- 1.1 vegur
|
119
|
+
body:
|
120
|
+
encoding: UTF-8
|
121
|
+
base64_string: |
|
122
|
+
eyJhcGlfc2Vzc2lvbl90b2tlbiI6eyJ0b2tlbiI6IlpEZERqZmxTNnAyQjha
|
123
|
+
emNnZmpnSWFDbExRUWFwZFFHcXd5QkowSkFvNk9lc3JFa1hhd29YcWwxTFpl
|
124
|
+
WnNYYnVCekIxWXZyN3BIckFTbVB3M0paUHc5Q3FScGhveEdGRVJjMzNkSVJz
|
125
|
+
ekMwbzEyUGcwR2dnbFd4UFZaTVRUSG5rIiwidHRsIjoxMTk5LCJ1c2VyX2lk
|
126
|
+
IjoiNTQ5ODhiOWEzMTY2NjIwMDI2NWMwMTAwIn19
|
127
|
+
http_version:
|
128
|
+
recorded_at: Tue, 06 Jan 2015 03:31:16 GMT
|
129
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,122 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://oshpark.com/api/v1/sessions
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
base64_string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 201
|
19
|
+
message: Created
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- Cowboy
|
23
|
+
Date:
|
24
|
+
- Tue, 06 Jan 2015 03:31:17 GMT
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Strict-Transport-Security:
|
28
|
+
- max-age=31536000
|
29
|
+
X-Frame-Options:
|
30
|
+
- SAMEORIGIN
|
31
|
+
X-Xss-Protection:
|
32
|
+
- 1; mode=block
|
33
|
+
X-Content-Type-Options:
|
34
|
+
- nosniff
|
35
|
+
Location:
|
36
|
+
- "/api/v1/sessions.%23%3CApiSessionToken:0x007fa071894608%3E"
|
37
|
+
Content-Type:
|
38
|
+
- application/json; charset=utf-8
|
39
|
+
Etag:
|
40
|
+
- '"be73301b70c3a32fc3d82dd6f665cea8"'
|
41
|
+
Cache-Control:
|
42
|
+
- max-age=0, private, must-revalidate
|
43
|
+
Set-Cookie:
|
44
|
+
- _Playground_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTZiZWY3ZDE3OTYxMDZlZTZmOTg5OGM0ZDA5MWZjM2JhBjsAVEkiEXByZXZpb3VzX3VybAY7AEZJIhUvYXBpL3YxL3Nlc3Npb25zBjsAVA%3D%3D--d4886c6635896668bdaedeb4d43bbf2f3bf1364d;
|
45
|
+
path=/; secure; HttpOnly
|
46
|
+
X-Request-Id:
|
47
|
+
- 32817867-9126-41a5-8efe-f6abad35eb04
|
48
|
+
X-Runtime:
|
49
|
+
- '0.018506'
|
50
|
+
Transfer-Encoding:
|
51
|
+
- chunked
|
52
|
+
Via:
|
53
|
+
- 1.1 vegur
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
base64_string: |
|
57
|
+
eyJhcGlfc2Vzc2lvbl90b2tlbiI6eyJ0b2tlbiI6IlRPTlJtRHNaS1FTT3Rh
|
58
|
+
VjQ1czdZZmlzQzc4SzA4MzVkNmphS2o5NG9DQUZMejhCOWNxS3JVYkxDOGFk
|
59
|
+
VlVBUlZrSTZNcnhXOWtwYlREbGFiRms5WFdGTGRMSldkVHVzNUg4VEhPSktJ
|
60
|
+
OXBYT2JqVXZXWXNmam1zUFU0YTN6M1lNIiwidHRsIjoxMTk5LCJ1c2VyX2lk
|
61
|
+
IjpudWxsfX0=
|
62
|
+
http_version:
|
63
|
+
recorded_at: Tue, 06 Jan 2015 03:31:17 GMT
|
64
|
+
- request:
|
65
|
+
method: post
|
66
|
+
uri: https://oshpark.com/api/v1/sessions
|
67
|
+
body:
|
68
|
+
encoding: US-ASCII
|
69
|
+
base64_string: |
|
70
|
+
ZW1haWw9VVNFUk5BTUUmYXBpX2tleT0zMmU1NzdhODQxZmI1MzgxOGI5MTUz
|
71
|
+
NjY4YWZlMmNlNWRjMzg3OWZkNjY3YWY2ZDMyNTA5N2EwNzk3OWQ4MjNm
|
72
|
+
headers:
|
73
|
+
Accept-Encoding:
|
74
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
75
|
+
Accept:
|
76
|
+
- application/json
|
77
|
+
User-Agent:
|
78
|
+
- Ruby
|
79
|
+
Authorization:
|
80
|
+
- TONRmDsZKQSOtaV45s7YfisC78K0835d6jaKj94oCAFLz8B9cqKrUbLC8adVUARVkI6MrxW9kpbTDlabFk9XWFLdLJWdTus5H8THOJKI9pXObjUvWYsfjmsPU4a3z3YM
|
81
|
+
response:
|
82
|
+
status:
|
83
|
+
code: 401
|
84
|
+
message: Unauthorized
|
85
|
+
headers:
|
86
|
+
Server:
|
87
|
+
- Cowboy
|
88
|
+
Date:
|
89
|
+
- Tue, 06 Jan 2015 03:31:18 GMT
|
90
|
+
Connection:
|
91
|
+
- keep-alive
|
92
|
+
Strict-Transport-Security:
|
93
|
+
- max-age=31536000
|
94
|
+
X-Frame-Options:
|
95
|
+
- SAMEORIGIN
|
96
|
+
X-Xss-Protection:
|
97
|
+
- 1; mode=block
|
98
|
+
X-Content-Type-Options:
|
99
|
+
- nosniff
|
100
|
+
Content-Type:
|
101
|
+
- application/json; charset=utf-8
|
102
|
+
Cache-Control:
|
103
|
+
- no-cache
|
104
|
+
Set-Cookie:
|
105
|
+
- _Playground_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTUwNjAxMzMwN2U3ODk4ZTMyMmIwM2ViM2U4OGRmMWU1BjsAVEkiEXByZXZpb3VzX3VybAY7AEZJIhUvYXBpL3YxL3Nlc3Npb25zBjsAVA%3D%3D--f7518c4ff98cc7dbcbf3d1b18d127bc65d871f25;
|
106
|
+
path=/; secure; HttpOnly
|
107
|
+
X-Request-Id:
|
108
|
+
- f8f08e94-3844-4b33-89b7-1003a9796bb2
|
109
|
+
X-Runtime:
|
110
|
+
- '0.030545'
|
111
|
+
Transfer-Encoding:
|
112
|
+
- chunked
|
113
|
+
Via:
|
114
|
+
- 1.1 vegur
|
115
|
+
body:
|
116
|
+
encoding: UTF-8
|
117
|
+
base64_string: |
|
118
|
+
eyJlcnJvciI6IlVzZXJBdXRoZW50aWNhdGlvblNlcnZpY2U6Ok5vdEF1dGhv
|
119
|
+
cml6ZWQifQ==
|
120
|
+
http_version:
|
121
|
+
recorded_at: Tue, 06 Jan 2015 03:31:18 GMT
|
122
|
+
recorded_with: VCR 2.9.3
|