parse-ruby-client 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +4 -3
- data/Gemfile.lock +7 -1
- data/README.md +10 -5
- data/VERSION +1 -1
- data/fixtures/vcr_cassettes/test_cloud_function.yml +81 -0
- data/fixtures/vcr_cassettes/test_created_at.yml +83 -0
- data/fixtures/vcr_cassettes/test_deep_parse.yml +244 -0
- data/fixtures/vcr_cassettes/test_destroy.yml +161 -0
- data/fixtures/vcr_cassettes/test_get.yml +163 -0
- data/fixtures/vcr_cassettes/test_new_object.yml +83 -0
- data/fixtures/vcr_cassettes/test_nils_delete_keys.yml +241 -0
- data/fixtures/vcr_cassettes/test_object_id.yml +83 -0
- data/fixtures/vcr_cassettes/test_parse_delete.yml +317 -0
- data/fixtures/vcr_cassettes/test_pointer.yml +83 -0
- data/fixtures/vcr_cassettes/test_server_update.yml +399 -0
- data/fixtures/vcr_cassettes/test_simple_save.yml +83 -0
- data/fixtures/vcr_cassettes/test_update.yml +161 -0
- data/fixtures/vcr_cassettes/test_updated_at.yml +161 -0
- data/fixtures/vcr_cassettes/test_user_save.yml +83 -0
- data/lib/parse-ruby-client.rb +2 -1
- data/lib/parse/cloud.rb +23 -0
- data/lib/parse/object.rb +11 -0
- data/lib/parse/protocol.rb +10 -1
- data/lib/parse/push.rb +1 -0
- data/lib/parse/query.rb +1 -0
- data/parse-ruby-client.gemspec +29 -8
- data/test/cloud_functions/MyCloudCode/cloud/main.js +4 -0
- data/test/helper.rb +8 -0
- data/test/test_client.rb +42 -34
- data/test/test_cloud.rb +29 -0
- data/test/test_object.rb +68 -44
- data/test/test_push.rb +20 -3
- data/test/test_query.rb +37 -29
- data/test/test_user.rb +30 -26
- metadata +52 -18
@@ -0,0 +1,161 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.parse.com/1/classes/toBeDeleted
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"foo":"bar"}'
|
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
|
+
- D3Y8jNCQk6kpkKhpRGnWLYTrFGQ7j8dtDVnWZRnZ
|
20
|
+
X-Parse-Application-Id:
|
21
|
+
- PPVk6L5M9R1R8GVk8Ye9jT8f5SQNBIeoJUDJLmkT
|
22
|
+
X-Parse-Session-Token:
|
23
|
+
- ''
|
24
|
+
Expect:
|
25
|
+
- ''
|
26
|
+
response:
|
27
|
+
status:
|
28
|
+
code: 201
|
29
|
+
message: !binary |-
|
30
|
+
Q3JlYXRlZA==
|
31
|
+
headers:
|
32
|
+
!binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
|
33
|
+
- !binary |-
|
34
|
+
Kg==
|
35
|
+
!binary "QWNjZXNzLUNvbnRyb2wtUmVxdWVzdC1NZXRob2Q=":
|
36
|
+
- !binary |-
|
37
|
+
Kg==
|
38
|
+
!binary "Q2FjaGUtQ29udHJvbA==":
|
39
|
+
- !binary |-
|
40
|
+
bm8tY2FjaGU=
|
41
|
+
!binary "Q29udGVudC1UeXBl":
|
42
|
+
- !binary |-
|
43
|
+
YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
|
44
|
+
!binary "RGF0ZQ==":
|
45
|
+
- !binary |-
|
46
|
+
VHVlLCAwOSBPY3QgMjAxMiAyMTo0NToxNyBHTVQ=
|
47
|
+
!binary "TG9jYXRpb24=":
|
48
|
+
- !binary |-
|
49
|
+
aHR0cHM6Ly9hcGkucGFyc2UuY29tLzEvY2xhc3Nlcy90b0JlRGVsZXRlZC9n
|
50
|
+
bzA3TFFES3Nx
|
51
|
+
!binary "U2VydmVy":
|
52
|
+
- !binary |-
|
53
|
+
bmdpbngvMS4yLjI=
|
54
|
+
!binary "U2V0LUNvb2tpZQ==":
|
55
|
+
- !binary |-
|
56
|
+
X3BhcnNlX3Nlc3Npb249QkFoN0Jra2lEM05sYzNOcGIyNWZhV1FHT2daRlJp
|
57
|
+
SWxabVZrWVRRek9EUm1NV0V4WTJWaE56SmlOREl3WWpKall6RTFaRFEzWVdJ
|
58
|
+
JTNELS01MGQ2ZTBiOWUzMWI3OGYwYmYzMzMwMTZhMDg2NDAyYjFhNjZmMzUw
|
59
|
+
OyBkb21haW49LnBhcnNlLmNvbTsgcGF0aD0vOyBleHBpcmVzPVN1biwgMDkt
|
60
|
+
T2N0LTIwMjIgMjE6NDU6MTcgR01UOyBzZWN1cmU7IEh0dHBPbmx5
|
61
|
+
!binary "U3RhdHVz":
|
62
|
+
- !binary |-
|
63
|
+
MjAxIENyZWF0ZWQ=
|
64
|
+
!binary "WC1SdW50aW1l":
|
65
|
+
- !binary |-
|
66
|
+
MC4wMTc3OTU=
|
67
|
+
!binary "WC1VYS1Db21wYXRpYmxl":
|
68
|
+
- !binary |-
|
69
|
+
SUU9RWRnZSxjaHJvbWU9MQ==
|
70
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
71
|
+
- !binary |-
|
72
|
+
NjQ=
|
73
|
+
!binary "Q29ubmVjdGlvbg==":
|
74
|
+
- !binary |-
|
75
|
+
a2VlcC1hbGl2ZQ==
|
76
|
+
body:
|
77
|
+
encoding: ASCII-8BIT
|
78
|
+
string: !binary |-
|
79
|
+
eyJjcmVhdGVkQXQiOiIyMDEyLTEwLTA5VDIxOjQ1OjE3Ljc2N1oiLCJvYmpl
|
80
|
+
Y3RJZCI6ImdvMDdMUURLc3EifQ==
|
81
|
+
http_version:
|
82
|
+
recorded_at: Tue, 09 Oct 2012 21:45:18 GMT
|
83
|
+
- request:
|
84
|
+
method: delete
|
85
|
+
uri: https://api.parse.com/1/classes/toBeDeleted/go07LQDKsq
|
86
|
+
body:
|
87
|
+
encoding: US-ASCII
|
88
|
+
string: ''
|
89
|
+
headers:
|
90
|
+
Content-Type:
|
91
|
+
- application/json
|
92
|
+
Accept:
|
93
|
+
- application/json
|
94
|
+
User-Agent:
|
95
|
+
- Parse for Ruby, 0.0
|
96
|
+
X-Parse-Master-Key:
|
97
|
+
- ''
|
98
|
+
X-Parse-Rest-Api-Key:
|
99
|
+
- D3Y8jNCQk6kpkKhpRGnWLYTrFGQ7j8dtDVnWZRnZ
|
100
|
+
X-Parse-Application-Id:
|
101
|
+
- PPVk6L5M9R1R8GVk8Ye9jT8f5SQNBIeoJUDJLmkT
|
102
|
+
X-Parse-Session-Token:
|
103
|
+
- ''
|
104
|
+
Expect:
|
105
|
+
- ''
|
106
|
+
response:
|
107
|
+
status:
|
108
|
+
code: 200
|
109
|
+
message: !binary |-
|
110
|
+
T0s=
|
111
|
+
headers:
|
112
|
+
!binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
|
113
|
+
- !binary |-
|
114
|
+
Kg==
|
115
|
+
!binary "QWNjZXNzLUNvbnRyb2wtUmVxdWVzdC1NZXRob2Q=":
|
116
|
+
- !binary |-
|
117
|
+
Kg==
|
118
|
+
!binary "Q2FjaGUtQ29udHJvbA==":
|
119
|
+
- !binary |-
|
120
|
+
bWF4LWFnZT0wLCBwcml2YXRlLCBtdXN0LXJldmFsaWRhdGU=
|
121
|
+
!binary "Q29udGVudC1UeXBl":
|
122
|
+
- !binary |-
|
123
|
+
YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
|
124
|
+
!binary "RGF0ZQ==":
|
125
|
+
- !binary |-
|
126
|
+
VHVlLCAwOSBPY3QgMjAxMiAyMTo0NToxNyBHTVQ=
|
127
|
+
!binary "RXRhZw==":
|
128
|
+
- !binary |-
|
129
|
+
Ijk5OTE0YjkzMmJkMzdhNTBiOTgzYzVlN2M5MGFlOTNiIg==
|
130
|
+
!binary "U2VydmVy":
|
131
|
+
- !binary |-
|
132
|
+
bmdpbngvMS4yLjI=
|
133
|
+
!binary "U2V0LUNvb2tpZQ==":
|
134
|
+
- !binary |-
|
135
|
+
X3BhcnNlX3Nlc3Npb249QkFoN0Jra2lEM05sYzNOcGIyNWZhV1FHT2daRlJp
|
136
|
+
SWxZbVk0WWpjM01UbGtaREJpWm1SbU1Ua3paVGMzTURjeE5UWXlORFE0WVdV
|
137
|
+
JTNELS03YzViNGUwMTQ0MWY3MjE0N2FiOGZiYWZkNDUyYWY5YTllODBhYTJk
|
138
|
+
OyBkb21haW49LnBhcnNlLmNvbTsgcGF0aD0vOyBleHBpcmVzPVN1biwgMDkt
|
139
|
+
T2N0LTIwMjIgMjE6NDU6MTcgR01UOyBzZWN1cmU7IEh0dHBPbmx5
|
140
|
+
!binary "U3RhdHVz":
|
141
|
+
- !binary |-
|
142
|
+
MjAwIE9L
|
143
|
+
!binary "WC1SdW50aW1l":
|
144
|
+
- !binary |-
|
145
|
+
MC4wMjgyMDI=
|
146
|
+
!binary "WC1VYS1Db21wYXRpYmxl":
|
147
|
+
- !binary |-
|
148
|
+
SUU9RWRnZSxjaHJvbWU9MQ==
|
149
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
150
|
+
- !binary |-
|
151
|
+
Mg==
|
152
|
+
!binary "Q29ubmVjdGlvbg==":
|
153
|
+
- !binary |-
|
154
|
+
a2VlcC1hbGl2ZQ==
|
155
|
+
body:
|
156
|
+
encoding: ASCII-8BIT
|
157
|
+
string: !binary |-
|
158
|
+
e30=
|
159
|
+
http_version:
|
160
|
+
recorded_at: Tue, 09 Oct 2012 21:45:18 GMT
|
161
|
+
recorded_with: VCR 2.0.1
|
@@ -0,0 +1,163 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.parse.com/1/classes/Post
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"title":"foo"}'
|
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
|
+
- D3Y8jNCQk6kpkKhpRGnWLYTrFGQ7j8dtDVnWZRnZ
|
20
|
+
X-Parse-Application-Id:
|
21
|
+
- PPVk6L5M9R1R8GVk8Ye9jT8f5SQNBIeoJUDJLmkT
|
22
|
+
X-Parse-Session-Token:
|
23
|
+
- ''
|
24
|
+
Expect:
|
25
|
+
- ''
|
26
|
+
response:
|
27
|
+
status:
|
28
|
+
code: 201
|
29
|
+
message: !binary |-
|
30
|
+
Q3JlYXRlZA==
|
31
|
+
headers:
|
32
|
+
!binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
|
33
|
+
- !binary |-
|
34
|
+
Kg==
|
35
|
+
!binary "QWNjZXNzLUNvbnRyb2wtUmVxdWVzdC1NZXRob2Q=":
|
36
|
+
- !binary |-
|
37
|
+
Kg==
|
38
|
+
!binary "Q2FjaGUtQ29udHJvbA==":
|
39
|
+
- !binary |-
|
40
|
+
bm8tY2FjaGU=
|
41
|
+
!binary "Q29udGVudC1UeXBl":
|
42
|
+
- !binary |-
|
43
|
+
YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
|
44
|
+
!binary "RGF0ZQ==":
|
45
|
+
- !binary |-
|
46
|
+
VHVlLCAwOSBPY3QgMjAxMiAyMTo0NTozMiBHTVQ=
|
47
|
+
!binary "TG9jYXRpb24=":
|
48
|
+
- !binary |-
|
49
|
+
aHR0cHM6Ly9hcGkucGFyc2UuY29tLzEvY2xhc3Nlcy9Qb3N0L0VEUHEyZmhE
|
50
|
+
UjQ=
|
51
|
+
!binary "U2VydmVy":
|
52
|
+
- !binary |-
|
53
|
+
bmdpbngvMS4yLjI=
|
54
|
+
!binary "U2V0LUNvb2tpZQ==":
|
55
|
+
- !binary |-
|
56
|
+
X3BhcnNlX3Nlc3Npb249QkFoN0Jra2lEM05sYzNOcGIyNWZhV1FHT2daRlJp
|
57
|
+
SWxZemMwTTJGbU9EZGtaakJrTVRZNE9UbGpOR1poTVRZMFlUTTVaRFE1WlRZ
|
58
|
+
JTNELS1mZmQ1OGVmYzAwZGMwYmMzZTEwOTE1NmQyNDllOTMwYzRhMjgzZDBj
|
59
|
+
OyBkb21haW49LnBhcnNlLmNvbTsgcGF0aD0vOyBleHBpcmVzPVN1biwgMDkt
|
60
|
+
T2N0LTIwMjIgMjE6NDU6MzIgR01UOyBzZWN1cmU7IEh0dHBPbmx5
|
61
|
+
!binary "U3RhdHVz":
|
62
|
+
- !binary |-
|
63
|
+
MjAxIENyZWF0ZWQ=
|
64
|
+
!binary "WC1SdW50aW1l":
|
65
|
+
- !binary |-
|
66
|
+
MC4wMTM2NTU=
|
67
|
+
!binary "WC1VYS1Db21wYXRpYmxl":
|
68
|
+
- !binary |-
|
69
|
+
SUU9RWRnZSxjaHJvbWU9MQ==
|
70
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
71
|
+
- !binary |-
|
72
|
+
NjQ=
|
73
|
+
!binary "Q29ubmVjdGlvbg==":
|
74
|
+
- !binary |-
|
75
|
+
a2VlcC1hbGl2ZQ==
|
76
|
+
body:
|
77
|
+
encoding: ASCII-8BIT
|
78
|
+
string: !binary |-
|
79
|
+
eyJjcmVhdGVkQXQiOiIyMDEyLTEwLTA5VDIxOjQ1OjMyLjcxNloiLCJvYmpl
|
80
|
+
Y3RJZCI6IkVEUHEyZmhEUjQifQ==
|
81
|
+
http_version:
|
82
|
+
recorded_at: Tue, 09 Oct 2012 21:45:32 GMT
|
83
|
+
- request:
|
84
|
+
method: get
|
85
|
+
uri: https://api.parse.com/1/classes/Post/EDPq2fhDR4
|
86
|
+
body:
|
87
|
+
encoding: US-ASCII
|
88
|
+
string: ''
|
89
|
+
headers:
|
90
|
+
Content-Type:
|
91
|
+
- application/json
|
92
|
+
Accept:
|
93
|
+
- application/json
|
94
|
+
User-Agent:
|
95
|
+
- Parse for Ruby, 0.0
|
96
|
+
X-Parse-Master-Key:
|
97
|
+
- ''
|
98
|
+
X-Parse-Rest-Api-Key:
|
99
|
+
- D3Y8jNCQk6kpkKhpRGnWLYTrFGQ7j8dtDVnWZRnZ
|
100
|
+
X-Parse-Application-Id:
|
101
|
+
- PPVk6L5M9R1R8GVk8Ye9jT8f5SQNBIeoJUDJLmkT
|
102
|
+
X-Parse-Session-Token:
|
103
|
+
- ''
|
104
|
+
Expect:
|
105
|
+
- ''
|
106
|
+
response:
|
107
|
+
status:
|
108
|
+
code: 200
|
109
|
+
message: !binary |-
|
110
|
+
T0s=
|
111
|
+
headers:
|
112
|
+
!binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
|
113
|
+
- !binary |-
|
114
|
+
Kg==
|
115
|
+
!binary "QWNjZXNzLUNvbnRyb2wtUmVxdWVzdC1NZXRob2Q=":
|
116
|
+
- !binary |-
|
117
|
+
Kg==
|
118
|
+
!binary "Q2FjaGUtQ29udHJvbA==":
|
119
|
+
- !binary |-
|
120
|
+
bWF4LWFnZT0wLCBwcml2YXRlLCBtdXN0LXJldmFsaWRhdGU=
|
121
|
+
!binary "Q29udGVudC1UeXBl":
|
122
|
+
- !binary |-
|
123
|
+
YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
|
124
|
+
!binary "RGF0ZQ==":
|
125
|
+
- !binary |-
|
126
|
+
VHVlLCAwOSBPY3QgMjAxMiAyMTo0NTozMiBHTVQ=
|
127
|
+
!binary "RXRhZw==":
|
128
|
+
- !binary |-
|
129
|
+
IjU2YzU5MTZlZDdiOTlhMzhkZmFhNzVkZGNmNWI1YTNmIg==
|
130
|
+
!binary "U2VydmVy":
|
131
|
+
- !binary |-
|
132
|
+
bmdpbngvMS4yLjI=
|
133
|
+
!binary "U2V0LUNvb2tpZQ==":
|
134
|
+
- !binary |-
|
135
|
+
X3BhcnNlX3Nlc3Npb249QkFoN0Jra2lEM05sYzNOcGIyNWZhV1FHT2daRlJp
|
136
|
+
SWxaVFEwWlRobE5tSTNZVFpoWm1JMU1UUTJPV0kyWXpZNVpqaGhOMk00T0dF
|
137
|
+
JTNELS01NjMwYjQ3N2RkZjQ1ZTFkZjJlODVjMDk2ZDhhYjk2YjNiYWY5OTgw
|
138
|
+
OyBkb21haW49LnBhcnNlLmNvbTsgcGF0aD0vOyBleHBpcmVzPVN1biwgMDkt
|
139
|
+
T2N0LTIwMjIgMjE6NDU6MzIgR01UOyBzZWN1cmU7IEh0dHBPbmx5
|
140
|
+
!binary "U3RhdHVz":
|
141
|
+
- !binary |-
|
142
|
+
MjAwIE9L
|
143
|
+
!binary "WC1SdW50aW1l":
|
144
|
+
- !binary |-
|
145
|
+
MC4wMzQ1NjY=
|
146
|
+
!binary "WC1VYS1Db21wYXRpYmxl":
|
147
|
+
- !binary |-
|
148
|
+
SUU9RWRnZSxjaHJvbWU9MQ==
|
149
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
150
|
+
- !binary |-
|
151
|
+
MTE3
|
152
|
+
!binary "Q29ubmVjdGlvbg==":
|
153
|
+
- !binary |-
|
154
|
+
a2VlcC1hbGl2ZQ==
|
155
|
+
body:
|
156
|
+
encoding: ASCII-8BIT
|
157
|
+
string: !binary |-
|
158
|
+
eyJ0aXRsZSI6ImZvbyIsImNyZWF0ZWRBdCI6IjIwMTItMTAtMDlUMjE6NDU6
|
159
|
+
MzIuNzE2WiIsInVwZGF0ZWRBdCI6IjIwMTItMTAtMDlUMjE6NDU6MzIuNzE2
|
160
|
+
WiIsIm9iamVjdElkIjoiRURQcTJmaERSNCJ9
|
161
|
+
http_version:
|
162
|
+
recorded_at: Tue, 09 Oct 2012 21:45:33 GMT
|
163
|
+
recorded_with: VCR 2.0.1
|
@@ -0,0 +1,83 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.parse.com/1/classes/Post
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{}'
|
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
|
+
- D3Y8jNCQk6kpkKhpRGnWLYTrFGQ7j8dtDVnWZRnZ
|
20
|
+
X-Parse-Application-Id:
|
21
|
+
- PPVk6L5M9R1R8GVk8Ye9jT8f5SQNBIeoJUDJLmkT
|
22
|
+
X-Parse-Session-Token:
|
23
|
+
- ''
|
24
|
+
Expect:
|
25
|
+
- ''
|
26
|
+
response:
|
27
|
+
status:
|
28
|
+
code: 201
|
29
|
+
message: !binary |-
|
30
|
+
Q3JlYXRlZA==
|
31
|
+
headers:
|
32
|
+
!binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
|
33
|
+
- !binary |-
|
34
|
+
Kg==
|
35
|
+
!binary "QWNjZXNzLUNvbnRyb2wtUmVxdWVzdC1NZXRob2Q=":
|
36
|
+
- !binary |-
|
37
|
+
Kg==
|
38
|
+
!binary "Q2FjaGUtQ29udHJvbA==":
|
39
|
+
- !binary |-
|
40
|
+
bm8tY2FjaGU=
|
41
|
+
!binary "Q29udGVudC1UeXBl":
|
42
|
+
- !binary |-
|
43
|
+
YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
|
44
|
+
!binary "RGF0ZQ==":
|
45
|
+
- !binary |-
|
46
|
+
VHVlLCAwOSBPY3QgMjAxMiAyMTo0NTozMCBHTVQ=
|
47
|
+
!binary "TG9jYXRpb24=":
|
48
|
+
- !binary |-
|
49
|
+
aHR0cHM6Ly9hcGkucGFyc2UuY29tLzEvY2xhc3Nlcy9Qb3N0L09vdEtkRlR3
|
50
|
+
d3M=
|
51
|
+
!binary "U2VydmVy":
|
52
|
+
- !binary |-
|
53
|
+
bmdpbngvMS4yLjI=
|
54
|
+
!binary "U2V0LUNvb2tpZQ==":
|
55
|
+
- !binary |-
|
56
|
+
X3BhcnNlX3Nlc3Npb249QkFoN0Jra2lEM05sYzNOcGIyNWZhV1FHT2daRlJp
|
57
|
+
SWxNek13T0dNMk5qWmlZVEE0TURnd1lqWTFOV1V4WldZellUbG1NVGhoWVRn
|
58
|
+
JTNELS0yOGM4NTE4YTk1YTlhODc0YWIwZWMyMTY5NmE0Y2MwNGEzNTcwZDAy
|
59
|
+
OyBkb21haW49LnBhcnNlLmNvbTsgcGF0aD0vOyBleHBpcmVzPVN1biwgMDkt
|
60
|
+
T2N0LTIwMjIgMjE6NDU6MzAgR01UOyBzZWN1cmU7IEh0dHBPbmx5
|
61
|
+
!binary "U3RhdHVz":
|
62
|
+
- !binary |-
|
63
|
+
MjAxIENyZWF0ZWQ=
|
64
|
+
!binary "WC1SdW50aW1l":
|
65
|
+
- !binary |-
|
66
|
+
MC4xNDEwNDU=
|
67
|
+
!binary "WC1VYS1Db21wYXRpYmxl":
|
68
|
+
- !binary |-
|
69
|
+
SUU9RWRnZSxjaHJvbWU9MQ==
|
70
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
71
|
+
- !binary |-
|
72
|
+
NjQ=
|
73
|
+
!binary "Q29ubmVjdGlvbg==":
|
74
|
+
- !binary |-
|
75
|
+
a2VlcC1hbGl2ZQ==
|
76
|
+
body:
|
77
|
+
encoding: ASCII-8BIT
|
78
|
+
string: !binary |-
|
79
|
+
eyJjcmVhdGVkQXQiOiIyMDEyLTEwLTA5VDIxOjQ1OjI5Ljg3NFoiLCJvYmpl
|
80
|
+
Y3RJZCI6Ik9vdEtkRlR3d3MifQ==
|
81
|
+
http_version:
|
82
|
+
recorded_at: Tue, 09 Oct 2012 21:45:30 GMT
|
83
|
+
recorded_with: VCR 2.0.1
|
@@ -0,0 +1,241 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.parse.com/1/classes/Post
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ! '{"title":"hello"}'
|
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
|
+
- D3Y8jNCQk6kpkKhpRGnWLYTrFGQ7j8dtDVnWZRnZ
|
20
|
+
X-Parse-Application-Id:
|
21
|
+
- PPVk6L5M9R1R8GVk8Ye9jT8f5SQNBIeoJUDJLmkT
|
22
|
+
X-Parse-Session-Token:
|
23
|
+
- ''
|
24
|
+
Expect:
|
25
|
+
- ''
|
26
|
+
response:
|
27
|
+
status:
|
28
|
+
code: 201
|
29
|
+
message: !binary |-
|
30
|
+
Q3JlYXRlZA==
|
31
|
+
headers:
|
32
|
+
!binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
|
33
|
+
- !binary |-
|
34
|
+
Kg==
|
35
|
+
!binary "QWNjZXNzLUNvbnRyb2wtUmVxdWVzdC1NZXRob2Q=":
|
36
|
+
- !binary |-
|
37
|
+
Kg==
|
38
|
+
!binary "Q2FjaGUtQ29udHJvbA==":
|
39
|
+
- !binary |-
|
40
|
+
bm8tY2FjaGU=
|
41
|
+
!binary "Q29udGVudC1UeXBl":
|
42
|
+
- !binary |-
|
43
|
+
YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
|
44
|
+
!binary "RGF0ZQ==":
|
45
|
+
- !binary |-
|
46
|
+
VHVlLCAwOSBPY3QgMjAxMiAyMTo0NTozMSBHTVQ=
|
47
|
+
!binary "TG9jYXRpb24=":
|
48
|
+
- !binary |-
|
49
|
+
aHR0cHM6Ly9hcGkucGFyc2UuY29tLzEvY2xhc3Nlcy9Qb3N0L3g5Tmk5RkM2
|
50
|
+
clU=
|
51
|
+
!binary "U2VydmVy":
|
52
|
+
- !binary |-
|
53
|
+
bmdpbngvMS4yLjI=
|
54
|
+
!binary "U2V0LUNvb2tpZQ==":
|
55
|
+
- !binary |-
|
56
|
+
X3BhcnNlX3Nlc3Npb249QkFoN0Jra2lEM05sYzNOcGIyNWZhV1FHT2daRlJp
|
57
|
+
SWxaR0poWkdJM05EQm1OVFkwT1RZd1lXVmlObU5tTlRkbVkySXpPVGRtWTJF
|
58
|
+
JTNELS05YzRkMTE3M2ZkZDI4ODcyNzU3NmUxOTIzOWM3MmIxN2Q0N2MxMDkw
|
59
|
+
OyBkb21haW49LnBhcnNlLmNvbTsgcGF0aD0vOyBleHBpcmVzPVN1biwgMDkt
|
60
|
+
T2N0LTIwMjIgMjE6NDU6MzEgR01UOyBzZWN1cmU7IEh0dHBPbmx5
|
61
|
+
!binary "U3RhdHVz":
|
62
|
+
- !binary |-
|
63
|
+
MjAxIENyZWF0ZWQ=
|
64
|
+
!binary "WC1SdW50aW1l":
|
65
|
+
- !binary |-
|
66
|
+
MC4wMTU4OTA=
|
67
|
+
!binary "WC1VYS1Db21wYXRpYmxl":
|
68
|
+
- !binary |-
|
69
|
+
SUU9RWRnZSxjaHJvbWU9MQ==
|
70
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
71
|
+
- !binary |-
|
72
|
+
NjQ=
|
73
|
+
!binary "Q29ubmVjdGlvbg==":
|
74
|
+
- !binary |-
|
75
|
+
a2VlcC1hbGl2ZQ==
|
76
|
+
body:
|
77
|
+
encoding: ASCII-8BIT
|
78
|
+
string: !binary |-
|
79
|
+
eyJjcmVhdGVkQXQiOiIyMDEyLTEwLTA5VDIxOjQ1OjMxLjIxN1oiLCJvYmpl
|
80
|
+
Y3RJZCI6Ing5Tmk5RkM2clUifQ==
|
81
|
+
http_version:
|
82
|
+
recorded_at: Tue, 09 Oct 2012 21:45:31 GMT
|
83
|
+
- request:
|
84
|
+
method: put
|
85
|
+
uri: https://api.parse.com/1/classes/Post/x9Ni9FC6rU
|
86
|
+
body:
|
87
|
+
encoding: UTF-8
|
88
|
+
string: ! '{"title":{"__op":"Delete"}}'
|
89
|
+
headers:
|
90
|
+
Content-Type:
|
91
|
+
- application/json
|
92
|
+
Accept:
|
93
|
+
- application/json
|
94
|
+
User-Agent:
|
95
|
+
- Parse for Ruby, 0.0
|
96
|
+
X-Parse-Master-Key:
|
97
|
+
- ''
|
98
|
+
X-Parse-Rest-Api-Key:
|
99
|
+
- D3Y8jNCQk6kpkKhpRGnWLYTrFGQ7j8dtDVnWZRnZ
|
100
|
+
X-Parse-Application-Id:
|
101
|
+
- PPVk6L5M9R1R8GVk8Ye9jT8f5SQNBIeoJUDJLmkT
|
102
|
+
X-Parse-Session-Token:
|
103
|
+
- ''
|
104
|
+
Expect:
|
105
|
+
- ''
|
106
|
+
response:
|
107
|
+
status:
|
108
|
+
code: 200
|
109
|
+
message: !binary |-
|
110
|
+
T0s=
|
111
|
+
headers:
|
112
|
+
!binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
|
113
|
+
- !binary |-
|
114
|
+
Kg==
|
115
|
+
!binary "QWNjZXNzLUNvbnRyb2wtUmVxdWVzdC1NZXRob2Q=":
|
116
|
+
- !binary |-
|
117
|
+
Kg==
|
118
|
+
!binary "Q2FjaGUtQ29udHJvbA==":
|
119
|
+
- !binary |-
|
120
|
+
bWF4LWFnZT0wLCBwcml2YXRlLCBtdXN0LXJldmFsaWRhdGU=
|
121
|
+
!binary "Q29udGVudC1UeXBl":
|
122
|
+
- !binary |-
|
123
|
+
YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
|
124
|
+
!binary "RGF0ZQ==":
|
125
|
+
- !binary |-
|
126
|
+
VHVlLCAwOSBPY3QgMjAxMiAyMTo0NTozMSBHTVQ=
|
127
|
+
!binary "RXRhZw==":
|
128
|
+
- !binary |-
|
129
|
+
ImMzMTVlMGI3MjQ1Mzg5NTNhODg1NDA3Y2U3NjE5M2JhIg==
|
130
|
+
!binary "U2VydmVy":
|
131
|
+
- !binary |-
|
132
|
+
bmdpbngvMS4yLjI=
|
133
|
+
!binary "U2V0LUNvb2tpZQ==":
|
134
|
+
- !binary |-
|
135
|
+
X3BhcnNlX3Nlc3Npb249QkFoN0Jra2lEM05sYzNOcGIyNWZhV1FHT2daRlJp
|
136
|
+
SWxOVEppWmpkbVlqbGlPVEExTlRBNVlUQmhabVV3T1dVeVpUVTROV1l4WVRJ
|
137
|
+
JTNELS02YmQzOTUzNmViOTM3NzBkN2JhYmE4YTM5N2E0ZTM1NjJlNDNhN2E1
|
138
|
+
OyBkb21haW49LnBhcnNlLmNvbTsgcGF0aD0vOyBleHBpcmVzPVN1biwgMDkt
|
139
|
+
T2N0LTIwMjIgMjE6NDU6MzEgR01UOyBzZWN1cmU7IEh0dHBPbmx5
|
140
|
+
!binary "U3RhdHVz":
|
141
|
+
- !binary |-
|
142
|
+
MjAwIE9L
|
143
|
+
!binary "WC1SdW50aW1l":
|
144
|
+
- !binary |-
|
145
|
+
MC4wNDEzOTI=
|
146
|
+
!binary "WC1VYS1Db21wYXRpYmxl":
|
147
|
+
- !binary |-
|
148
|
+
SUU9RWRnZSxjaHJvbWU9MQ==
|
149
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
150
|
+
- !binary |-
|
151
|
+
NDA=
|
152
|
+
!binary "Q29ubmVjdGlvbg==":
|
153
|
+
- !binary |-
|
154
|
+
a2VlcC1hbGl2ZQ==
|
155
|
+
body:
|
156
|
+
encoding: ASCII-8BIT
|
157
|
+
string: !binary |-
|
158
|
+
eyJ1cGRhdGVkQXQiOiIyMDEyLTEwLTA5VDIxOjQ1OjMxLjMyNVoifQ==
|
159
|
+
http_version:
|
160
|
+
recorded_at: Tue, 09 Oct 2012 21:45:31 GMT
|
161
|
+
- request:
|
162
|
+
method: get
|
163
|
+
uri: https://api.parse.com/1/classes/Post/x9Ni9FC6rU
|
164
|
+
body:
|
165
|
+
encoding: US-ASCII
|
166
|
+
string: ''
|
167
|
+
headers:
|
168
|
+
Content-Type:
|
169
|
+
- application/json
|
170
|
+
Accept:
|
171
|
+
- application/json
|
172
|
+
User-Agent:
|
173
|
+
- Parse for Ruby, 0.0
|
174
|
+
X-Parse-Master-Key:
|
175
|
+
- ''
|
176
|
+
X-Parse-Rest-Api-Key:
|
177
|
+
- D3Y8jNCQk6kpkKhpRGnWLYTrFGQ7j8dtDVnWZRnZ
|
178
|
+
X-Parse-Application-Id:
|
179
|
+
- PPVk6L5M9R1R8GVk8Ye9jT8f5SQNBIeoJUDJLmkT
|
180
|
+
X-Parse-Session-Token:
|
181
|
+
- ''
|
182
|
+
Expect:
|
183
|
+
- ''
|
184
|
+
response:
|
185
|
+
status:
|
186
|
+
code: 200
|
187
|
+
message: !binary |-
|
188
|
+
T0s=
|
189
|
+
headers:
|
190
|
+
!binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
|
191
|
+
- !binary |-
|
192
|
+
Kg==
|
193
|
+
!binary "QWNjZXNzLUNvbnRyb2wtUmVxdWVzdC1NZXRob2Q=":
|
194
|
+
- !binary |-
|
195
|
+
Kg==
|
196
|
+
!binary "Q2FjaGUtQ29udHJvbA==":
|
197
|
+
- !binary |-
|
198
|
+
bWF4LWFnZT0wLCBwcml2YXRlLCBtdXN0LXJldmFsaWRhdGU=
|
199
|
+
!binary "Q29udGVudC1UeXBl":
|
200
|
+
- !binary |-
|
201
|
+
YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
|
202
|
+
!binary "RGF0ZQ==":
|
203
|
+
- !binary |-
|
204
|
+
VHVlLCAwOSBPY3QgMjAxMiAyMTo0NTozMSBHTVQ=
|
205
|
+
!binary "RXRhZw==":
|
206
|
+
- !binary |-
|
207
|
+
IjU4YWU4OWE5OWYwZWNhODBkMjJmY2JkZWQzYzczYzIwIg==
|
208
|
+
!binary "U2VydmVy":
|
209
|
+
- !binary |-
|
210
|
+
bmdpbngvMS4yLjI=
|
211
|
+
!binary "U2V0LUNvb2tpZQ==":
|
212
|
+
- !binary |-
|
213
|
+
X3BhcnNlX3Nlc3Npb249QkFoN0Jra2lEM05sYzNOcGIyNWZhV1FHT2daRlJp
|
214
|
+
SWxZbUpsWWpCalkySm1aVEEwTkRObU5tWXdPR1JtTTJGaE16YzFNR0ZpTXpJ
|
215
|
+
JTNELS1lOWFiYmZjNjhlOTNlM2U0NGMzZDEyZWFkNDZhNDg0MzdkMjhkOGVh
|
216
|
+
OyBkb21haW49LnBhcnNlLmNvbTsgcGF0aD0vOyBleHBpcmVzPVN1biwgMDkt
|
217
|
+
T2N0LTIwMjIgMjE6NDU6MzEgR01UOyBzZWN1cmU7IEh0dHBPbmx5
|
218
|
+
!binary "U3RhdHVz":
|
219
|
+
- !binary |-
|
220
|
+
MjAwIE9L
|
221
|
+
!binary "WC1SdW50aW1l":
|
222
|
+
- !binary |-
|
223
|
+
MC4wMzg5OTg=
|
224
|
+
!binary "WC1VYS1Db21wYXRpYmxl":
|
225
|
+
- !binary |-
|
226
|
+
SUU9RWRnZSxjaHJvbWU9MQ==
|
227
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
228
|
+
- !binary |-
|
229
|
+
MTAz
|
230
|
+
!binary "Q29ubmVjdGlvbg==":
|
231
|
+
- !binary |-
|
232
|
+
a2VlcC1hbGl2ZQ==
|
233
|
+
body:
|
234
|
+
encoding: ASCII-8BIT
|
235
|
+
string: !binary |-
|
236
|
+
eyJjcmVhdGVkQXQiOiIyMDEyLTEwLTA5VDIxOjQ1OjMxLjIxN1oiLCJ1cGRh
|
237
|
+
dGVkQXQiOiIyMDEyLTEwLTA5VDIxOjQ1OjMxLjMyNVoiLCJvYmplY3RJZCI6
|
238
|
+
Ing5Tmk5RkM2clUifQ==
|
239
|
+
http_version:
|
240
|
+
recorded_at: Tue, 09 Oct 2012 21:45:31 GMT
|
241
|
+
recorded_with: VCR 2.0.1
|