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,99 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.leancloud.cn/1.1/classes/Post
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"title":"foo"}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Parse for Ruby, 0.0
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
X-Avoscloud-Application-Id:
|
15
|
+
- <X-AVOSCloud-Application-Id>
|
16
|
+
X-Avoscloud-Application-Key:
|
17
|
+
- <X-AVOSCloud-Application-Key>
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
Accept:
|
21
|
+
- '*/*'
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 201
|
25
|
+
message: Created
|
26
|
+
headers:
|
27
|
+
Server:
|
28
|
+
- Tengine
|
29
|
+
Date:
|
30
|
+
- Fri, 10 Apr 2015 09:57:15 GMT
|
31
|
+
Content-Type:
|
32
|
+
- application/json;charset=utf-8
|
33
|
+
Content-Length:
|
34
|
+
- '78'
|
35
|
+
Connection:
|
36
|
+
- keep-alive
|
37
|
+
Location:
|
38
|
+
- /1.1/classes/Post/55279e7be4b0da2c5df03632
|
39
|
+
Cache-Control:
|
40
|
+
- no-cache,no-store
|
41
|
+
Pragma:
|
42
|
+
- no-cache
|
43
|
+
Strict-Transport-Security:
|
44
|
+
- max-age=31536000
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"createdAt":"2015-04-10T09:57:15.873Z","objectId":"55279e7be4b0da2c5df03632"}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Fri, 10 Apr 2015 09:57:15 GMT
|
50
|
+
- request:
|
51
|
+
method: get
|
52
|
+
uri: https://api.leancloud.cn/1.1/cloudQuery?cql=select%20*,count(*)%20from%20Post&pvalues=%5B%5D
|
53
|
+
body:
|
54
|
+
encoding: US-ASCII
|
55
|
+
string: ''
|
56
|
+
headers:
|
57
|
+
User-Agent:
|
58
|
+
- Parse for Ruby, 0.0
|
59
|
+
Content-Type:
|
60
|
+
- application/json
|
61
|
+
X-Avoscloud-Application-Id:
|
62
|
+
- <X-AVOSCloud-Application-Id>
|
63
|
+
X-Avoscloud-Application-Key:
|
64
|
+
- <X-AVOSCloud-Application-Key>
|
65
|
+
Accept-Encoding:
|
66
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
67
|
+
Accept:
|
68
|
+
- '*/*'
|
69
|
+
response:
|
70
|
+
status:
|
71
|
+
code: 200
|
72
|
+
message: OK
|
73
|
+
headers:
|
74
|
+
Server:
|
75
|
+
- Tengine
|
76
|
+
Date:
|
77
|
+
- Fri, 10 Apr 2015 09:59:34 GMT
|
78
|
+
Content-Type:
|
79
|
+
- application/json;charset=utf-8
|
80
|
+
Transfer-Encoding:
|
81
|
+
- chunked
|
82
|
+
Connection:
|
83
|
+
- keep-alive
|
84
|
+
Cache-Control:
|
85
|
+
- no-cache,no-store
|
86
|
+
Pragma:
|
87
|
+
- no-cache
|
88
|
+
Strict-Transport-Security:
|
89
|
+
- max-age=31536000
|
90
|
+
body:
|
91
|
+
encoding: UTF-8
|
92
|
+
string: '{"results":[{"title":"foo","createdAt":"2015-04-09T03:44:40.580Z","updatedAt":"2015-04-09T03:44:40.580Z","objectId":"5525f5a8e4b06a6fc7f09533"},{"other":{"__type":"Pointer","className":"Post","objectId":"5525f51be4b06a6fc7f0914e"},"title":"bar","createdAt":"2015-04-09T03:42:19.468Z","updatedAt":"2015-04-09T03:42:19.468Z","objectId":"5525f51be4b06a6fc7f09152"},{"createdAt":"2015-04-09T23:59:54.063Z","updatedAt":"2015-04-09T23:59:54.063Z","objectId":"5527127ae4b0f5436834ecd0"},{"createdAt":"2015-04-09T23:49:13.226Z","updatedAt":"2015-04-09T23:49:13.226Z","objectId":"55270ff9e4b0f5436834e1c3"},{"other":{"__type":"Pointer","className":"Post","objectId":"5525f59ae4b06a6fc7f094c5"},"createdAt":"2015-04-09T03:44:27.245Z","updatedAt":"2015-04-09T03:44:27.245Z","objectId":"5525f59be4b06a6fc7f094c7"},{"updatedAt":"2015-04-09T03:41:59.188Z","createdAt":"2015-04-09T03:41:58.333Z","comments":[{"__type":"Pointer","className":"Comment","objectId":"5525f506e4b06a6fc7f090af"}],"objectId":"5525f506e4b06a6fc7f090ae"},{"comments":[{"__type":"Pointer","className":"Comment","objectId":"5525f505e4b06a6fc7f090a7"}],"createdAt":"2015-04-09T03:41:57.715Z","updatedAt":"2015-04-09T03:41:57.715Z","objectId":"5525f505e4b06a6fc7f090aa"},{"title":"foo","createdAt":"2015-04-09T03:44:39.728Z","updatedAt":"2015-04-09T03:44:39.728Z","objectId":"5525f5a7e4b06a6fc7f0952b"},{"createdAt":"2015-04-09T23:49:10.731Z","updatedAt":"2015-04-09T23:49:10.731Z","objectId":"55270ff6e4b0f5436834e1b5"},{"updatedAt":"2015-04-09T03:44:23.631Z","createdAt":"2015-04-09T03:44:23.291Z","chapters":["hello","goodbye"],"objectId":"5525f597e4b06a6fc7f094ae"},{"createdAt":"2015-04-09T23:47:14.604Z","updatedAt":"2015-04-09T23:47:14.604Z","objectId":"55270f82e4b0f5436834deb6"},{"title":"foo","createdAt":"2015-04-09T03:44:39.167Z","updatedAt":"2015-04-09T03:44:39.167Z","objectId":"5525f5a7e4b06a6fc7f09525"},{"random":0.1393653518584047,"createdAt":"2015-04-09T03:44:42.144Z","updatedAt":"2015-04-09T03:44:42.144Z","objectId":"5525f5aae4b06a6fc7f09542"},{"createdAt":"2015-04-09T23:47:12.675Z","updatedAt":"2015-04-09T23:47:12.675Z","objectId":"55270f80e4b0f5436834deae"},{"title":"foo","createdAt":"2015-04-09T03:44:37.348Z","updatedAt":"2015-04-09T03:44:37.348Z","objectId":"5525f5a5e4b06a6fc7f09511"},{"updatedAt":"2015-04-09T03:44:33.962Z","title":"hello
|
93
|
+
2","createdAt":"2015-04-09T03:44:33.556Z","objectId":"5525f5a1e4b06a6fc7f094f6"},{"updatedAt":"2015-04-09T03:44:29.479Z","createdAt":"2015-04-09T03:44:29.156Z","objectId":"5525f59de4b06a6fc7f094d8"},{"updatedAt":"2015-04-09T03:44:26.635Z","createdAt":"2015-04-09T03:44:26.297Z","count":0,"objectId":"5525f59ae4b06a6fc7f094c1"},{"location":{"longitude":40.0,"latitude":-30.0,"__type":"GeoPoint"},"createdAt":"2015-04-09T03:41:50.220Z","updatedAt":"2015-04-09T03:41:50.220Z","objectId":"5525f4fee4b06a6fc7f09071"},{"createdAt":"2015-04-09T23:47:11.186Z","updatedAt":"2015-04-09T23:47:11.186Z","objectId":"55270f7fe4b0f5436834dea5"},{"createdAt":"2015-04-09T23:47:10.431Z","updatedAt":"2015-04-09T23:47:10.431Z","objectId":"55270f7ee4b0f5436834de9b"},{"time":{"iso":"1970-01-01T00:00:00.000Z","__type":"Date"},"createdAt":"2015-04-09T03:44:18.164Z","updatedAt":"2015-04-09T03:44:18.164Z","objectId":"5525f592e4b06a6fc7f09481"},{"random":0.9190024386786158,"createdAt":"2015-04-09T03:43:43.920Z","updatedAt":"2015-04-09T03:43:43.920Z","objectId":"5525f56fe4b06a6fc7f09390"},{"random":0.3784856930913485,"createdAt":"2015-04-09T03:43:43.262Z","updatedAt":"2015-04-09T03:43:43.262Z","objectId":"5525f56fe4b06a6fc7f0938a"},{"location":{"longitude":40.0,"latitude":-30.0,"__type":"GeoPoint"},"createdAt":"2015-04-09T03:40:38.050Z","updatedAt":"2015-04-09T03:40:38.050Z","objectId":"5525f4b6e4b06a6fc7f08e47"},{"random":0.7769413073595881,"createdAt":"2015-04-09T03:44:41.564Z","updatedAt":"2015-04-09T03:44:41.564Z","objectId":"5525f5a9e4b06a6fc7f0953c"},{"time":{"iso":"1970-01-01T00:00:00.000Z","__type":"Date"},"createdAt":"2015-04-09T03:43:36.736Z","updatedAt":"2015-04-09T03:43:36.736Z","objectId":"5525f568e4b06a6fc7f09362"},{"random":0.5069919436537267,"createdAt":"2015-04-09T03:42:23.174Z","updatedAt":"2015-04-09T03:42:23.174Z","objectId":"5525f51fe4b06a6fc7f09171"},{"random":0.21879386968034498,"createdAt":"2015-04-09T03:42:22.548Z","updatedAt":"2015-04-09T03:42:22.548Z","objectId":"5525f51ee4b06a6fc7f0916a"},{"location":{"longitude":40.0,"latitude":-30.0,"__type":"GeoPoint"},"createdAt":"2015-04-09T03:37:37.982Z","updatedAt":"2015-04-09T03:37:37.982Z","objectId":"5525f401e4b06a6fc7f08a18"},{"title":"foo","createdAt":"2015-04-09T03:44:40.859Z","updatedAt":"2015-04-09T03:44:40.859Z","objectId":"5525f5a8e4b06a6fc7f09537"},{"title":"foo","createdAt":"2015-04-09T03:42:21.778Z","updatedAt":"2015-04-09T03:42:21.778Z","objectId":"5525f51de4b06a6fc7f09160"},{"title":"foo","createdAt":"2015-04-09T03:42:20.182Z","updatedAt":"2015-04-09T03:42:20.182Z","objectId":"5525f51ce4b06a6fc7f09155"},{"title":"foo","createdAt":"2015-04-09T03:42:19.162Z","updatedAt":"2015-04-09T03:42:19.162Z","objectId":"5525f51be4b06a6fc7f0914e"},{"location":{"longitude":40.0,"latitude":-30.0,"__type":"GeoPoint"},"createdAt":"2015-04-09T03:36:11.013Z","updatedAt":"2015-04-09T03:36:11.013Z","objectId":"5525f3abe4b06a6fc7f0880c"},{"published":true,"read":false,"createdAt":"2015-04-09T03:44:32.980Z","updatedAt":"2015-04-09T03:44:32.980Z","objectId":"5525f5a0e4b06a6fc7f094f4"},{"title":"foo","createdAt":"2015-04-09T03:42:18.443Z","updatedAt":"2015-04-09T03:42:18.443Z","objectId":"5525f51ae4b06a6fc7f09147"},{"title":"foo","createdAt":"2015-04-09T03:42:16.613Z","updatedAt":"2015-04-09T03:42:16.613Z","objectId":"5525f518e4b06a6fc7f0913b"},{"createdAt":"2015-04-09T23:59:56.678Z","updatedAt":"2015-04-09T23:59:56.678Z","objectId":"5527127ce4b0f5436834ece1"},{"createdAt":"2015-04-09T23:49:17.224Z","updatedAt":"2015-04-09T23:49:17.224Z","objectId":"55270ffde4b0f5436834e1df"},{"createdAt":"2015-04-09T23:49:15.362Z","updatedAt":"2015-04-09T23:49:15.362Z","objectId":"55270ffbe4b0f5436834e1d3"},{"createdAt":"2015-04-09T23:49:14.002Z","updatedAt":"2015-04-09T23:49:14.002Z","objectId":"55270ffae4b0f5436834e1cb"},{"createdAt":"2015-04-09T23:47:07.969Z","updatedAt":"2015-04-09T23:47:07.969Z","objectId":"55270f7be4b0f5436834de91"},{"createdAt":"2015-04-09T03:52:11.641Z","updatedAt":"2015-04-09T03:52:11.641Z","objectId":"5525f76be4b06a6fc7f0a291"},{"createdAt":"2015-04-09T03:52:07.627Z","updatedAt":"2015-04-09T03:52:07.627Z","objectId":"5525f767e4b06a6fc7f0a26f"},{"createdAt":"2015-04-09T03:52:05.695Z","updatedAt":"2015-04-09T03:52:05.695Z","objectId":"5525f765e4b06a6fc7f0a25f"},{"title":"hello
|
94
|
+
world","createdAt":"2015-04-09T03:44:29.970Z","updatedAt":"2015-04-09T03:44:29.970Z","objectId":"5525f59de4b06a6fc7f094dc"},{"createdAt":"2015-04-09T03:52:04.648Z","updatedAt":"2015-04-09T03:52:04.648Z","objectId":"5525f764e4b06a6fc7f0a25a"},{"createdAt":"2015-04-09T03:52:00.266Z","updatedAt":"2015-04-09T03:52:00.266Z","objectId":"5525f760e4b06a6fc7f0a23f"},{"createdAt":"2015-04-09T03:47:30.273Z","updatedAt":"2015-04-09T03:47:30.273Z","objectId":"5525f652e4b06a6fc7f09b3f"},{"createdAt":"2015-04-09T03:47:27.736Z","updatedAt":"2015-04-09T03:47:27.736Z","objectId":"5525f64fe4b06a6fc7f09b28"},{"createdAt":"2015-04-09T03:47:26.099Z","updatedAt":"2015-04-09T03:47:26.099Z","objectId":"5525f64ee4b06a6fc7f09b19"},{"createdAt":"2015-04-09T03:47:25.169Z","updatedAt":"2015-04-09T03:47:25.169Z","objectId":"5525f64de4b06a6fc7f09b0d"},{"createdAt":"2015-04-09T03:47:21.867Z","updatedAt":"2015-04-09T03:47:21.867Z","objectId":"5525f649e4b06a6fc7f09af0"},{"createdAt":"2015-04-09T03:46:15.779Z","updatedAt":"2015-04-09T03:46:15.779Z","objectId":"5525f607e4b06a6fc7f098b6"},{"createdAt":"2015-04-09T03:46:13.012Z","updatedAt":"2015-04-09T03:46:13.012Z","objectId":"5525f605e4b06a6fc7f09896"},{"createdAt":"2015-04-09T03:46:10.811Z","updatedAt":"2015-04-09T03:46:10.811Z","objectId":"5525f602e4b06a6fc7f0987d"},{"createdAt":"2015-04-09T03:46:09.571Z","updatedAt":"2015-04-09T03:46:09.571Z","objectId":"5525f601e4b06a6fc7f09874"},{"createdAt":"2015-04-09T03:46:05.129Z","updatedAt":"2015-04-09T03:46:05.129Z","objectId":"5525f5fde4b06a6fc7f09859"},{"createdAt":"2015-04-09T03:44:31.371Z","updatedAt":"2015-04-09T03:44:31.371Z","objectId":"5525f59fe4b06a6fc7f094e8"},{"createdAt":"2015-04-09T03:42:07.767Z","updatedAt":"2015-04-09T03:42:07.767Z","objectId":"5525f50fe4b06a6fc7f090ec"},{"createdAt":"2015-04-09T03:44:28.822Z","updatedAt":"2015-04-09T03:44:28.822Z","objectId":"5525f59ce4b06a6fc7f094d4"},{"createdAt":"2015-04-09T03:44:26.938Z","updatedAt":"2015-04-09T03:44:26.938Z","objectId":"5525f59ae4b06a6fc7f094c5"},{"createdAt":"2015-04-09T03:44:26.010Z","updatedAt":"2015-04-09T03:44:26.010Z","objectId":"5525f59ae4b06a6fc7f094c0"},{"createdAt":"2015-04-09T03:44:22.770Z","updatedAt":"2015-04-09T03:44:22.770Z","objectId":"5525f596e4b06a6fc7f094aa"},{"createdAt":"2015-04-09T03:42:03.532Z","updatedAt":"2015-04-09T03:42:03.532Z","objectId":"5525f50be4b06a6fc7f090d7"},{"createdAt":"2015-04-09T03:42:01.451Z","updatedAt":"2015-04-09T03:42:01.451Z","objectId":"5525f509e4b06a6fc7f090cc"},{"createdAt":"2015-04-09T03:41:59.557Z","updatedAt":"2015-04-09T03:41:59.557Z","objectId":"5525f507e4b06a6fc7f090b1"},{"createdAt":"2015-04-09T03:41:55.626Z","updatedAt":"2015-04-09T03:41:55.626Z","objectId":"5525f503e4b06a6fc7f09094"},{"updatedAt":"2015-04-09T03:42:11.499Z","title":"hello
|
95
|
+
2","createdAt":"2015-04-09T03:42:11.170Z","objectId":"5525f513e4b06a6fc7f0910b"},{"location":{"longitude":40.0,"latitude":-30.0,"__type":"GeoPoint"},"createdAt":"2015-04-09T03:28:14.024Z","updatedAt":"2015-04-09T03:28:14.024Z","objectId":"5525f1cee4b06a6fc7f079dc"},{"title":"hello
|
96
|
+
world","createdAt":"2015-04-09T03:43:41.944Z","updatedAt":"2015-04-09T03:43:41.944Z","objectId":"5525f56de4b06a6fc7f09382"},{"updatedAt":"2015-04-09T03:42:04.165Z","createdAt":"2015-04-09T03:42:03.859Z","objectId":"5525f50be4b06a6fc7f090d9"},{"updatedAt":"2015-04-09T03:42:00.885Z","createdAt":"2015-04-09T03:41:59.892Z","count":0,"objectId":"5525f507e4b06a6fc7f090b5"},{"createdAt":"2015-04-09T03:03:01.242Z","updatedAt":"2015-04-09T03:03:01.242Z","objectId":"5525ebe5e4b06a6fc7f04e7b"},{"createdAt":"2015-04-09T03:02:58.095Z","updatedAt":"2015-04-09T03:02:58.095Z","objectId":"5525ebe2e4b06a6fc7f04e66"},{"createdAt":"2015-04-09T03:02:55.982Z","updatedAt":"2015-04-09T03:02:55.982Z","objectId":"5525ebdfe4b06a6fc7f04e57"},{"createdAt":"2015-04-09T03:02:55.019Z","updatedAt":"2015-04-09T03:02:55.019Z","objectId":"5525ebdfe4b06a6fc7f04e4e"},{"createdAt":"2015-04-09T03:02:50.426Z","updatedAt":"2015-04-09T03:02:50.426Z","objectId":"5525ebdae4b06a6fc7f04e25"},{"createdAt":"2015-04-09T02:59:35.395Z","updatedAt":"2015-04-09T02:59:35.395Z","objectId":"5525eb17e4b06a6fc7f04904"},{"createdAt":"2015-04-09T02:59:32.502Z","updatedAt":"2015-04-09T02:59:32.502Z","objectId":"5525eb14e4b06a6fc7f048f2"},{"createdAt":"2015-04-09T02:59:30.522Z","updatedAt":"2015-04-09T02:59:30.522Z","objectId":"5525eb12e4b06a6fc7f048e8"},{"createdAt":"2015-04-09T02:59:29.143Z","updatedAt":"2015-04-09T02:59:29.143Z","objectId":"5525eb11e4b06a6fc7f048de"},{"createdAt":"2015-04-09T02:59:25.363Z","updatedAt":"2015-04-09T02:59:25.363Z","objectId":"5525eb0de4b06a6fc7f048c5"},{"createdAt":"2015-04-08T15:04:37.045Z","updatedAt":"2015-04-08T15:04:37.045Z","objectId":"55254385e4b0585a7282c046"},{"createdAt":"2015-04-08T15:04:34.985Z","updatedAt":"2015-04-08T15:04:34.985Z","objectId":"55254382e4b0585a7282c023"},{"createdAt":"2015-04-08T15:04:33.492Z","updatedAt":"2015-04-08T15:04:33.492Z","objectId":"55254381e4b0585a7282c013"},{"createdAt":"2015-04-08T15:04:32.660Z","updatedAt":"2015-04-08T15:04:32.660Z","objectId":"55254380e4b0585a7282c007"},{"createdAt":"2015-04-08T15:04:29.096Z","updatedAt":"2015-04-08T15:04:29.096Z","objectId":"5525437de4b0585a7282bfcc"},{"createdAt":"2015-04-08T14:56:06.559Z","updatedAt":"2015-04-08T14:56:06.559Z","objectId":"55254186e4b0585a7282ac87"},{"time":{"iso":"1970-01-01T00:00:00.000Z","__type":"Date"},"createdAt":"2015-04-09T03:41:49.303Z","updatedAt":"2015-04-09T03:41:49.303Z","objectId":"5525f4fde4b06a6fc7f0906c"},{"location":{"longitude":40.0,"latitude":-30.0,"__type":"GeoPoint"},"createdAt":"2015-04-09T03:25:52.332Z","updatedAt":"2015-04-09T03:25:52.332Z","objectId":"5525f140e4b06a6fc7f07634"},{"createdAt":"2015-04-08T14:56:04.268Z","updatedAt":"2015-04-08T14:56:04.268Z","objectId":"55254184e4b0585a7282ac71"},{"other":{"__type":"Pointer","className":"Post","objectId":"5525f509e4b06a6fc7f090cc"},"createdAt":"2015-04-09T03:42:01.910Z","updatedAt":"2015-04-09T03:42:01.910Z","objectId":"5525f509e4b06a6fc7f090ce"},{"location":{"longitude":40.0,"latitude":-30.0,"__type":"GeoPoint"},"createdAt":"2015-04-09T03:21:17.087Z","updatedAt":"2015-04-09T03:21:17.087Z","objectId":"5525f02de4b06a6fc7f06ddf"},{"location":{"longitude":40.0,"latitude":-30.0,"__type":"GeoPoint"},"createdAt":"2015-04-09T03:12:41.949Z","updatedAt":"2015-04-09T03:12:41.949Z","objectId":"5525ee29e4b06a6fc7f06046"},{"random":0.8261689547415835,"createdAt":"2015-04-09T03:40:44.770Z","updatedAt":"2015-04-09T03:40:44.770Z","objectId":"5525f4bce4b06a6fc7f08e72"},{"createdAt":"2015-04-08T14:56:02.833Z","updatedAt":"2015-04-08T14:56:02.833Z","objectId":"55254182e4b0585a7282ac61"},{"updatedAt":"2015-04-09T03:41:56.795Z","createdAt":"2015-04-09T03:41:56.353Z","chapters":["hello","goodbye"],"objectId":"5525f504e4b06a6fc7f0909d"},{"createdAt":"2015-04-08T14:56:01.702Z","updatedAt":"2015-04-08T14:56:01.702Z","objectId":"55254181e4b0585a7282ac59"}],"count":492,"className":"Post"}'
|
97
|
+
http_version:
|
98
|
+
recorded_at: Fri, 10 Apr 2015 09:59:34 GMT
|
99
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,109 @@
|
|
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
|
+
- <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
|
+
- Mon, 22 Apr 2013 16:03:17 GMT
|
41
|
+
Location:
|
42
|
+
- https://api.parse.com/1/classes/Post/KQxGUGaagM
|
43
|
+
Server:
|
44
|
+
- nginx/1.2.2
|
45
|
+
Set-Cookie:
|
46
|
+
- <COOKIE-KEY>
|
47
|
+
Status:
|
48
|
+
- 201 Created
|
49
|
+
X-Runtime:
|
50
|
+
- '0.049115'
|
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-04-22T16:03:17.754Z","objectId":"KQxGUGaagM"}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Mon, 22 Apr 2013 16:03:17 GMT
|
62
|
+
- request:
|
63
|
+
method: post
|
64
|
+
uri: https://api.leancloud.cn/1.1/classes/Post
|
65
|
+
body:
|
66
|
+
encoding: UTF-8
|
67
|
+
string: '{}'
|
68
|
+
headers:
|
69
|
+
User-Agent:
|
70
|
+
- Parse for Ruby, 0.0
|
71
|
+
Content-Type:
|
72
|
+
- application/json
|
73
|
+
X-Avoscloud-Application-Id:
|
74
|
+
- <X-AVOSCloud-Application-Id>
|
75
|
+
X-Avoscloud-Application-Key:
|
76
|
+
- <X-AVOSCloud-Application-Key>
|
77
|
+
Accept-Encoding:
|
78
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
79
|
+
Accept:
|
80
|
+
- '*/*'
|
81
|
+
response:
|
82
|
+
status:
|
83
|
+
code: 201
|
84
|
+
message: Created
|
85
|
+
headers:
|
86
|
+
Server:
|
87
|
+
- Tengine
|
88
|
+
Date:
|
89
|
+
- Fri, 10 Apr 2015 09:10:48 GMT
|
90
|
+
Content-Type:
|
91
|
+
- application/json;charset=utf-8
|
92
|
+
Content-Length:
|
93
|
+
- '78'
|
94
|
+
Connection:
|
95
|
+
- keep-alive
|
96
|
+
Location:
|
97
|
+
- /1.1/classes/Post/55279398e4b0da2c5defa1cd
|
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: '{"createdAt":"2015-04-10T09:10:48.474Z","objectId":"55279398e4b0da2c5defa1cd"}'
|
107
|
+
http_version:
|
108
|
+
recorded_at: Fri, 10 Apr 2015 09:10:48 GMT
|
109
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,213 @@
|
|
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: '{"count":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
|
+
- Tue, 21 May 2013 17:44:02 GMT
|
41
|
+
Location:
|
42
|
+
- https://api.parse.com/1/classes/Post/mbi9hgIA8z
|
43
|
+
Server:
|
44
|
+
- nginx/1.2.2
|
45
|
+
Set-Cookie:
|
46
|
+
- <COOKIE-KEY>
|
47
|
+
Status:
|
48
|
+
- 201 Created
|
49
|
+
X-Runtime:
|
50
|
+
- '0.036852'
|
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-21T17:44:02.950Z","objectId":"mbi9hgIA8z"}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Tue, 21 May 2013 17:44:02 GMT
|
62
|
+
- request:
|
63
|
+
method: put
|
64
|
+
uri: https://api.parse.com/1/classes/Post/mbi9hgIA8z
|
65
|
+
body:
|
66
|
+
encoding: UTF-8
|
67
|
+
string: '{"count":{"__op":"Increment","amount":-1}}'
|
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
|
+
- Tue, 21 May 2013 17:44:03 GMT
|
100
|
+
Etag:
|
101
|
+
- '"801ca6262d69a0dcff8d69e7f078aaca"'
|
102
|
+
Server:
|
103
|
+
- nginx/1.2.2
|
104
|
+
Set-Cookie:
|
105
|
+
- <COOKIE-KEY>
|
106
|
+
Status:
|
107
|
+
- 200 OK
|
108
|
+
X-Runtime:
|
109
|
+
- '0.104988'
|
110
|
+
X-Ua-Compatible:
|
111
|
+
- IE=Edge,chrome=1
|
112
|
+
Transfer-Encoding:
|
113
|
+
- chunked
|
114
|
+
Connection:
|
115
|
+
- keep-alive
|
116
|
+
body:
|
117
|
+
encoding: ASCII-8BIT
|
118
|
+
string: '{"count":0,"updatedAt":"2013-05-21T17:44:03.131Z"}'
|
119
|
+
http_version:
|
120
|
+
recorded_at: Tue, 21 May 2013 17:44:03 GMT
|
121
|
+
- request:
|
122
|
+
method: post
|
123
|
+
uri: https://api.leancloud.cn/1.1/classes/Post
|
124
|
+
body:
|
125
|
+
encoding: UTF-8
|
126
|
+
string: '{"count":1}'
|
127
|
+
headers:
|
128
|
+
User-Agent:
|
129
|
+
- Parse for Ruby, 0.0
|
130
|
+
Content-Type:
|
131
|
+
- application/json
|
132
|
+
X-Avoscloud-Application-Id:
|
133
|
+
- <X-AVOSCloud-Application-Id>
|
134
|
+
X-Avoscloud-Application-Key:
|
135
|
+
- <X-AVOSCloud-Application-Key>
|
136
|
+
Accept-Encoding:
|
137
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
138
|
+
Accept:
|
139
|
+
- '*/*'
|
140
|
+
response:
|
141
|
+
status:
|
142
|
+
code: 201
|
143
|
+
message: Created
|
144
|
+
headers:
|
145
|
+
Server:
|
146
|
+
- Tengine
|
147
|
+
Date:
|
148
|
+
- Fri, 10 Apr 2015 09:10:48 GMT
|
149
|
+
Content-Type:
|
150
|
+
- application/json;charset=utf-8
|
151
|
+
Content-Length:
|
152
|
+
- '78'
|
153
|
+
Connection:
|
154
|
+
- keep-alive
|
155
|
+
Location:
|
156
|
+
- /1.1/classes/Post/55279398e4b0da2c5defa1d1
|
157
|
+
Cache-Control:
|
158
|
+
- no-cache,no-store
|
159
|
+
Pragma:
|
160
|
+
- no-cache
|
161
|
+
Strict-Transport-Security:
|
162
|
+
- max-age=31536000
|
163
|
+
body:
|
164
|
+
encoding: UTF-8
|
165
|
+
string: '{"createdAt":"2015-04-10T09:10:48.759Z","objectId":"55279398e4b0da2c5defa1d1"}'
|
166
|
+
http_version:
|
167
|
+
recorded_at: Fri, 10 Apr 2015 09:10:48 GMT
|
168
|
+
- request:
|
169
|
+
method: put
|
170
|
+
uri: https://api.leancloud.cn/1.1/classes/Post/55279398e4b0da2c5defa1d1?new=true
|
171
|
+
body:
|
172
|
+
encoding: UTF-8
|
173
|
+
string: '{"count":{"__op":"Increment","amount":-1}}'
|
174
|
+
headers:
|
175
|
+
User-Agent:
|
176
|
+
- Parse for Ruby, 0.0
|
177
|
+
Content-Type:
|
178
|
+
- application/json
|
179
|
+
X-Avoscloud-Application-Id:
|
180
|
+
- <X-AVOSCloud-Application-Id>
|
181
|
+
X-Avoscloud-Application-Key:
|
182
|
+
- <X-AVOSCloud-Application-Key>
|
183
|
+
Accept-Encoding:
|
184
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
185
|
+
Accept:
|
186
|
+
- '*/*'
|
187
|
+
response:
|
188
|
+
status:
|
189
|
+
code: 200
|
190
|
+
message: OK
|
191
|
+
headers:
|
192
|
+
Server:
|
193
|
+
- Tengine
|
194
|
+
Date:
|
195
|
+
- Fri, 10 Apr 2015 09:10:49 GMT
|
196
|
+
Content-Type:
|
197
|
+
- application/json;charset=utf-8
|
198
|
+
Content-Length:
|
199
|
+
- '88'
|
200
|
+
Connection:
|
201
|
+
- keep-alive
|
202
|
+
Cache-Control:
|
203
|
+
- no-cache,no-store
|
204
|
+
Pragma:
|
205
|
+
- no-cache
|
206
|
+
Strict-Transport-Security:
|
207
|
+
- max-age=31536000
|
208
|
+
body:
|
209
|
+
encoding: UTF-8
|
210
|
+
string: '{"objectId":"55279398e4b0da2c5defa1d1","count":0,"updatedAt":"2015-04-10T09:10:49.069Z"}'
|
211
|
+
http_version:
|
212
|
+
recorded_at: Fri, 10 Apr 2015 09:10:49 GMT
|
213
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,321 @@
|
|
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
|
+
- <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
|
+
- Mon, 22 Apr 2013 16:03:17 GMT
|
41
|
+
Location:
|
42
|
+
- https://api.parse.com/1/classes/Post/2HvBAF0Dgj
|
43
|
+
Server:
|
44
|
+
- nginx/1.2.2
|
45
|
+
Set-Cookie:
|
46
|
+
- <COOKIE-KEY>
|
47
|
+
Status:
|
48
|
+
- 201 Created
|
49
|
+
X-Runtime:
|
50
|
+
- '0.026815'
|
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-04-22T16:03:17.893Z","objectId":"2HvBAF0Dgj"}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Mon, 22 Apr 2013 16:03:17 GMT
|
62
|
+
- request:
|
63
|
+
method: post
|
64
|
+
uri: https://api.parse.com/1/classes/Post
|
65
|
+
body:
|
66
|
+
encoding: UTF-8
|
67
|
+
string: '{"other":{"__type":"Pointer","className":"Post","objectId":"2HvBAF0Dgj"}}'
|
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: 201
|
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:17 GMT
|
100
|
+
Location:
|
101
|
+
- https://api.parse.com/1/classes/Post/lNEWlijx5l
|
102
|
+
Server:
|
103
|
+
- nginx/1.2.2
|
104
|
+
Set-Cookie:
|
105
|
+
- <COOKIE-KEY>
|
106
|
+
Status:
|
107
|
+
- 201 Created
|
108
|
+
X-Runtime:
|
109
|
+
- '0.040447'
|
110
|
+
X-Ua-Compatible:
|
111
|
+
- IE=Edge,chrome=1
|
112
|
+
Content-Length:
|
113
|
+
- '64'
|
114
|
+
Connection:
|
115
|
+
- keep-alive
|
116
|
+
body:
|
117
|
+
encoding: ASCII-8BIT
|
118
|
+
string: '{"createdAt":"2013-04-22T16:03:17.992Z","objectId":"lNEWlijx5l"}'
|
119
|
+
http_version:
|
120
|
+
recorded_at: Mon, 22 Apr 2013 16:03:18 GMT
|
121
|
+
- request:
|
122
|
+
method: get
|
123
|
+
uri: https://api.parse.com/1/classes/Post/lNEWlijx5l
|
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
|
+
- Mon, 22 Apr 2013 16:03:18 GMT
|
159
|
+
Etag:
|
160
|
+
- '"109ee88975e2159bdcf8dbf8e6878829"'
|
161
|
+
Server:
|
162
|
+
- nginx/1.2.2
|
163
|
+
Set-Cookie:
|
164
|
+
- <COOKIE-KEY>
|
165
|
+
Status:
|
166
|
+
- 200 OK
|
167
|
+
X-Runtime:
|
168
|
+
- '0.055446'
|
169
|
+
X-Ua-Compatible:
|
170
|
+
- IE=Edge,chrome=1
|
171
|
+
Content-Length:
|
172
|
+
- '175'
|
173
|
+
Connection:
|
174
|
+
- keep-alive
|
175
|
+
body:
|
176
|
+
encoding: ASCII-8BIT
|
177
|
+
string: '{"other":{"__type":"Pointer","className":"Post","objectId":"2HvBAF0Dgj"},"createdAt":"2013-04-22T16:03:17.992Z","updatedAt":"2013-04-22T16:03:17.992Z","objectId":"lNEWlijx5l"}'
|
178
|
+
http_version:
|
179
|
+
recorded_at: Mon, 22 Apr 2013 16:03:18 GMT
|
180
|
+
- request:
|
181
|
+
method: post
|
182
|
+
uri: https://api.leancloud.cn/1.1/classes/Post
|
183
|
+
body:
|
184
|
+
encoding: UTF-8
|
185
|
+
string: '{}'
|
186
|
+
headers:
|
187
|
+
User-Agent:
|
188
|
+
- Parse for Ruby, 0.0
|
189
|
+
Content-Type:
|
190
|
+
- application/json
|
191
|
+
X-Avoscloud-Application-Id:
|
192
|
+
- <X-AVOSCloud-Application-Id>
|
193
|
+
X-Avoscloud-Application-Key:
|
194
|
+
- <X-AVOSCloud-Application-Key>
|
195
|
+
Accept-Encoding:
|
196
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
197
|
+
Accept:
|
198
|
+
- '*/*'
|
199
|
+
response:
|
200
|
+
status:
|
201
|
+
code: 201
|
202
|
+
message: Created
|
203
|
+
headers:
|
204
|
+
Server:
|
205
|
+
- Tengine
|
206
|
+
Date:
|
207
|
+
- Fri, 10 Apr 2015 09:10:49 GMT
|
208
|
+
Content-Type:
|
209
|
+
- application/json;charset=utf-8
|
210
|
+
Content-Length:
|
211
|
+
- '78'
|
212
|
+
Connection:
|
213
|
+
- keep-alive
|
214
|
+
Location:
|
215
|
+
- /1.1/classes/Post/55279399e4b0da2c5defa1db
|
216
|
+
Cache-Control:
|
217
|
+
- no-cache,no-store
|
218
|
+
Pragma:
|
219
|
+
- no-cache
|
220
|
+
Strict-Transport-Security:
|
221
|
+
- max-age=31536000
|
222
|
+
body:
|
223
|
+
encoding: UTF-8
|
224
|
+
string: '{"createdAt":"2015-04-10T09:10:49.418Z","objectId":"55279399e4b0da2c5defa1db"}'
|
225
|
+
http_version:
|
226
|
+
recorded_at: Fri, 10 Apr 2015 09:10:49 GMT
|
227
|
+
- request:
|
228
|
+
method: post
|
229
|
+
uri: https://api.leancloud.cn/1.1/classes/Post
|
230
|
+
body:
|
231
|
+
encoding: UTF-8
|
232
|
+
string: '{"other":{"__type":"Pointer","className":"Post","objectId":"55279399e4b0da2c5defa1db"}}'
|
233
|
+
headers:
|
234
|
+
User-Agent:
|
235
|
+
- Parse for Ruby, 0.0
|
236
|
+
Content-Type:
|
237
|
+
- application/json
|
238
|
+
X-Avoscloud-Application-Id:
|
239
|
+
- <X-AVOSCloud-Application-Id>
|
240
|
+
X-Avoscloud-Application-Key:
|
241
|
+
- <X-AVOSCloud-Application-Key>
|
242
|
+
Accept-Encoding:
|
243
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
244
|
+
Accept:
|
245
|
+
- '*/*'
|
246
|
+
response:
|
247
|
+
status:
|
248
|
+
code: 201
|
249
|
+
message: Created
|
250
|
+
headers:
|
251
|
+
Server:
|
252
|
+
- Tengine
|
253
|
+
Date:
|
254
|
+
- Fri, 10 Apr 2015 09:10:49 GMT
|
255
|
+
Content-Type:
|
256
|
+
- application/json;charset=utf-8
|
257
|
+
Content-Length:
|
258
|
+
- '78'
|
259
|
+
Connection:
|
260
|
+
- keep-alive
|
261
|
+
Location:
|
262
|
+
- /1.1/classes/Post/55279399e4b0da2c5defa1de
|
263
|
+
Cache-Control:
|
264
|
+
- no-cache,no-store
|
265
|
+
Pragma:
|
266
|
+
- no-cache
|
267
|
+
Strict-Transport-Security:
|
268
|
+
- max-age=31536000
|
269
|
+
body:
|
270
|
+
encoding: UTF-8
|
271
|
+
string: '{"createdAt":"2015-04-10T09:10:49.722Z","objectId":"55279399e4b0da2c5defa1de"}'
|
272
|
+
http_version:
|
273
|
+
recorded_at: Fri, 10 Apr 2015 09:10:49 GMT
|
274
|
+
- request:
|
275
|
+
method: get
|
276
|
+
uri: https://api.leancloud.cn/1.1/classes/Post/55279399e4b0da2c5defa1de
|
277
|
+
body:
|
278
|
+
encoding: US-ASCII
|
279
|
+
string: ''
|
280
|
+
headers:
|
281
|
+
User-Agent:
|
282
|
+
- Parse for Ruby, 0.0
|
283
|
+
Content-Type:
|
284
|
+
- application/json
|
285
|
+
X-Avoscloud-Application-Id:
|
286
|
+
- <X-AVOSCloud-Application-Id>
|
287
|
+
X-Avoscloud-Application-Key:
|
288
|
+
- <X-AVOSCloud-Application-Key>
|
289
|
+
Accept-Encoding:
|
290
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
291
|
+
Accept:
|
292
|
+
- '*/*'
|
293
|
+
response:
|
294
|
+
status:
|
295
|
+
code: 200
|
296
|
+
message: OK
|
297
|
+
headers:
|
298
|
+
Server:
|
299
|
+
- Tengine
|
300
|
+
Date:
|
301
|
+
- Fri, 10 Apr 2015 09:10:49 GMT
|
302
|
+
Content-Type:
|
303
|
+
- application/json;charset=utf-8
|
304
|
+
Content-Length:
|
305
|
+
- '203'
|
306
|
+
Connection:
|
307
|
+
- keep-alive
|
308
|
+
Last-Modified:
|
309
|
+
- Fri, 10 Apr 2015 09:10:49.722 GMT
|
310
|
+
Cache-Control:
|
311
|
+
- no-cache,no-store
|
312
|
+
Pragma:
|
313
|
+
- no-cache
|
314
|
+
Strict-Transport-Security:
|
315
|
+
- max-age=31536000
|
316
|
+
body:
|
317
|
+
encoding: UTF-8
|
318
|
+
string: '{"other":{"__type":"Pointer","className":"Post","objectId":"55279399e4b0da2c5defa1db"},"createdAt":"2015-04-10T09:10:49.722Z","updatedAt":"2015-04-10T09:10:49.722Z","objectId":"55279399e4b0da2c5defa1de"}'
|
319
|
+
http_version:
|
320
|
+
recorded_at: Fri, 10 Apr 2015 09:10:49 GMT
|
321
|
+
recorded_with: VCR 2.4.0
|