leancloud-ruby-client 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.travis.yml +9 -0
- data/Gemfile +16 -0
- data/Gemfile.lock +86 -0
- data/LICENSE.txt +20 -0
- data/README.md +1177 -0
- data/Rakefile +45 -0
- data/VERSION +1 -0
- data/example.rb +35 -0
- data/features.md +1111 -0
- data/fixtures/vcr_cassettes/test_acls_arent_objects.yml +274 -0
- data/fixtures/vcr_cassettes/test_array_add.yml +213 -0
- data/fixtures/vcr_cassettes/test_array_add_pointerizing.yml +380 -0
- data/fixtures/vcr_cassettes/test_array_add_unique.yml +319 -0
- data/fixtures/vcr_cassettes/test_batch_create_object.yml +107 -0
- data/fixtures/vcr_cassettes/test_batch_delete_object.yml +637 -0
- data/fixtures/vcr_cassettes/test_batch_run.yml +109 -0
- data/fixtures/vcr_cassettes/test_batch_update_nils_delete_keys.yml +435 -0
- data/fixtures/vcr_cassettes/test_batch_update_object.yml +637 -0
- data/fixtures/vcr_cassettes/test_contains_all.yml +1143 -0
- data/fixtures/vcr_cassettes/test_cql.yml +99 -0
- data/fixtures/vcr_cassettes/test_created_at.yml +109 -0
- data/fixtures/vcr_cassettes/test_decrement.yml +213 -0
- data/fixtures/vcr_cassettes/test_deep_parse.yml +321 -0
- data/fixtures/vcr_cassettes/test_destroy.yml +213 -0
- data/fixtures/vcr_cassettes/test_empty_response.yml +1026 -0
- data/fixtures/vcr_cassettes/test_eq_pointerize.yml +427 -0
- data/fixtures/vcr_cassettes/test_equality.yml +321 -0
- data/fixtures/vcr_cassettes/test_get.yml +215 -0
- data/fixtures/vcr_cassettes/test_get_installation.yml +58 -0
- data/fixtures/vcr_cassettes/test_get_missing.yml +160 -0
- data/fixtures/vcr_cassettes/test_image_file_associate_with_object.yml +2089 -0
- data/fixtures/vcr_cassettes/test_image_file_save.yml +1928 -0
- data/fixtures/vcr_cassettes/test_include.yml +321 -0
- data/fixtures/vcr_cassettes/test_new_model.yml +109 -0
- data/fixtures/vcr_cassettes/test_new_object.yml +109 -0
- data/fixtures/vcr_cassettes/test_nils_delete_keys.yml +319 -0
- data/fixtures/vcr_cassettes/test_object_id.yml +56 -0
- data/fixtures/vcr_cassettes/test_parse_delete.yml +421 -0
- data/fixtures/vcr_cassettes/test_pointer.yml +109 -0
- data/fixtures/vcr_cassettes/test_request_sms.yml +48 -0
- data/fixtures/vcr_cassettes/test_reset_password.yml +109 -0
- data/fixtures/vcr_cassettes/test_retries.yml +4173 -0
- data/fixtures/vcr_cassettes/test_retries_404.yml +1026 -0
- data/fixtures/vcr_cassettes/test_retries_404_correct.yml +1026 -0
- data/fixtures/vcr_cassettes/test_retries_json_error.yml +2265 -0
- data/fixtures/vcr_cassettes/test_retries_server_error.yml +2265 -0
- data/fixtures/vcr_cassettes/test_save_installation.yml +58 -0
- data/fixtures/vcr_cassettes/test_save_with_sub_objects.yml +484 -0
- data/fixtures/vcr_cassettes/test_saving_boolean_values.yml +215 -0
- data/fixtures/vcr_cassettes/test_saving_nested_objects.yml +62 -0
- data/fixtures/vcr_cassettes/test_server_update.yml +586 -0
- data/fixtures/vcr_cassettes/test_simple_save.yml +109 -0
- data/fixtures/vcr_cassettes/test_text_file_save.yml +109 -0
- data/fixtures/vcr_cassettes/test_update.yml +213 -0
- data/fixtures/vcr_cassettes/test_updated_at.yml +213 -0
- data/fixtures/vcr_cassettes/test_user_login.yml +276 -0
- data/fixtures/vcr_cassettes/test_user_save.yml +109 -0
- data/fixtures/vcr_cassettes/test_xget.yml +603 -0
- data/leancloud-ruby-client.gemspec +166 -0
- data/lib/faraday/better_retry.rb +94 -0
- data/lib/faraday/extended_parse_json.rb +39 -0
- data/lib/faraday/get_method_override.rb +32 -0
- data/lib/leancloud-ruby-client.rb +34 -0
- data/lib/leancloud/application.rb +7 -0
- data/lib/leancloud/batch.rb +53 -0
- data/lib/leancloud/client.rb +149 -0
- data/lib/leancloud/cloud.rb +28 -0
- data/lib/leancloud/datatypes.rb +355 -0
- data/lib/leancloud/error.rb +42 -0
- data/lib/leancloud/installation.rb +57 -0
- data/lib/leancloud/model.rb +14 -0
- data/lib/leancloud/object.rb +252 -0
- data/lib/leancloud/protocol.rb +193 -0
- data/lib/leancloud/push.rb +48 -0
- data/lib/leancloud/query.rb +194 -0
- data/lib/leancloud/user.rb +38 -0
- data/lib/leancloud/util.rb +93 -0
- data/test/cloud_functions/MyCloudCode/cloud/main.js +4 -0
- data/test/config/global.json +14 -0
- data/test/helper.rb +108 -0
- data/test/middleware/better_retry_test.rb +57 -0
- data/test/middleware/extend_parse_json_test.rb +55 -0
- data/test/parsers.jpg +0 -0
- data/test/test_batch.rb +132 -0
- data/test/test_client.rb +183 -0
- data/test/test_cloud.rb +31 -0
- data/test/test_datatypes.rb +105 -0
- data/test/test_file.rb +67 -0
- data/test/test_init.rb +23 -0
- data/test/test_init_from_cloud_code.rb +8 -0
- data/test/test_installation.rb +49 -0
- data/test/test_model.rb +22 -0
- data/test/test_object.rb +295 -0
- data/test/test_push.rb +45 -0
- data/test/test_query.rb +198 -0
- data/test/test_throttle.rb +5 -0
- data/test/test_user.rb +60 -0
- metadata +298 -0
@@ -0,0 +1,109 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.parse.com/1/batch
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"requests":[{"method":"POST","path":"/1/classes/GameScore","body":{"score":1337,"playerName":"Sean
|
9
|
+
Plott"}}]}'
|
10
|
+
headers:
|
11
|
+
Content-Type:
|
12
|
+
- application/json
|
13
|
+
Accept:
|
14
|
+
- application/json
|
15
|
+
User-Agent:
|
16
|
+
- Parse for Ruby, 0.0
|
17
|
+
X-Parse-Master-Key:
|
18
|
+
- ''
|
19
|
+
X-Parse-Rest-Api-Key:
|
20
|
+
- <X-Parse-REST-API-Key>
|
21
|
+
X-Parse-Application-Id:
|
22
|
+
- <X-Parse-Application-Id>
|
23
|
+
X-Parse-Session-Token:
|
24
|
+
- ''
|
25
|
+
Expect:
|
26
|
+
- ''
|
27
|
+
response:
|
28
|
+
status:
|
29
|
+
code: 200
|
30
|
+
message: OK
|
31
|
+
headers:
|
32
|
+
Access-Control-Allow-Origin:
|
33
|
+
- '*'
|
34
|
+
Access-Control-Request-Method:
|
35
|
+
- '*'
|
36
|
+
Cache-Control:
|
37
|
+
- max-age=0, private, must-revalidate
|
38
|
+
Content-Type:
|
39
|
+
- application/json; charset=utf-8
|
40
|
+
Date:
|
41
|
+
- Mon, 22 Apr 2013 16:03:13 GMT
|
42
|
+
Etag:
|
43
|
+
- '"ffab602107ac1e1b99cadfce609e7557"'
|
44
|
+
Server:
|
45
|
+
- nginx/1.2.2
|
46
|
+
Set-Cookie:
|
47
|
+
- <COOKIE-KEY>
|
48
|
+
Status:
|
49
|
+
- 200 OK
|
50
|
+
X-Runtime:
|
51
|
+
- '0.030989'
|
52
|
+
X-Ua-Compatible:
|
53
|
+
- IE=Edge,chrome=1
|
54
|
+
Content-Length:
|
55
|
+
- '78'
|
56
|
+
Connection:
|
57
|
+
- keep-alive
|
58
|
+
body:
|
59
|
+
encoding: ASCII-8BIT
|
60
|
+
string: '[{"success":{"createdAt":"2013-04-22T16:03:13.472Z","objectId":"VJBh9sJjpo"}}]'
|
61
|
+
http_version:
|
62
|
+
recorded_at: Mon, 22 Apr 2013 16:03:13 GMT
|
63
|
+
- request:
|
64
|
+
method: post
|
65
|
+
uri: https://api.leancloud.cn/1.1/batch
|
66
|
+
body:
|
67
|
+
encoding: UTF-8
|
68
|
+
string: '{"requests":[{"method":"POST","path":"/1/classes/GameScore","body":{"score":1337,"playerName":"Sean
|
69
|
+
Plott"}}]}'
|
70
|
+
headers:
|
71
|
+
User-Agent:
|
72
|
+
- Parse for Ruby, 0.0
|
73
|
+
Content-Type:
|
74
|
+
- application/json
|
75
|
+
X-Avoscloud-Application-Id:
|
76
|
+
- <X-AVOSCloud-Application-Id>
|
77
|
+
X-Avoscloud-Application-Key:
|
78
|
+
- <X-AVOSCloud-Application-Key>
|
79
|
+
Accept-Encoding:
|
80
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
81
|
+
Accept:
|
82
|
+
- '*/*'
|
83
|
+
response:
|
84
|
+
status:
|
85
|
+
code: 200
|
86
|
+
message: OK
|
87
|
+
headers:
|
88
|
+
Server:
|
89
|
+
- Tengine
|
90
|
+
Date:
|
91
|
+
- Fri, 10 Apr 2015 09:10:29 GMT
|
92
|
+
Content-Type:
|
93
|
+
- application/json;charset=utf-8
|
94
|
+
Content-Length:
|
95
|
+
- '92'
|
96
|
+
Connection:
|
97
|
+
- keep-alive
|
98
|
+
Cache-Control:
|
99
|
+
- no-cache,no-store
|
100
|
+
Pragma:
|
101
|
+
- no-cache
|
102
|
+
Strict-Transport-Security:
|
103
|
+
- max-age=31536000
|
104
|
+
body:
|
105
|
+
encoding: UTF-8
|
106
|
+
string: '[{"success":{"createdAt":"2015-04-10T09:10:29.552Z","objectId":"55279385e4b0da2c5defa0dc"}}]'
|
107
|
+
http_version:
|
108
|
+
recorded_at: Fri, 10 Apr 2015 09:10:29 GMT
|
109
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,435 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.parse.com/1/classes/BatchTestObject
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"foo":"1"}'
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Parse for Ruby, 0.0
|
16
|
+
X-Parse-Master-Key:
|
17
|
+
- ''
|
18
|
+
X-Parse-Rest-Api-Key:
|
19
|
+
- <X-Parse-REST-API-Key>
|
20
|
+
X-Parse-Application-Id:
|
21
|
+
- <X-Parse-Application-Id>
|
22
|
+
X-Parse-Session-Token:
|
23
|
+
- ''
|
24
|
+
Expect:
|
25
|
+
- ''
|
26
|
+
response:
|
27
|
+
status:
|
28
|
+
code: 201
|
29
|
+
message: Created
|
30
|
+
headers:
|
31
|
+
Access-Control-Allow-Origin:
|
32
|
+
- '*'
|
33
|
+
Access-Control-Request-Method:
|
34
|
+
- '*'
|
35
|
+
Cache-Control:
|
36
|
+
- no-cache
|
37
|
+
Content-Type:
|
38
|
+
- application/json; charset=utf-8
|
39
|
+
Date:
|
40
|
+
- Wed, 22 May 2013 16:29:53 GMT
|
41
|
+
Location:
|
42
|
+
- https://api.parse.com/1/classes/BatchTestObject/2ymFSQYHfE
|
43
|
+
Server:
|
44
|
+
- nginx/1.2.2
|
45
|
+
Set-Cookie:
|
46
|
+
- <COOKIE-KEY>
|
47
|
+
Status:
|
48
|
+
- 201 Created
|
49
|
+
X-Runtime:
|
50
|
+
- '0.036319'
|
51
|
+
X-Ua-Compatible:
|
52
|
+
- IE=Edge,chrome=1
|
53
|
+
Content-Length:
|
54
|
+
- '64'
|
55
|
+
Connection:
|
56
|
+
- keep-alive
|
57
|
+
body:
|
58
|
+
encoding: ASCII-8BIT
|
59
|
+
string: '{"createdAt":"2013-05-22T16:29:53.618Z","objectId":"2ymFSQYHfE"}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Wed, 22 May 2013 16:29:53 GMT
|
62
|
+
- request:
|
63
|
+
method: post
|
64
|
+
uri: https://api.parse.com/1/batch
|
65
|
+
body:
|
66
|
+
encoding: UTF-8
|
67
|
+
string: '{"requests":[{"method":"PUT","path":"/1/classes/BatchTestObject/2ymFSQYHfE","body":{"foo":{"__op":"Delete"}}}]}'
|
68
|
+
headers:
|
69
|
+
Content-Type:
|
70
|
+
- application/json
|
71
|
+
Accept:
|
72
|
+
- application/json
|
73
|
+
User-Agent:
|
74
|
+
- Parse for Ruby, 0.0
|
75
|
+
X-Parse-Master-Key:
|
76
|
+
- ''
|
77
|
+
X-Parse-Rest-Api-Key:
|
78
|
+
- <X-Parse-REST-API-Key>
|
79
|
+
X-Parse-Application-Id:
|
80
|
+
- <X-Parse-Application-Id>
|
81
|
+
X-Parse-Session-Token:
|
82
|
+
- ''
|
83
|
+
Expect:
|
84
|
+
- ''
|
85
|
+
response:
|
86
|
+
status:
|
87
|
+
code: 200
|
88
|
+
message: OK
|
89
|
+
headers:
|
90
|
+
Access-Control-Allow-Origin:
|
91
|
+
- '*'
|
92
|
+
Access-Control-Request-Method:
|
93
|
+
- '*'
|
94
|
+
Cache-Control:
|
95
|
+
- max-age=0, private, must-revalidate
|
96
|
+
Content-Type:
|
97
|
+
- application/json; charset=utf-8
|
98
|
+
Date:
|
99
|
+
- Wed, 22 May 2013 16:29:53 GMT
|
100
|
+
Etag:
|
101
|
+
- '"46d925ca6ec13b0f74a396e85f13e0d2"'
|
102
|
+
Server:
|
103
|
+
- nginx/1.2.2
|
104
|
+
Set-Cookie:
|
105
|
+
- <COOKIE-KEY>
|
106
|
+
Status:
|
107
|
+
- 200 OK
|
108
|
+
X-Runtime:
|
109
|
+
- '0.036707'
|
110
|
+
X-Ua-Compatible:
|
111
|
+
- IE=Edge,chrome=1
|
112
|
+
Content-Length:
|
113
|
+
- '54'
|
114
|
+
Connection:
|
115
|
+
- keep-alive
|
116
|
+
body:
|
117
|
+
encoding: ASCII-8BIT
|
118
|
+
string: '[{"success":{"updatedAt":"2013-05-22T16:29:53.704Z"}}]'
|
119
|
+
http_version:
|
120
|
+
recorded_at: Wed, 22 May 2013 16:29:53 GMT
|
121
|
+
- request:
|
122
|
+
method: get
|
123
|
+
uri: https://api.parse.com/1/classes/BatchTestObject/2ymFSQYHfE
|
124
|
+
body:
|
125
|
+
encoding: US-ASCII
|
126
|
+
string: ''
|
127
|
+
headers:
|
128
|
+
Content-Type:
|
129
|
+
- application/json
|
130
|
+
Accept:
|
131
|
+
- application/json
|
132
|
+
User-Agent:
|
133
|
+
- Parse for Ruby, 0.0
|
134
|
+
X-Parse-Master-Key:
|
135
|
+
- ''
|
136
|
+
X-Parse-Rest-Api-Key:
|
137
|
+
- <X-Parse-REST-API-Key>
|
138
|
+
X-Parse-Application-Id:
|
139
|
+
- <X-Parse-Application-Id>
|
140
|
+
X-Parse-Session-Token:
|
141
|
+
- ''
|
142
|
+
Expect:
|
143
|
+
- ''
|
144
|
+
response:
|
145
|
+
status:
|
146
|
+
code: 200
|
147
|
+
message: OK
|
148
|
+
headers:
|
149
|
+
Access-Control-Allow-Origin:
|
150
|
+
- '*'
|
151
|
+
Access-Control-Request-Method:
|
152
|
+
- '*'
|
153
|
+
Cache-Control:
|
154
|
+
- max-age=0, private, must-revalidate
|
155
|
+
Content-Type:
|
156
|
+
- application/json; charset=utf-8
|
157
|
+
Date:
|
158
|
+
- Wed, 22 May 2013 16:29:53 GMT
|
159
|
+
Etag:
|
160
|
+
- '"97322f30380a98755c73de04b24d660c"'
|
161
|
+
Server:
|
162
|
+
- nginx/1.2.2
|
163
|
+
Set-Cookie:
|
164
|
+
- <COOKIE-KEY>
|
165
|
+
Status:
|
166
|
+
- 200 OK
|
167
|
+
X-Runtime:
|
168
|
+
- '0.046347'
|
169
|
+
X-Ua-Compatible:
|
170
|
+
- IE=Edge,chrome=1
|
171
|
+
Content-Length:
|
172
|
+
- '103'
|
173
|
+
Connection:
|
174
|
+
- keep-alive
|
175
|
+
body:
|
176
|
+
encoding: ASCII-8BIT
|
177
|
+
string: '{"createdAt":"2013-05-22T16:29:53.618Z","updatedAt":"2013-05-22T16:29:53.704Z","objectId":"2ymFSQYHfE"}'
|
178
|
+
http_version:
|
179
|
+
recorded_at: Wed, 22 May 2013 16:29:53 GMT
|
180
|
+
- request:
|
181
|
+
method: get
|
182
|
+
uri: https://api.parse.com/1/classes/BatchTestObject/2ymFSQYHfE
|
183
|
+
body:
|
184
|
+
encoding: US-ASCII
|
185
|
+
string: ''
|
186
|
+
headers:
|
187
|
+
Content-Type:
|
188
|
+
- application/json
|
189
|
+
Accept:
|
190
|
+
- application/json
|
191
|
+
User-Agent:
|
192
|
+
- Parse for Ruby, 0.0
|
193
|
+
X-Parse-Master-Key:
|
194
|
+
- ''
|
195
|
+
X-Parse-Rest-Api-Key:
|
196
|
+
- <X-Parse-REST-API-Key>
|
197
|
+
X-Parse-Application-Id:
|
198
|
+
- <X-Parse-Application-Id>
|
199
|
+
X-Parse-Session-Token:
|
200
|
+
- ''
|
201
|
+
Expect:
|
202
|
+
- ''
|
203
|
+
response:
|
204
|
+
status:
|
205
|
+
code: 200
|
206
|
+
message: OK
|
207
|
+
headers:
|
208
|
+
Access-Control-Allow-Origin:
|
209
|
+
- '*'
|
210
|
+
Access-Control-Request-Method:
|
211
|
+
- '*'
|
212
|
+
Cache-Control:
|
213
|
+
- max-age=0, private, must-revalidate
|
214
|
+
Content-Type:
|
215
|
+
- application/json; charset=utf-8
|
216
|
+
Date:
|
217
|
+
- Wed, 22 May 2013 16:31:59 GMT
|
218
|
+
Etag:
|
219
|
+
- '"97322f30380a98755c73de04b24d660c"'
|
220
|
+
Server:
|
221
|
+
- nginx/1.2.2
|
222
|
+
Set-Cookie:
|
223
|
+
- <COOKIE-KEY>
|
224
|
+
Status:
|
225
|
+
- 200 OK
|
226
|
+
X-Runtime:
|
227
|
+
- '0.027746'
|
228
|
+
X-Ua-Compatible:
|
229
|
+
- IE=Edge,chrome=1
|
230
|
+
Content-Length:
|
231
|
+
- '103'
|
232
|
+
Connection:
|
233
|
+
- keep-alive
|
234
|
+
body:
|
235
|
+
encoding: ASCII-8BIT
|
236
|
+
string: '{"createdAt":"2013-05-22T16:29:53.618Z","updatedAt":"2013-05-22T16:29:53.704Z","objectId":"2ymFSQYHfE"}'
|
237
|
+
http_version:
|
238
|
+
recorded_at: Wed, 22 May 2013 16:31:59 GMT
|
239
|
+
- request:
|
240
|
+
method: post
|
241
|
+
uri: https://api.parse.com/1/classes/BatchTestObject/2ymFSQYHfE
|
242
|
+
body:
|
243
|
+
encoding: UTF-8
|
244
|
+
string: ''
|
245
|
+
headers:
|
246
|
+
User-Agent:
|
247
|
+
- Parse for Ruby, 0.0
|
248
|
+
Content-Type:
|
249
|
+
- application/json
|
250
|
+
X-Parse-Application-Id:
|
251
|
+
- <X-Parse-Application-Id>
|
252
|
+
X-Parse-Rest-Api-Key:
|
253
|
+
- <X-Parse-REST-API-Key>
|
254
|
+
X-Http-Method-Override:
|
255
|
+
- GET
|
256
|
+
Content-Length:
|
257
|
+
- '0'
|
258
|
+
Accept-Encoding:
|
259
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
260
|
+
Accept:
|
261
|
+
- '*/*'
|
262
|
+
response:
|
263
|
+
status:
|
264
|
+
code: 404
|
265
|
+
message: Not Found
|
266
|
+
headers:
|
267
|
+
Access-Control-Allow-Origin:
|
268
|
+
- '*'
|
269
|
+
Access-Control-Request-Method:
|
270
|
+
- '*'
|
271
|
+
Cache-Control:
|
272
|
+
- no-cache
|
273
|
+
Content-Type:
|
274
|
+
- application/json; charset=utf-8
|
275
|
+
Date:
|
276
|
+
- Wed, 26 Mar 2014 15:21:12 GMT
|
277
|
+
Server:
|
278
|
+
- nginx/1.4.2
|
279
|
+
Set-Cookie:
|
280
|
+
- <COOKIE-KEY>
|
281
|
+
Status:
|
282
|
+
- 404 Not Found
|
283
|
+
X-Runtime:
|
284
|
+
- '0.118475'
|
285
|
+
X-Ua-Compatible:
|
286
|
+
- IE=Edge,chrome=1
|
287
|
+
Content-Length:
|
288
|
+
- '65'
|
289
|
+
Connection:
|
290
|
+
- keep-alive
|
291
|
+
body:
|
292
|
+
encoding: UTF-8
|
293
|
+
string: '{"code":101,"error":"object not found for get"}'
|
294
|
+
http_version:
|
295
|
+
recorded_at: Wed, 26 Mar 2014 15:21:13 GMT
|
296
|
+
- request:
|
297
|
+
method: post
|
298
|
+
uri: https://api.leancloud.cn/1.1/classes/BatchTestObject
|
299
|
+
body:
|
300
|
+
encoding: UTF-8
|
301
|
+
string: '{"foo":"1"}'
|
302
|
+
headers:
|
303
|
+
User-Agent:
|
304
|
+
- Parse for Ruby, 0.0
|
305
|
+
Content-Type:
|
306
|
+
- application/json
|
307
|
+
X-Avoscloud-Application-Id:
|
308
|
+
- <X-AVOSCloud-Application-Id>
|
309
|
+
X-Avoscloud-Application-Key:
|
310
|
+
- <X-AVOSCloud-Application-Key>
|
311
|
+
Accept-Encoding:
|
312
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
313
|
+
Accept:
|
314
|
+
- '*/*'
|
315
|
+
response:
|
316
|
+
status:
|
317
|
+
code: 201
|
318
|
+
message: Created
|
319
|
+
headers:
|
320
|
+
Server:
|
321
|
+
- Tengine
|
322
|
+
Date:
|
323
|
+
- Fri, 10 Apr 2015 09:10:29 GMT
|
324
|
+
Content-Type:
|
325
|
+
- application/json;charset=utf-8
|
326
|
+
Content-Length:
|
327
|
+
- '78'
|
328
|
+
Connection:
|
329
|
+
- keep-alive
|
330
|
+
Location:
|
331
|
+
- /1.1/classes/BatchTestObject/55279385e4b0da2c5defa0e2
|
332
|
+
Cache-Control:
|
333
|
+
- no-cache,no-store
|
334
|
+
Pragma:
|
335
|
+
- no-cache
|
336
|
+
Strict-Transport-Security:
|
337
|
+
- max-age=31536000
|
338
|
+
body:
|
339
|
+
encoding: UTF-8
|
340
|
+
string: '{"createdAt":"2015-04-10T09:10:29.835Z","objectId":"55279385e4b0da2c5defa0e2"}'
|
341
|
+
http_version:
|
342
|
+
recorded_at: Fri, 10 Apr 2015 09:10:29 GMT
|
343
|
+
- request:
|
344
|
+
method: post
|
345
|
+
uri: https://api.leancloud.cn/1.1/batch
|
346
|
+
body:
|
347
|
+
encoding: UTF-8
|
348
|
+
string: '{"requests":[{"method":"PUT","path":"/1.1/classes/BatchTestObject/55279385e4b0da2c5defa0e2","body":{"foo":{"__op":"Delete"}}}]}'
|
349
|
+
headers:
|
350
|
+
User-Agent:
|
351
|
+
- Parse for Ruby, 0.0
|
352
|
+
Content-Type:
|
353
|
+
- application/json
|
354
|
+
X-Avoscloud-Application-Id:
|
355
|
+
- <X-AVOSCloud-Application-Id>
|
356
|
+
X-Avoscloud-Application-Key:
|
357
|
+
- <X-AVOSCloud-Application-Key>
|
358
|
+
Accept-Encoding:
|
359
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
360
|
+
Accept:
|
361
|
+
- '*/*'
|
362
|
+
response:
|
363
|
+
status:
|
364
|
+
code: 200
|
365
|
+
message: OK
|
366
|
+
headers:
|
367
|
+
Server:
|
368
|
+
- Tengine
|
369
|
+
Date:
|
370
|
+
- Fri, 10 Apr 2015 09:10:30 GMT
|
371
|
+
Content-Type:
|
372
|
+
- application/json;charset=utf-8
|
373
|
+
Content-Length:
|
374
|
+
- '92'
|
375
|
+
Connection:
|
376
|
+
- keep-alive
|
377
|
+
Cache-Control:
|
378
|
+
- no-cache,no-store
|
379
|
+
Pragma:
|
380
|
+
- no-cache
|
381
|
+
Strict-Transport-Security:
|
382
|
+
- max-age=31536000
|
383
|
+
body:
|
384
|
+
encoding: UTF-8
|
385
|
+
string: '[{"success":{"updatedAt":"2015-04-10T09:10:30.118Z","objectId":"55279385e4b0da2c5defa0e2"}}]'
|
386
|
+
http_version:
|
387
|
+
recorded_at: Fri, 10 Apr 2015 09:10:30 GMT
|
388
|
+
- request:
|
389
|
+
method: get
|
390
|
+
uri: https://api.leancloud.cn/1.1/classes/BatchTestObject/55279385e4b0da2c5defa0e2
|
391
|
+
body:
|
392
|
+
encoding: US-ASCII
|
393
|
+
string: ''
|
394
|
+
headers:
|
395
|
+
User-Agent:
|
396
|
+
- Parse for Ruby, 0.0
|
397
|
+
Content-Type:
|
398
|
+
- application/json
|
399
|
+
X-Avoscloud-Application-Id:
|
400
|
+
- <X-AVOSCloud-Application-Id>
|
401
|
+
X-Avoscloud-Application-Key:
|
402
|
+
- <X-AVOSCloud-Application-Key>
|
403
|
+
Accept-Encoding:
|
404
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
405
|
+
Accept:
|
406
|
+
- '*/*'
|
407
|
+
response:
|
408
|
+
status:
|
409
|
+
code: 200
|
410
|
+
message: OK
|
411
|
+
headers:
|
412
|
+
Server:
|
413
|
+
- Tengine
|
414
|
+
Date:
|
415
|
+
- Fri, 10 Apr 2015 09:10:30 GMT
|
416
|
+
Content-Type:
|
417
|
+
- application/json;charset=utf-8
|
418
|
+
Content-Length:
|
419
|
+
- '117'
|
420
|
+
Connection:
|
421
|
+
- keep-alive
|
422
|
+
Last-Modified:
|
423
|
+
- Fri, 10 Apr 2015 09:10:30.118 GMT
|
424
|
+
Cache-Control:
|
425
|
+
- no-cache,no-store
|
426
|
+
Pragma:
|
427
|
+
- no-cache
|
428
|
+
Strict-Transport-Security:
|
429
|
+
- max-age=31536000
|
430
|
+
body:
|
431
|
+
encoding: UTF-8
|
432
|
+
string: '{"updatedAt":"2015-04-10T09:10:30.118Z","createdAt":"2015-04-10T09:10:29.835Z","objectId":"55279385e4b0da2c5defa0e2"}'
|
433
|
+
http_version:
|
434
|
+
recorded_at: Fri, 10 Apr 2015 09:10:30 GMT
|
435
|
+
recorded_with: VCR 2.4.0
|