parse-ruby-client 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +3 -2
- data/Gemfile +12 -12
- data/Gemfile.lock +26 -12
- data/OLD_README.md +255 -0
- data/README.md +1038 -144
- data/Rakefile +2 -10
- data/VERSION +1 -1
- data/features.md +11 -11
- data/fixtures/vcr_cassettes/test_acls_arent_objects.yml +180 -0
- data/fixtures/vcr_cassettes/test_array_add.yml +20 -20
- data/fixtures/vcr_cassettes/test_array_add_pointerizing.yml +239 -0
- data/fixtures/vcr_cassettes/test_array_add_unique.yml +180 -0
- data/fixtures/vcr_cassettes/test_batch_create_object.yml +53 -80
- data/fixtures/vcr_cassettes/test_batch_delete_object.yml +303 -428
- data/fixtures/vcr_cassettes/test_batch_run.yml +53 -74
- data/fixtures/vcr_cassettes/test_batch_update_object.yml +303 -432
- data/fixtures/vcr_cassettes/test_circular_save.yml +121 -0
- data/fixtures/vcr_cassettes/test_created_at.yml +53 -74
- data/fixtures/vcr_cassettes/test_decrement.yml +121 -0
- data/fixtures/vcr_cassettes/test_deep_parse.yml +154 -218
- data/fixtures/vcr_cassettes/test_destroy.yml +104 -144
- data/fixtures/vcr_cassettes/test_eq_pointerize.yml +239 -0
- data/fixtures/vcr_cassettes/test_equality.yml +180 -0
- data/fixtures/vcr_cassettes/test_get.yml +104 -146
- data/fixtures/vcr_cassettes/test_get_missing.yml +60 -0
- data/fixtures/vcr_cassettes/test_include.yml +27 -27
- data/fixtures/vcr_cassettes/test_new_model.yml +53 -146
- data/fixtures/vcr_cassettes/test_new_object.yml +53 -74
- data/fixtures/vcr_cassettes/test_nils_delete_keys.yml +155 -216
- data/fixtures/vcr_cassettes/test_parse_delete.yml +204 -284
- data/fixtures/vcr_cassettes/test_pointer.yml +53 -74
- data/fixtures/vcr_cassettes/test_save_with_sub_objects.yml +298 -0
- data/fixtures/vcr_cassettes/test_saving_boolean_values.yml +121 -0
- data/fixtures/vcr_cassettes/test_server_update.yml +257 -358
- data/fixtures/vcr_cassettes/test_simple_save.yml +53 -74
- data/fixtures/vcr_cassettes/test_text_file_save.yml +53 -161
- data/fixtures/vcr_cassettes/test_update.yml +104 -144
- data/fixtures/vcr_cassettes/test_updated_at.yml +104 -144
- data/fixtures/vcr_cassettes/test_user_save.yml +10 -10
- data/lib/parse/client.rb +43 -6
- data/lib/parse/datatypes.rb +14 -35
- data/lib/parse/error.rb +8 -0
- data/lib/parse/object.rb +25 -20
- data/lib/parse/protocol.rb +3 -4
- data/lib/parse/query.rb +10 -9
- data/lib/parse/util.rb +36 -2
- data/parse-ruby-client.gemspec +22 -18
- data/test/helper.rb +33 -5
- data/test/test_batch.rb +1 -4
- data/test/test_client.rb +59 -7
- data/test/test_cloud.rb +3 -7
- data/test/test_datatypes.rb +6 -7
- data/test/test_file.rb +9 -10
- data/test/test_model.rb +1 -4
- data/test/test_object.rb +148 -6
- data/test/test_push.rb +1 -5
- data/test/test_query.rb +13 -3
- data/test/test_throttle.rb +1 -3
- data/test/test_user.rb +1 -5
- metadata +23 -19
- data/fixtures/vcr_cassettes/test_array_add_relation.yml +0 -321
- data/fixtures/vcr_cassettes/test_cloud_function.yml +0 -81
- data/fixtures/vcr_cassettes/test_file_save.yml +0 -87
- data/fixtures/vcr_cassettes/test_image_file_associate_with_object.yml +0 -2034
- data/fixtures/vcr_cassettes/test_image_file_save.yml +0 -1957
- data/fixtures/vcr_cassettes/test_object_id.yml +0 -83
- data/fixtures/vcr_cassettes/test_request_batch.yml +0 -62
@@ -1,83 +1,62 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
4
|
method: post
|
5
5
|
uri: https://api.parse.com/1/batch
|
6
|
-
body:
|
6
|
+
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
9
|
-
|
10
|
-
|
11
|
-
Content-Type:
|
8
|
+
string: "{\"requests\":[{\"method\":\"POST\",\"path\":\"/1/classes/GameScore\",\"body\":{\"score\":1337,\"playerName\":\"Sean Plott\"}}]}"
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
12
11
|
- application/json
|
13
|
-
Accept:
|
12
|
+
Accept:
|
14
13
|
- application/json
|
15
|
-
User-Agent:
|
14
|
+
User-Agent:
|
16
15
|
- Parse for Ruby, 0.0
|
17
|
-
X-Parse-Master-Key:
|
18
|
-
-
|
19
|
-
X-Parse-Rest-Api-Key:
|
20
|
-
-
|
21
|
-
X-Parse-Application-Id:
|
22
|
-
-
|
23
|
-
X-Parse-Session-Token:
|
24
|
-
-
|
25
|
-
Expect:
|
26
|
-
-
|
27
|
-
response:
|
28
|
-
status:
|
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:
|
29
28
|
code: 200
|
30
|
-
message:
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
-
|
35
|
-
|
36
|
-
|
37
|
-
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
-
|
44
|
-
|
45
|
-
|
46
|
-
-
|
47
|
-
|
48
|
-
|
49
|
-
-
|
50
|
-
|
51
|
-
|
52
|
-
-
|
53
|
-
|
54
|
-
|
55
|
-
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
OyBkb21haW49LnBhcnNlLmNvbTsgcGF0aD0vOyBleHBpcmVzPVRodSwgMDUt
|
60
|
-
SmFuLTIwMjMgMjI6NTU6MjEgR01UOyBzZWN1cmU7IEh0dHBPbmx5
|
61
|
-
!binary "U3RhdHVz":
|
62
|
-
- !binary |-
|
63
|
-
MjAwIE9L
|
64
|
-
!binary "WC1SdW50aW1l":
|
65
|
-
- !binary |-
|
66
|
-
MC44NjczMjQ=
|
67
|
-
!binary "WC1VYS1Db21wYXRpYmxl":
|
68
|
-
- !binary |-
|
69
|
-
SUU9RWRnZSxjaHJvbWU9MQ==
|
70
|
-
!binary "Q29udGVudC1MZW5ndGg=":
|
71
|
-
- !binary |-
|
72
|
-
Nzg=
|
73
|
-
!binary "Q29ubmVjdGlvbg==":
|
74
|
-
- !binary |-
|
75
|
-
a2VlcC1hbGl2ZQ==
|
76
|
-
body:
|
29
|
+
message: OK
|
30
|
+
headers:
|
31
|
+
Access-Control-Allow-Origin:
|
32
|
+
- "*"
|
33
|
+
Access-Control-Request-Method:
|
34
|
+
- "*"
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, private, must-revalidate
|
37
|
+
Content-Type:
|
38
|
+
- application/json; charset=utf-8
|
39
|
+
Date:
|
40
|
+
- Mon, 22 Apr 2013 16:03:13 GMT
|
41
|
+
Etag:
|
42
|
+
- "\"ffab602107ac1e1b99cadfce609e7557\""
|
43
|
+
Server:
|
44
|
+
- nginx/1.2.2
|
45
|
+
Set-Cookie:
|
46
|
+
- <COOKIE-KEY>
|
47
|
+
Status:
|
48
|
+
- 200 OK
|
49
|
+
X-Runtime:
|
50
|
+
- "0.030989"
|
51
|
+
X-Ua-Compatible:
|
52
|
+
- IE=Edge,chrome=1
|
53
|
+
Content-Length:
|
54
|
+
- "78"
|
55
|
+
Connection:
|
56
|
+
- keep-alive
|
57
|
+
body:
|
77
58
|
encoding: ASCII-8BIT
|
78
|
-
string:
|
79
|
-
W3sic3VjY2VzcyI6eyJjcmVhdGVkQXQiOiIyMDEzLTAxLTA1VDIyOjU1OjIx
|
80
|
-
LjA3NloiLCJvYmplY3RJZCI6Imh4dTVaeVdNZDgifX1d
|
59
|
+
string: "[{\"success\":{\"createdAt\":\"2013-04-22T16:03:13.472Z\",\"objectId\":\"VJBh9sJjpo\"}}]"
|
81
60
|
http_version:
|
82
|
-
recorded_at:
|
83
|
-
recorded_with: VCR 2.0
|
61
|
+
recorded_at: Mon, 22 Apr 2013 16:03:13 GMT
|
62
|
+
recorded_with: VCR 2.4.0
|
@@ -1,486 +1,357 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
4
|
method: post
|
5
5
|
uri: https://api.parse.com/1/classes/BatchTestObject
|
6
|
-
body:
|
6
|
+
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
9
|
-
headers:
|
10
|
-
Content-Type:
|
8
|
+
string: "{\"foo\":\"1\"}"
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
11
|
- application/json
|
12
|
-
Accept:
|
12
|
+
Accept:
|
13
13
|
- application/json
|
14
|
-
User-Agent:
|
14
|
+
User-Agent:
|
15
15
|
- Parse for Ruby, 0.0
|
16
|
-
X-Parse-Master-Key:
|
17
|
-
-
|
18
|
-
X-Parse-Rest-Api-Key:
|
19
|
-
-
|
20
|
-
X-Parse-Application-Id:
|
21
|
-
-
|
22
|
-
X-Parse-Session-Token:
|
23
|
-
-
|
24
|
-
Expect:
|
25
|
-
-
|
26
|
-
response:
|
27
|
-
status:
|
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
28
|
code: 201
|
29
|
-
message:
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
-
|
34
|
-
|
35
|
-
|
36
|
-
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
-
|
43
|
-
|
44
|
-
|
45
|
-
-
|
46
|
-
|
47
|
-
|
48
|
-
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
JTNELS1jZTIzYjI3ODM1M2MwNDk2YzlmY2JjODFhMTM5MGZiNDkzMDQ4MDUz
|
59
|
-
OyBkb21haW49LnBhcnNlLmNvbTsgcGF0aD0vOyBleHBpcmVzPVR1ZSwgMTAt
|
60
|
-
SmFuLTIwMjMgMDI6MjU6MjAgR01UOyBzZWN1cmU7IEh0dHBPbmx5
|
61
|
-
!binary "U3RhdHVz":
|
62
|
-
- !binary |-
|
63
|
-
MjAxIENyZWF0ZWQ=
|
64
|
-
!binary "WC1SdW50aW1l":
|
65
|
-
- !binary |-
|
66
|
-
MC41MzE3MjE=
|
67
|
-
!binary "WC1VYS1Db21wYXRpYmxl":
|
68
|
-
- !binary |-
|
69
|
-
SUU9RWRnZSxjaHJvbWU9MQ==
|
70
|
-
!binary "Q29udGVudC1MZW5ndGg=":
|
71
|
-
- !binary |-
|
72
|
-
NjQ=
|
73
|
-
!binary "Q29ubmVjdGlvbg==":
|
74
|
-
- !binary |-
|
75
|
-
a2VlcC1hbGl2ZQ==
|
76
|
-
body:
|
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
|
+
- Mon, 22 Apr 2013 16:03:13 GMT
|
41
|
+
Location:
|
42
|
+
- https://api.parse.com/1/classes/BatchTestObject/ZD8AqXIoV3
|
43
|
+
Server:
|
44
|
+
- nginx/1.2.2
|
45
|
+
Set-Cookie:
|
46
|
+
- <COOKIE-KEY>
|
47
|
+
Status:
|
48
|
+
- 201 Created
|
49
|
+
X-Runtime:
|
50
|
+
- "0.061459"
|
51
|
+
X-Ua-Compatible:
|
52
|
+
- IE=Edge,chrome=1
|
53
|
+
Content-Length:
|
54
|
+
- "64"
|
55
|
+
Connection:
|
56
|
+
- keep-alive
|
57
|
+
body:
|
77
58
|
encoding: ASCII-8BIT
|
78
|
-
string:
|
79
|
-
eyJjcmVhdGVkQXQiOiIyMDEzLTAxLTEwVDAyOjI1OjIwLjA2NFoiLCJvYmpl
|
80
|
-
Y3RJZCI6IkU1NW95MWxSZnYifQ==
|
59
|
+
string: "{\"createdAt\":\"2013-04-22T16:03:13.583Z\",\"objectId\":\"ZD8AqXIoV3\"}"
|
81
60
|
http_version:
|
82
|
-
recorded_at:
|
83
|
-
- request:
|
61
|
+
recorded_at: Mon, 22 Apr 2013 16:03:13 GMT
|
62
|
+
- request:
|
84
63
|
method: post
|
85
64
|
uri: https://api.parse.com/1/classes/BatchTestObject
|
86
|
-
body:
|
65
|
+
body:
|
87
66
|
encoding: UTF-8
|
88
|
-
string:
|
89
|
-
headers:
|
90
|
-
Content-Type:
|
67
|
+
string: "{\"foo\":\"2\"}"
|
68
|
+
headers:
|
69
|
+
Content-Type:
|
91
70
|
- application/json
|
92
|
-
Accept:
|
71
|
+
Accept:
|
93
72
|
- application/json
|
94
|
-
User-Agent:
|
73
|
+
User-Agent:
|
95
74
|
- Parse for Ruby, 0.0
|
96
|
-
X-Parse-Master-Key:
|
97
|
-
-
|
98
|
-
X-Parse-Rest-Api-Key:
|
99
|
-
-
|
100
|
-
X-Parse-Application-Id:
|
101
|
-
-
|
102
|
-
X-Parse-Session-Token:
|
103
|
-
-
|
104
|
-
Expect:
|
105
|
-
-
|
106
|
-
response:
|
107
|
-
status:
|
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:
|
108
87
|
code: 201
|
109
|
-
message:
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
-
|
114
|
-
|
115
|
-
|
116
|
-
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
-
|
123
|
-
|
124
|
-
|
125
|
-
-
|
126
|
-
|
127
|
-
|
128
|
-
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
JTNELS1iMTA4MGMwZWE4MTE0MjI2MzNkYWYwYmNiYmE2M2E2MDA3ZmQ2ZDhm
|
139
|
-
OyBkb21haW49LnBhcnNlLmNvbTsgcGF0aD0vOyBleHBpcmVzPVR1ZSwgMTAt
|
140
|
-
SmFuLTIwMjMgMDI6MjU6MjAgR01UOyBzZWN1cmU7IEh0dHBPbmx5
|
141
|
-
!binary "U3RhdHVz":
|
142
|
-
- !binary |-
|
143
|
-
MjAxIENyZWF0ZWQ=
|
144
|
-
!binary "WC1SdW50aW1l":
|
145
|
-
- !binary |-
|
146
|
-
MC4yNzY3MDI=
|
147
|
-
!binary "WC1VYS1Db21wYXRpYmxl":
|
148
|
-
- !binary |-
|
149
|
-
SUU9RWRnZSxjaHJvbWU9MQ==
|
150
|
-
!binary "Q29udGVudC1MZW5ndGg=":
|
151
|
-
- !binary |-
|
152
|
-
NjQ=
|
153
|
-
!binary "Q29ubmVjdGlvbg==":
|
154
|
-
- !binary |-
|
155
|
-
a2VlcC1hbGl2ZQ==
|
156
|
-
body:
|
88
|
+
message: Created
|
89
|
+
headers:
|
90
|
+
Access-Control-Allow-Origin:
|
91
|
+
- "*"
|
92
|
+
Access-Control-Request-Method:
|
93
|
+
- "*"
|
94
|
+
Cache-Control:
|
95
|
+
- no-cache
|
96
|
+
Content-Type:
|
97
|
+
- application/json; charset=utf-8
|
98
|
+
Date:
|
99
|
+
- Mon, 22 Apr 2013 16:03:13 GMT
|
100
|
+
Location:
|
101
|
+
- https://api.parse.com/1/classes/BatchTestObject/UiphsqDkxe
|
102
|
+
Server:
|
103
|
+
- nginx/1.2.2
|
104
|
+
Set-Cookie:
|
105
|
+
- <COOKIE-KEY>
|
106
|
+
Status:
|
107
|
+
- 201 Created
|
108
|
+
X-Runtime:
|
109
|
+
- "0.029661"
|
110
|
+
X-Ua-Compatible:
|
111
|
+
- IE=Edge,chrome=1
|
112
|
+
Content-Length:
|
113
|
+
- "64"
|
114
|
+
Connection:
|
115
|
+
- keep-alive
|
116
|
+
body:
|
157
117
|
encoding: ASCII-8BIT
|
158
|
-
string:
|
159
|
-
eyJjcmVhdGVkQXQiOiIyMDEzLTAxLTEwVDAyOjI1OjIwLjYxOVoiLCJvYmpl
|
160
|
-
Y3RJZCI6Ikd3RVAyVlZkU3QifQ==
|
118
|
+
string: "{\"createdAt\":\"2013-04-22T16:03:13.664Z\",\"objectId\":\"UiphsqDkxe\"}"
|
161
119
|
http_version:
|
162
|
-
recorded_at:
|
163
|
-
- request:
|
120
|
+
recorded_at: Mon, 22 Apr 2013 16:03:13 GMT
|
121
|
+
- request:
|
164
122
|
method: post
|
165
123
|
uri: https://api.parse.com/1/classes/BatchTestObject
|
166
|
-
body:
|
124
|
+
body:
|
167
125
|
encoding: UTF-8
|
168
|
-
string:
|
169
|
-
headers:
|
170
|
-
Content-Type:
|
126
|
+
string: "{\"foo\":\"3\"}"
|
127
|
+
headers:
|
128
|
+
Content-Type:
|
171
129
|
- application/json
|
172
|
-
Accept:
|
130
|
+
Accept:
|
173
131
|
- application/json
|
174
|
-
User-Agent:
|
132
|
+
User-Agent:
|
175
133
|
- Parse for Ruby, 0.0
|
176
|
-
X-Parse-Master-Key:
|
177
|
-
-
|
178
|
-
X-Parse-Rest-Api-Key:
|
179
|
-
-
|
180
|
-
X-Parse-Application-Id:
|
181
|
-
-
|
182
|
-
X-Parse-Session-Token:
|
183
|
-
-
|
184
|
-
Expect:
|
185
|
-
-
|
186
|
-
response:
|
187
|
-
status:
|
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:
|
188
146
|
code: 201
|
189
|
-
message:
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
-
|
194
|
-
|
195
|
-
|
196
|
-
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
-
|
203
|
-
|
204
|
-
|
205
|
-
-
|
206
|
-
|
207
|
-
|
208
|
-
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
JTNELS0wYzk5MDVjZTdjZmQ3YjkxZTU4NjNjY2Q1OTYyYTBjMmFiYzk5Yjlj
|
219
|
-
OyBkb21haW49LnBhcnNlLmNvbTsgcGF0aD0vOyBleHBpcmVzPVR1ZSwgMTAt
|
220
|
-
SmFuLTIwMjMgMDI6MjU6MjEgR01UOyBzZWN1cmU7IEh0dHBPbmx5
|
221
|
-
!binary "U3RhdHVz":
|
222
|
-
- !binary |-
|
223
|
-
MjAxIENyZWF0ZWQ=
|
224
|
-
!binary "WC1SdW50aW1l":
|
225
|
-
- !binary |-
|
226
|
-
MC42NjExNTA=
|
227
|
-
!binary "WC1VYS1Db21wYXRpYmxl":
|
228
|
-
- !binary |-
|
229
|
-
SUU9RWRnZSxjaHJvbWU9MQ==
|
230
|
-
!binary "Q29udGVudC1MZW5ndGg=":
|
231
|
-
- !binary |-
|
232
|
-
NjQ=
|
233
|
-
!binary "Q29ubmVjdGlvbg==":
|
234
|
-
- !binary |-
|
235
|
-
a2VlcC1hbGl2ZQ==
|
236
|
-
body:
|
147
|
+
message: Created
|
148
|
+
headers:
|
149
|
+
Access-Control-Allow-Origin:
|
150
|
+
- "*"
|
151
|
+
Access-Control-Request-Method:
|
152
|
+
- "*"
|
153
|
+
Cache-Control:
|
154
|
+
- no-cache
|
155
|
+
Content-Type:
|
156
|
+
- application/json; charset=utf-8
|
157
|
+
Date:
|
158
|
+
- Mon, 22 Apr 2013 16:03:13 GMT
|
159
|
+
Location:
|
160
|
+
- https://api.parse.com/1/classes/BatchTestObject/1s3ISlPT0N
|
161
|
+
Server:
|
162
|
+
- nginx/1.2.2
|
163
|
+
Set-Cookie:
|
164
|
+
- <COOKIE-KEY>
|
165
|
+
Status:
|
166
|
+
- 201 Created
|
167
|
+
X-Runtime:
|
168
|
+
- "0.045724"
|
169
|
+
X-Ua-Compatible:
|
170
|
+
- IE=Edge,chrome=1
|
171
|
+
Content-Length:
|
172
|
+
- "64"
|
173
|
+
Connection:
|
174
|
+
- keep-alive
|
175
|
+
body:
|
237
176
|
encoding: ASCII-8BIT
|
238
|
-
string:
|
239
|
-
eyJjcmVhdGVkQXQiOiIyMDEzLTAxLTEwVDAyOjI1OjIwLjkxN1oiLCJvYmpl
|
240
|
-
Y3RJZCI6Ik1NcXlFTHVzMmIifQ==
|
177
|
+
string: "{\"createdAt\":\"2013-04-22T16:03:13.722Z\",\"objectId\":\"1s3ISlPT0N\"}"
|
241
178
|
http_version:
|
242
|
-
recorded_at:
|
243
|
-
- request:
|
179
|
+
recorded_at: Mon, 22 Apr 2013 16:03:13 GMT
|
180
|
+
- request:
|
244
181
|
method: post
|
245
182
|
uri: https://api.parse.com/1/classes/BatchTestObject
|
246
|
-
body:
|
183
|
+
body:
|
247
184
|
encoding: UTF-8
|
248
|
-
string:
|
249
|
-
headers:
|
250
|
-
Content-Type:
|
185
|
+
string: "{\"foo\":\"4\"}"
|
186
|
+
headers:
|
187
|
+
Content-Type:
|
251
188
|
- application/json
|
252
|
-
Accept:
|
189
|
+
Accept:
|
253
190
|
- application/json
|
254
|
-
User-Agent:
|
191
|
+
User-Agent:
|
255
192
|
- Parse for Ruby, 0.0
|
256
|
-
X-Parse-Master-Key:
|
257
|
-
-
|
258
|
-
X-Parse-Rest-Api-Key:
|
259
|
-
-
|
260
|
-
X-Parse-Application-Id:
|
261
|
-
-
|
262
|
-
X-Parse-Session-Token:
|
263
|
-
-
|
264
|
-
Expect:
|
265
|
-
-
|
266
|
-
response:
|
267
|
-
status:
|
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:
|
268
205
|
code: 201
|
269
|
-
message:
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
-
|
274
|
-
|
275
|
-
|
276
|
-
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
-
|
283
|
-
|
284
|
-
|
285
|
-
-
|
286
|
-
|
287
|
-
|
288
|
-
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
JTNELS0xM2Y2NDU1MzRiODQwZWJlMjZmZTVkMWI5YzkzMDJhNzIwMjBiMjRj
|
299
|
-
OyBkb21haW49LnBhcnNlLmNvbTsgcGF0aD0vOyBleHBpcmVzPVR1ZSwgMTAt
|
300
|
-
SmFuLTIwMjMgMDI6MjU6MjEgR01UOyBzZWN1cmU7IEh0dHBPbmx5
|
301
|
-
!binary "U3RhdHVz":
|
302
|
-
- !binary |-
|
303
|
-
MjAxIENyZWF0ZWQ=
|
304
|
-
!binary "WC1SdW50aW1l":
|
305
|
-
- !binary |-
|
306
|
-
MC4yNjY0Mjk=
|
307
|
-
!binary "WC1VYS1Db21wYXRpYmxl":
|
308
|
-
- !binary |-
|
309
|
-
SUU9RWRnZSxjaHJvbWU9MQ==
|
310
|
-
!binary "Q29udGVudC1MZW5ndGg=":
|
311
|
-
- !binary |-
|
312
|
-
NjQ=
|
313
|
-
!binary "Q29ubmVjdGlvbg==":
|
314
|
-
- !binary |-
|
315
|
-
a2VlcC1hbGl2ZQ==
|
316
|
-
body:
|
206
|
+
message: Created
|
207
|
+
headers:
|
208
|
+
Access-Control-Allow-Origin:
|
209
|
+
- "*"
|
210
|
+
Access-Control-Request-Method:
|
211
|
+
- "*"
|
212
|
+
Cache-Control:
|
213
|
+
- no-cache
|
214
|
+
Content-Type:
|
215
|
+
- application/json; charset=utf-8
|
216
|
+
Date:
|
217
|
+
- Mon, 22 Apr 2013 16:03:13 GMT
|
218
|
+
Location:
|
219
|
+
- https://api.parse.com/1/classes/BatchTestObject/QpZn6ARkSA
|
220
|
+
Server:
|
221
|
+
- nginx/1.2.2
|
222
|
+
Set-Cookie:
|
223
|
+
- <COOKIE-KEY>
|
224
|
+
Status:
|
225
|
+
- 201 Created
|
226
|
+
X-Runtime:
|
227
|
+
- "0.028172"
|
228
|
+
X-Ua-Compatible:
|
229
|
+
- IE=Edge,chrome=1
|
230
|
+
Content-Length:
|
231
|
+
- "64"
|
232
|
+
Connection:
|
233
|
+
- keep-alive
|
234
|
+
body:
|
317
235
|
encoding: ASCII-8BIT
|
318
|
-
string:
|
319
|
-
eyJjcmVhdGVkQXQiOiIyMDEzLTAxLTEwVDAyOjI1OjIxLjYyOVoiLCJvYmpl
|
320
|
-
Y3RJZCI6IklmOVJxTjNTRjEifQ==
|
236
|
+
string: "{\"createdAt\":\"2013-04-22T16:03:13.770Z\",\"objectId\":\"QpZn6ARkSA\"}"
|
321
237
|
http_version:
|
322
|
-
recorded_at:
|
323
|
-
- request:
|
238
|
+
recorded_at: Mon, 22 Apr 2013 16:03:13 GMT
|
239
|
+
- request:
|
324
240
|
method: post
|
325
241
|
uri: https://api.parse.com/1/classes/BatchTestObject
|
326
|
-
body:
|
242
|
+
body:
|
327
243
|
encoding: UTF-8
|
328
|
-
string:
|
329
|
-
headers:
|
330
|
-
Content-Type:
|
244
|
+
string: "{\"foo\":\"5\"}"
|
245
|
+
headers:
|
246
|
+
Content-Type:
|
331
247
|
- application/json
|
332
|
-
Accept:
|
248
|
+
Accept:
|
333
249
|
- application/json
|
334
|
-
User-Agent:
|
250
|
+
User-Agent:
|
335
251
|
- Parse for Ruby, 0.0
|
336
|
-
X-Parse-Master-Key:
|
337
|
-
-
|
338
|
-
X-Parse-Rest-Api-Key:
|
339
|
-
-
|
340
|
-
X-Parse-Application-Id:
|
341
|
-
-
|
342
|
-
X-Parse-Session-Token:
|
343
|
-
-
|
344
|
-
Expect:
|
345
|
-
-
|
346
|
-
response:
|
347
|
-
status:
|
252
|
+
X-Parse-Master-Key:
|
253
|
+
- ""
|
254
|
+
X-Parse-Rest-Api-Key:
|
255
|
+
- <X-Parse-REST-API-Key>
|
256
|
+
X-Parse-Application-Id:
|
257
|
+
- <X-Parse-Application-Id>
|
258
|
+
X-Parse-Session-Token:
|
259
|
+
- ""
|
260
|
+
Expect:
|
261
|
+
- ""
|
262
|
+
response:
|
263
|
+
status:
|
348
264
|
code: 201
|
349
|
-
message:
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
-
|
354
|
-
|
355
|
-
|
356
|
-
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
-
|
363
|
-
|
364
|
-
|
365
|
-
-
|
366
|
-
|
367
|
-
|
368
|
-
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
JTNELS00YzljZjVjNTZlYWZmODRmOGMwY2ZmZDFmYzgxYmI1OTY4MzU3YTQy
|
379
|
-
OyBkb21haW49LnBhcnNlLmNvbTsgcGF0aD0vOyBleHBpcmVzPVR1ZSwgMTAt
|
380
|
-
SmFuLTIwMjMgMDI6MjU6MjIgR01UOyBzZWN1cmU7IEh0dHBPbmx5
|
381
|
-
!binary "U3RhdHVz":
|
382
|
-
- !binary |-
|
383
|
-
MjAxIENyZWF0ZWQ=
|
384
|
-
!binary "WC1SdW50aW1l":
|
385
|
-
- !binary |-
|
386
|
-
MC4xOTMxNDE=
|
387
|
-
!binary "WC1VYS1Db21wYXRpYmxl":
|
388
|
-
- !binary |-
|
389
|
-
SUU9RWRnZSxjaHJvbWU9MQ==
|
390
|
-
!binary "Q29udGVudC1MZW5ndGg=":
|
391
|
-
- !binary |-
|
392
|
-
NjQ=
|
393
|
-
!binary "Q29ubmVjdGlvbg==":
|
394
|
-
- !binary |-
|
395
|
-
a2VlcC1hbGl2ZQ==
|
396
|
-
body:
|
265
|
+
message: Created
|
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
|
+
- Mon, 22 Apr 2013 16:03:13 GMT
|
277
|
+
Location:
|
278
|
+
- https://api.parse.com/1/classes/BatchTestObject/AXfva0JhBg
|
279
|
+
Server:
|
280
|
+
- nginx/1.2.2
|
281
|
+
Set-Cookie:
|
282
|
+
- <COOKIE-KEY>
|
283
|
+
Status:
|
284
|
+
- 201 Created
|
285
|
+
X-Runtime:
|
286
|
+
- "0.037544"
|
287
|
+
X-Ua-Compatible:
|
288
|
+
- IE=Edge,chrome=1
|
289
|
+
Content-Length:
|
290
|
+
- "64"
|
291
|
+
Connection:
|
292
|
+
- keep-alive
|
293
|
+
body:
|
397
294
|
encoding: ASCII-8BIT
|
398
|
-
string:
|
399
|
-
eyJjcmVhdGVkQXQiOiIyMDEzLTAxLTEwVDAyOjI1OjIxLjk1MVoiLCJvYmpl
|
400
|
-
Y3RJZCI6InBvUXdrZFdqMUMifQ==
|
295
|
+
string: "{\"createdAt\":\"2013-04-22T16:03:13.828Z\",\"objectId\":\"AXfva0JhBg\"}"
|
401
296
|
http_version:
|
402
|
-
recorded_at:
|
403
|
-
- request:
|
297
|
+
recorded_at: Mon, 22 Apr 2013 16:03:13 GMT
|
298
|
+
- request:
|
404
299
|
method: post
|
405
300
|
uri: https://api.parse.com/1/batch
|
406
|
-
body:
|
301
|
+
body:
|
407
302
|
encoding: UTF-8
|
408
|
-
string:
|
409
|
-
headers:
|
410
|
-
Content-Type:
|
303
|
+
string: "{\"requests\":[{\"method\":\"PUT\",\"path\":\"/1/classes/BatchTestObject/ZD8AqXIoV3\",\"body\":{\"foo\":\"updated\"}},{\"method\":\"PUT\",\"path\":\"/1/classes/BatchTestObject/UiphsqDkxe\",\"body\":{\"foo\":\"updated\"}},{\"method\":\"PUT\",\"path\":\"/1/classes/BatchTestObject/1s3ISlPT0N\",\"body\":{\"foo\":\"updated\"}},{\"method\":\"PUT\",\"path\":\"/1/classes/BatchTestObject/QpZn6ARkSA\",\"body\":{\"foo\":\"updated\"}},{\"method\":\"PUT\",\"path\":\"/1/classes/BatchTestObject/AXfva0JhBg\",\"body\":{\"foo\":\"updated\"}}]}"
|
304
|
+
headers:
|
305
|
+
Content-Type:
|
411
306
|
- application/json
|
412
|
-
Accept:
|
307
|
+
Accept:
|
413
308
|
- application/json
|
414
|
-
User-Agent:
|
309
|
+
User-Agent:
|
415
310
|
- Parse for Ruby, 0.0
|
416
|
-
X-Parse-Master-Key:
|
417
|
-
-
|
418
|
-
X-Parse-Rest-Api-Key:
|
419
|
-
-
|
420
|
-
X-Parse-Application-Id:
|
421
|
-
-
|
422
|
-
X-Parse-Session-Token:
|
423
|
-
-
|
424
|
-
Expect:
|
425
|
-
-
|
426
|
-
response:
|
427
|
-
status:
|
311
|
+
X-Parse-Master-Key:
|
312
|
+
- ""
|
313
|
+
X-Parse-Rest-Api-Key:
|
314
|
+
- <X-Parse-REST-API-Key>
|
315
|
+
X-Parse-Application-Id:
|
316
|
+
- <X-Parse-Application-Id>
|
317
|
+
X-Parse-Session-Token:
|
318
|
+
- ""
|
319
|
+
Expect:
|
320
|
+
- ""
|
321
|
+
response:
|
322
|
+
status:
|
428
323
|
code: 200
|
429
|
-
message:
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
-
|
434
|
-
|
435
|
-
|
436
|
-
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
-
|
443
|
-
|
444
|
-
|
445
|
-
-
|
446
|
-
|
447
|
-
|
448
|
-
-
|
449
|
-
|
450
|
-
|
451
|
-
-
|
452
|
-
|
453
|
-
|
454
|
-
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
OyBkb21haW49LnBhcnNlLmNvbTsgcGF0aD0vOyBleHBpcmVzPVR1ZSwgMTAt
|
459
|
-
SmFuLTIwMjMgMDI6MjU6MjIgR01UOyBzZWN1cmU7IEh0dHBPbmx5
|
460
|
-
!binary "U3RhdHVz":
|
461
|
-
- !binary |-
|
462
|
-
MjAwIE9L
|
463
|
-
!binary "WC1SdW50aW1l":
|
464
|
-
- !binary |-
|
465
|
-
MC41NzEwOTE=
|
466
|
-
!binary "WC1VYS1Db21wYXRpYmxl":
|
467
|
-
- !binary |-
|
468
|
-
SUU9RWRnZSxjaHJvbWU9MQ==
|
469
|
-
!binary "Q29udGVudC1MZW5ndGg=":
|
470
|
-
- !binary |-
|
471
|
-
MjY2
|
472
|
-
!binary "Q29ubmVjdGlvbg==":
|
473
|
-
- !binary |-
|
474
|
-
a2VlcC1hbGl2ZQ==
|
475
|
-
body:
|
324
|
+
message: OK
|
325
|
+
headers:
|
326
|
+
Access-Control-Allow-Origin:
|
327
|
+
- "*"
|
328
|
+
Access-Control-Request-Method:
|
329
|
+
- "*"
|
330
|
+
Cache-Control:
|
331
|
+
- max-age=0, private, must-revalidate
|
332
|
+
Content-Type:
|
333
|
+
- application/json; charset=utf-8
|
334
|
+
Date:
|
335
|
+
- Mon, 22 Apr 2013 16:03:13 GMT
|
336
|
+
Etag:
|
337
|
+
- "\"8f986add7fb4d8fe7235b9c12d15c3e4\""
|
338
|
+
Server:
|
339
|
+
- nginx/1.2.2
|
340
|
+
Set-Cookie:
|
341
|
+
- <COOKIE-KEY>
|
342
|
+
Status:
|
343
|
+
- 200 OK
|
344
|
+
X-Runtime:
|
345
|
+
- "0.131594"
|
346
|
+
X-Ua-Compatible:
|
347
|
+
- IE=Edge,chrome=1
|
348
|
+
Content-Length:
|
349
|
+
- "266"
|
350
|
+
Connection:
|
351
|
+
- keep-alive
|
352
|
+
body:
|
476
353
|
encoding: ASCII-8BIT
|
477
|
-
string:
|
478
|
-
W3sic3VjY2VzcyI6eyJ1cGRhdGVkQXQiOiIyMDEzLTAxLTEwVDAyOjI1OjIy
|
479
|
-
LjE2MloifX0seyJzdWNjZXNzIjp7InVwZGF0ZWRBdCI6IjIwMTMtMDEtMTBU
|
480
|
-
MDI6MjU6MjIuNDEzWiJ9fSx7InN1Y2Nlc3MiOnsidXBkYXRlZEF0IjoiMjAx
|
481
|
-
My0wMS0xMFQwMjoyNToyMi41MzJaIn19LHsic3VjY2VzcyI6eyJ1cGRhdGVk
|
482
|
-
QXQiOiIyMDEzLTAxLTEwVDAyOjI1OjIyLjYyN1oifX0seyJzdWNjZXNzIjp7
|
483
|
-
InVwZGF0ZWRBdCI6IjIwMTMtMDEtMTBUMDI6MjU6MjIuNjU0WiJ9fV0=
|
354
|
+
string: "[{\"success\":{\"updatedAt\":\"2013-04-22T16:03:13.884Z\"}},{\"success\":{\"updatedAt\":\"2013-04-22T16:03:13.895Z\"}},{\"success\":{\"updatedAt\":\"2013-04-22T16:03:13.907Z\"}},{\"success\":{\"updatedAt\":\"2013-04-22T16:03:13.947Z\"}},{\"success\":{\"updatedAt\":\"2013-04-22T16:03:13.975Z\"}}]"
|
484
355
|
http_version:
|
485
|
-
recorded_at:
|
486
|
-
recorded_with: VCR 2.0
|
356
|
+
recorded_at: Mon, 22 Apr 2013 16:03:13 GMT
|
357
|
+
recorded_with: VCR 2.4.0
|