restforce-db 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/file_daemon.rb +42 -0
- data/lib/restforce/db/accumulator.rb +41 -0
- data/lib/restforce/db/attribute_map.rb +132 -0
- data/lib/restforce/db/collector.rb +79 -0
- data/lib/restforce/db/initializer.rb +62 -0
- data/lib/restforce/db/instances/base.rb +1 -14
- data/lib/restforce/db/instances/salesforce.rb +7 -0
- data/lib/restforce/db/mapping.rb +33 -79
- data/lib/restforce/db/record_types/base.rb +0 -30
- data/lib/restforce/db/runner.rb +80 -0
- data/lib/restforce/db/synchronizer.rb +29 -37
- data/lib/restforce/db/version.rb +1 -1
- data/lib/restforce/db/worker.rb +53 -40
- data/lib/restforce/db.rb +6 -0
- data/test/cassettes/{Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/when_synchronization_is_stale/updates_the_database_record.yml → Restforce_DB_Collector/_run/given_a_Salesforce_record_with_an_associated_database_record/returns_the_attributes_from_both_records.yml} +36 -36
- data/test/cassettes/Restforce_DB_Collector/_run/given_an_existing_Salesforce_record/returns_the_attributes_from_the_Salesforce_record.yml +197 -0
- data/test/cassettes/Restforce_DB_Collector/_run/given_an_existing_database_record/returns_the_attributes_from_the_database_record.yml +81 -0
- data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_Salesforce_record/for_a_non-root_mapping/does_not_create_a_database_record.yml +119 -0
- data/test/cassettes/{Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/when_synchronization_is_up-to-date/does_not_update_the_database_record.yml → Restforce_DB_Initializer/_run/given_an_existing_Salesforce_record/for_a_root_mapping/creates_a_matching_database_record.yml} +28 -28
- data/test/cassettes/{Restforce_DB_Synchronizer/_run/given_an_existing_database_record → Restforce_DB_Initializer/_run/given_an_existing_database_record/for_a_root_mapping}/populates_Salesforce_with_the_new_record.yml +44 -44
- data/test/cassettes/{Restforce_DB_Synchronizer/_run/given_an_existing_Salesforce_record/for_a_non-root_mapping/does_not_create_a_database_record.yml → Restforce_DB_Instances_Salesforce/_synced_/when_a_matching_database_record_exists/returns_true.yml} +30 -30
- data/test/cassettes/{Restforce_DB_Synchronizer/_run/given_an_existing_Salesforce_record/for_a_root_mapping/creates_a_matching_database_record.yml → Restforce_DB_Instances_Salesforce/_synced_/when_no_matching_database_record_exists/returns_false.yml} +30 -30
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/updates_the_database_record.yml +194 -0
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/updates_the_salesforce_record.yml +233 -0
- data/test/lib/restforce/db/accumulator_test.rb +71 -0
- data/test/lib/restforce/db/attribute_map_test.rb +70 -0
- data/test/lib/restforce/db/collector_test.rb +91 -0
- data/test/lib/restforce/db/initializer_test.rb +92 -0
- data/test/lib/restforce/db/instances/active_record_test.rb +0 -13
- data/test/lib/restforce/db/instances/salesforce_test.rb +20 -13
- data/test/lib/restforce/db/mapping_test.rb +1 -37
- data/test/lib/restforce/db/record_types/active_record_test.rb +0 -40
- data/test/lib/restforce/db/runner_test.rb +40 -0
- data/test/lib/restforce/db/synchronizer_test.rb +26 -86
- metadata +23 -7
@@ -0,0 +1,81 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://<host>/services/oauth2/token
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: grant_type=password&client_id=<client_id>&client_secret=<client_secret>&username=<username>&password=<password><security_token>
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
12
|
+
Content-Type:
|
13
|
+
- application/x-www-form-urlencoded
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Mon, 06 Apr 2015 09:47:15 GMT
|
25
|
+
Set-Cookie:
|
26
|
+
- BrowserId=iKvYr10tSN21kZP4Ayl0oQ;Path=/;Domain=.salesforce.com;Expires=Fri,
|
27
|
+
05-Jun-2015 09:47:15 GMT
|
28
|
+
Expires:
|
29
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
30
|
+
Pragma:
|
31
|
+
- no-cache
|
32
|
+
Cache-Control:
|
33
|
+
- no-cache, no-store
|
34
|
+
Content-Type:
|
35
|
+
- application/json;charset=UTF-8
|
36
|
+
Transfer-Encoding:
|
37
|
+
- chunked
|
38
|
+
body:
|
39
|
+
encoding: ASCII-8BIT
|
40
|
+
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1428313635415","token_type":"Bearer","instance_url":"https://<host>","signature":"qgEz8rnSJoiUzNODq0gJyMJXLTeQ+pjzTyA1BwJ1Nq8=","access_token":"00D1a000000H3O9!AQ4AQIEcyaEa1EiezSuMSEJm73cIL8I5CDJ_vnqlgzm7mAXRhbGBSo3xF6_EdmNqSa42nDRyl2szOaP4ybHrIHxo.G4YonU_"}'
|
41
|
+
http_version:
|
42
|
+
recorded_at: Mon, 06 Apr 2015 09:47:15 GMT
|
43
|
+
- request:
|
44
|
+
method: get
|
45
|
+
uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20SystemModstamp%20%3C%202015-04-06T09:47:14Z
|
46
|
+
body:
|
47
|
+
encoding: US-ASCII
|
48
|
+
string: ''
|
49
|
+
headers:
|
50
|
+
User-Agent:
|
51
|
+
- Faraday v0.9.1
|
52
|
+
Authorization:
|
53
|
+
- OAuth 00D1a000000H3O9!AQ4AQIEcyaEa1EiezSuMSEJm73cIL8I5CDJ_vnqlgzm7mAXRhbGBSo3xF6_EdmNqSa42nDRyl2szOaP4ybHrIHxo.G4YonU_
|
54
|
+
Accept-Encoding:
|
55
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
56
|
+
Accept:
|
57
|
+
- "*/*"
|
58
|
+
response:
|
59
|
+
status:
|
60
|
+
code: 200
|
61
|
+
message: OK
|
62
|
+
headers:
|
63
|
+
Date:
|
64
|
+
- Mon, 06 Apr 2015 09:47:16 GMT
|
65
|
+
Set-Cookie:
|
66
|
+
- BrowserId=-Oj4BnncTOaI79jHDt5lUg;Path=/;Domain=.salesforce.com;Expires=Fri,
|
67
|
+
05-Jun-2015 09:47:16 GMT
|
68
|
+
Expires:
|
69
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
70
|
+
Sforce-Limit-Info:
|
71
|
+
- api-usage=17/15000
|
72
|
+
Content-Type:
|
73
|
+
- application/json;charset=UTF-8
|
74
|
+
Transfer-Encoding:
|
75
|
+
- chunked
|
76
|
+
body:
|
77
|
+
encoding: ASCII-8BIT
|
78
|
+
string: '{"totalSize":0,"done":true,"records":[]}'
|
79
|
+
http_version:
|
80
|
+
recorded_at: Mon, 06 Apr 2015 09:47:16 GMT
|
81
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,119 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://<host>/services/oauth2/token
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: grant_type=password&client_id=<client_id>&client_secret=<client_secret>&username=<username>&password=<password><security_token>
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
12
|
+
Content-Type:
|
13
|
+
- application/x-www-form-urlencoded
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Mon, 06 Apr 2015 16:24:36 GMT
|
25
|
+
Set-Cookie:
|
26
|
+
- BrowserId=4pBGzo1DRCmvDwEAqknPtA;Path=/;Domain=.salesforce.com;Expires=Fri,
|
27
|
+
05-Jun-2015 16:24:36 GMT
|
28
|
+
Expires:
|
29
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
30
|
+
Pragma:
|
31
|
+
- no-cache
|
32
|
+
Cache-Control:
|
33
|
+
- no-cache, no-store
|
34
|
+
Content-Type:
|
35
|
+
- application/json;charset=UTF-8
|
36
|
+
Transfer-Encoding:
|
37
|
+
- chunked
|
38
|
+
body:
|
39
|
+
encoding: ASCII-8BIT
|
40
|
+
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1428337476960","token_type":"Bearer","instance_url":"https://<host>","signature":"86GefhFP2AJMSKLNz99WX05lFydWhtq7nqnhTXNKEDI=","access_token":"00D1a000000H3O9!AQ4AQFhXX0t0My8qCHdrUMfRwg3B5FPFTjOwddPzvTaHu0t9H1xiDVKOSpDxKItHiqnvYyMKqZVwaC5AIJvYk_bzVt8m7Vil"}'
|
41
|
+
http_version:
|
42
|
+
recorded_at: Mon, 06 Apr 2015 16:24:36 GMT
|
43
|
+
- request:
|
44
|
+
method: post
|
45
|
+
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c
|
46
|
+
body:
|
47
|
+
encoding: UTF-8
|
48
|
+
string: '{"Name":"Custom object","Example_Field__c":"Some sample text"}'
|
49
|
+
headers:
|
50
|
+
User-Agent:
|
51
|
+
- Faraday v0.9.1
|
52
|
+
Content-Type:
|
53
|
+
- application/json
|
54
|
+
Authorization:
|
55
|
+
- OAuth 00D1a000000H3O9!AQ4AQFhXX0t0My8qCHdrUMfRwg3B5FPFTjOwddPzvTaHu0t9H1xiDVKOSpDxKItHiqnvYyMKqZVwaC5AIJvYk_bzVt8m7Vil
|
56
|
+
Accept-Encoding:
|
57
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
58
|
+
Accept:
|
59
|
+
- "*/*"
|
60
|
+
response:
|
61
|
+
status:
|
62
|
+
code: 201
|
63
|
+
message: Created
|
64
|
+
headers:
|
65
|
+
Date:
|
66
|
+
- Mon, 06 Apr 2015 16:24:38 GMT
|
67
|
+
Set-Cookie:
|
68
|
+
- BrowserId=JeUn_YPXQBGkIFCUCQTg5g;Path=/;Domain=.salesforce.com;Expires=Fri,
|
69
|
+
05-Jun-2015 16:24:38 GMT
|
70
|
+
Expires:
|
71
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
72
|
+
Sforce-Limit-Info:
|
73
|
+
- api-usage=35/15000
|
74
|
+
Location:
|
75
|
+
- "/services/data/v26.0/sobjects/CustomObject__c/a001a000001LH2pAAG"
|
76
|
+
Content-Type:
|
77
|
+
- application/json;charset=UTF-8
|
78
|
+
Transfer-Encoding:
|
79
|
+
- chunked
|
80
|
+
body:
|
81
|
+
encoding: ASCII-8BIT
|
82
|
+
string: '{"id":"a001a000001LH2pAAG","success":true,"errors":[]}'
|
83
|
+
http_version:
|
84
|
+
recorded_at: Mon, 06 Apr 2015 16:24:38 GMT
|
85
|
+
- request:
|
86
|
+
method: delete
|
87
|
+
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/a001a000001LH2pAAG
|
88
|
+
body:
|
89
|
+
encoding: US-ASCII
|
90
|
+
string: ''
|
91
|
+
headers:
|
92
|
+
User-Agent:
|
93
|
+
- Faraday v0.9.1
|
94
|
+
Authorization:
|
95
|
+
- OAuth 00D1a000000H3O9!AQ4AQFhXX0t0My8qCHdrUMfRwg3B5FPFTjOwddPzvTaHu0t9H1xiDVKOSpDxKItHiqnvYyMKqZVwaC5AIJvYk_bzVt8m7Vil
|
96
|
+
Accept-Encoding:
|
97
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
98
|
+
Accept:
|
99
|
+
- "*/*"
|
100
|
+
response:
|
101
|
+
status:
|
102
|
+
code: 204
|
103
|
+
message: No Content
|
104
|
+
headers:
|
105
|
+
Date:
|
106
|
+
- Mon, 06 Apr 2015 16:24:39 GMT
|
107
|
+
Set-Cookie:
|
108
|
+
- BrowserId=lRls2HWnTDSiz3uSL6mP3g;Path=/;Domain=.salesforce.com;Expires=Fri,
|
109
|
+
05-Jun-2015 16:24:39 GMT
|
110
|
+
Expires:
|
111
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
112
|
+
Sforce-Limit-Info:
|
113
|
+
- api-usage=35/15000
|
114
|
+
body:
|
115
|
+
encoding: UTF-8
|
116
|
+
string: ''
|
117
|
+
http_version:
|
118
|
+
recorded_at: Mon, 06 Apr 2015 16:24:39 GMT
|
119
|
+
recorded_with: VCR 2.9.3
|
@@ -21,10 +21,10 @@ http_interactions:
|
|
21
21
|
message: OK
|
22
22
|
headers:
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Mon, 06 Apr 2015 16:24:41 GMT
|
25
25
|
Set-Cookie:
|
26
|
-
- BrowserId=
|
27
|
-
|
26
|
+
- BrowserId=lVxxhf7fSri3JVI565pIKA;Path=/;Domain=.salesforce.com;Expires=Fri,
|
27
|
+
05-Jun-2015 16:24:41 GMT
|
28
28
|
Expires:
|
29
29
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
30
30
|
Pragma:
|
@@ -37,9 +37,9 @@ http_interactions:
|
|
37
37
|
- chunked
|
38
38
|
body:
|
39
39
|
encoding: ASCII-8BIT
|
40
|
-
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"
|
40
|
+
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1428337481161","token_type":"Bearer","instance_url":"https://<host>","signature":"qovSt6iFWpcplBSmFRHDaaAYio/Wlu4HTu99Vp6+kzY=","access_token":"00D1a000000H3O9!AQ4AQFhXX0t0My8qCHdrUMfRwg3B5FPFTjOwddPzvTaHu0t9H1xiDVKOSpDxKItHiqnvYyMKqZVwaC5AIJvYk_bzVt8m7Vil"}'
|
41
41
|
http_version:
|
42
|
-
recorded_at:
|
42
|
+
recorded_at: Mon, 06 Apr 2015 16:24:41 GMT
|
43
43
|
- request:
|
44
44
|
method: post
|
45
45
|
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c
|
@@ -52,7 +52,7 @@ http_interactions:
|
|
52
52
|
Content-Type:
|
53
53
|
- application/json
|
54
54
|
Authorization:
|
55
|
-
- OAuth 00D1a000000H3O9!
|
55
|
+
- OAuth 00D1a000000H3O9!AQ4AQFhXX0t0My8qCHdrUMfRwg3B5FPFTjOwddPzvTaHu0t9H1xiDVKOSpDxKItHiqnvYyMKqZVwaC5AIJvYk_bzVt8m7Vil
|
56
56
|
Accept-Encoding:
|
57
57
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
58
58
|
Accept:
|
@@ -63,28 +63,28 @@ http_interactions:
|
|
63
63
|
message: Created
|
64
64
|
headers:
|
65
65
|
Date:
|
66
|
-
-
|
66
|
+
- Mon, 06 Apr 2015 16:24:42 GMT
|
67
67
|
Set-Cookie:
|
68
|
-
- BrowserId=
|
69
|
-
|
68
|
+
- BrowserId=cL6_Fot-T9yc4mTZnI1ACw;Path=/;Domain=.salesforce.com;Expires=Fri,
|
69
|
+
05-Jun-2015 16:24:42 GMT
|
70
70
|
Expires:
|
71
71
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
72
72
|
Sforce-Limit-Info:
|
73
|
-
- api-usage=
|
73
|
+
- api-usage=36/15000
|
74
74
|
Location:
|
75
|
-
- "/services/data/v26.0/sobjects/CustomObject__c/
|
75
|
+
- "/services/data/v26.0/sobjects/CustomObject__c/a001a000001LH2uAAG"
|
76
76
|
Content-Type:
|
77
77
|
- application/json;charset=UTF-8
|
78
78
|
Transfer-Encoding:
|
79
79
|
- chunked
|
80
80
|
body:
|
81
81
|
encoding: ASCII-8BIT
|
82
|
-
string: '{"id":"
|
82
|
+
string: '{"id":"a001a000001LH2uAAG","success":true,"errors":[]}'
|
83
83
|
http_version:
|
84
|
-
recorded_at:
|
84
|
+
recorded_at: Mon, 06 Apr 2015 16:24:42 GMT
|
85
85
|
- request:
|
86
86
|
method: get
|
87
|
-
uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c
|
87
|
+
uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c
|
88
88
|
body:
|
89
89
|
encoding: US-ASCII
|
90
90
|
string: ''
|
@@ -92,7 +92,7 @@ http_interactions:
|
|
92
92
|
User-Agent:
|
93
93
|
- Faraday v0.9.1
|
94
94
|
Authorization:
|
95
|
-
- OAuth 00D1a000000H3O9!
|
95
|
+
- OAuth 00D1a000000H3O9!AQ4AQFhXX0t0My8qCHdrUMfRwg3B5FPFTjOwddPzvTaHu0t9H1xiDVKOSpDxKItHiqnvYyMKqZVwaC5AIJvYk_bzVt8m7Vil
|
96
96
|
Accept-Encoding:
|
97
97
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
98
98
|
Accept:
|
@@ -103,27 +103,27 @@ http_interactions:
|
|
103
103
|
message: OK
|
104
104
|
headers:
|
105
105
|
Date:
|
106
|
-
-
|
106
|
+
- Mon, 06 Apr 2015 16:24:43 GMT
|
107
107
|
Set-Cookie:
|
108
|
-
- BrowserId=
|
109
|
-
|
108
|
+
- BrowserId=BILH41M9Q5a6jzEpUQmMaw;Path=/;Domain=.salesforce.com;Expires=Fri,
|
109
|
+
05-Jun-2015 16:24:43 GMT
|
110
110
|
Expires:
|
111
111
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
112
112
|
Sforce-Limit-Info:
|
113
|
-
- api-usage=
|
113
|
+
- api-usage=36/15000
|
114
114
|
Content-Type:
|
115
115
|
- application/json;charset=UTF-8
|
116
116
|
Transfer-Encoding:
|
117
117
|
- chunked
|
118
118
|
body:
|
119
119
|
encoding: ASCII-8BIT
|
120
|
-
string: '{"totalSize":
|
120
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001LH2uAAG"},"Id":"a001a000001LH2uAAG","SystemModstamp":"2015-04-06T16:24:42.000+0000","Name":"Custom
|
121
121
|
object","Example_Field__c":"Some sample text"}]}'
|
122
122
|
http_version:
|
123
|
-
recorded_at:
|
123
|
+
recorded_at: Mon, 06 Apr 2015 16:24:43 GMT
|
124
124
|
- request:
|
125
125
|
method: delete
|
126
|
-
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/
|
126
|
+
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/a001a000001LH2uAAG
|
127
127
|
body:
|
128
128
|
encoding: US-ASCII
|
129
129
|
string: ''
|
@@ -131,7 +131,7 @@ http_interactions:
|
|
131
131
|
User-Agent:
|
132
132
|
- Faraday v0.9.1
|
133
133
|
Authorization:
|
134
|
-
- OAuth 00D1a000000H3O9!
|
134
|
+
- OAuth 00D1a000000H3O9!AQ4AQFhXX0t0My8qCHdrUMfRwg3B5FPFTjOwddPzvTaHu0t9H1xiDVKOSpDxKItHiqnvYyMKqZVwaC5AIJvYk_bzVt8m7Vil
|
135
135
|
Accept-Encoding:
|
136
136
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
137
137
|
Accept:
|
@@ -142,17 +142,17 @@ http_interactions:
|
|
142
142
|
message: No Content
|
143
143
|
headers:
|
144
144
|
Date:
|
145
|
-
-
|
145
|
+
- Mon, 06 Apr 2015 16:24:44 GMT
|
146
146
|
Set-Cookie:
|
147
|
-
- BrowserId=
|
148
|
-
|
147
|
+
- BrowserId=xFiEOfdbRdiL5E8KUkTLsg;Path=/;Domain=.salesforce.com;Expires=Fri,
|
148
|
+
05-Jun-2015 16:24:44 GMT
|
149
149
|
Expires:
|
150
150
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
151
151
|
Sforce-Limit-Info:
|
152
|
-
- api-usage=
|
152
|
+
- api-usage=36/15000
|
153
153
|
body:
|
154
154
|
encoding: UTF-8
|
155
155
|
string: ''
|
156
156
|
http_version:
|
157
|
-
recorded_at:
|
157
|
+
recorded_at: Mon, 06 Apr 2015 16:24:44 GMT
|
158
158
|
recorded_with: VCR 2.9.3
|
@@ -21,10 +21,10 @@ http_interactions:
|
|
21
21
|
message: OK
|
22
22
|
headers:
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Mon, 06 Apr 2015 16:24:45 GMT
|
25
25
|
Set-Cookie:
|
26
|
-
- BrowserId=
|
27
|
-
|
26
|
+
- BrowserId=eu_lcdmaT9GvingBAKWQ1g;Path=/;Domain=.salesforce.com;Expires=Fri,
|
27
|
+
05-Jun-2015 16:24:45 GMT
|
28
28
|
Expires:
|
29
29
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
30
30
|
Pragma:
|
@@ -37,12 +37,12 @@ http_interactions:
|
|
37
37
|
- chunked
|
38
38
|
body:
|
39
39
|
encoding: ASCII-8BIT
|
40
|
-
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"
|
40
|
+
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1428337485662","token_type":"Bearer","instance_url":"https://<host>","signature":"ebtXTW1s538SvpA31IVo2LvVNp4Jx6yDwZUrWmmhemk=","access_token":"00D1a000000H3O9!AQ4AQFhXX0t0My8qCHdrUMfRwg3B5FPFTjOwddPzvTaHu0t9H1xiDVKOSpDxKItHiqnvYyMKqZVwaC5AIJvYk_bzVt8m7Vil"}'
|
41
41
|
http_version:
|
42
|
-
recorded_at:
|
42
|
+
recorded_at: Mon, 06 Apr 2015 16:24:45 GMT
|
43
43
|
- request:
|
44
44
|
method: get
|
45
|
-
uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c
|
45
|
+
uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c
|
46
46
|
body:
|
47
47
|
encoding: US-ASCII
|
48
48
|
string: ''
|
@@ -50,7 +50,7 @@ http_interactions:
|
|
50
50
|
User-Agent:
|
51
51
|
- Faraday v0.9.1
|
52
52
|
Authorization:
|
53
|
-
- OAuth 00D1a000000H3O9!
|
53
|
+
- OAuth 00D1a000000H3O9!AQ4AQFhXX0t0My8qCHdrUMfRwg3B5FPFTjOwddPzvTaHu0t9H1xiDVKOSpDxKItHiqnvYyMKqZVwaC5AIJvYk_bzVt8m7Vil
|
54
54
|
Accept-Encoding:
|
55
55
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
56
56
|
Accept:
|
@@ -61,23 +61,23 @@ http_interactions:
|
|
61
61
|
message: OK
|
62
62
|
headers:
|
63
63
|
Date:
|
64
|
-
-
|
64
|
+
- Mon, 06 Apr 2015 16:24:46 GMT
|
65
65
|
Set-Cookie:
|
66
|
-
- BrowserId=
|
67
|
-
|
66
|
+
- BrowserId=FPminXJRSDuBH-5_NLEcMQ;Path=/;Domain=.salesforce.com;Expires=Fri,
|
67
|
+
05-Jun-2015 16:24:46 GMT
|
68
68
|
Expires:
|
69
69
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
70
70
|
Sforce-Limit-Info:
|
71
|
-
- api-usage=
|
71
|
+
- api-usage=37/15000
|
72
72
|
Content-Type:
|
73
73
|
- application/json;charset=UTF-8
|
74
74
|
Transfer-Encoding:
|
75
75
|
- chunked
|
76
76
|
body:
|
77
77
|
encoding: ASCII-8BIT
|
78
|
-
string: '{"totalSize":
|
78
|
+
string: '{"totalSize":0,"done":true,"records":[]}'
|
79
79
|
http_version:
|
80
|
-
recorded_at:
|
80
|
+
recorded_at: Mon, 06 Apr 2015 16:24:46 GMT
|
81
81
|
- request:
|
82
82
|
method: post
|
83
83
|
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c
|
@@ -90,7 +90,7 @@ http_interactions:
|
|
90
90
|
Content-Type:
|
91
91
|
- application/json
|
92
92
|
Authorization:
|
93
|
-
- OAuth 00D1a000000H3O9!
|
93
|
+
- OAuth 00D1a000000H3O9!AQ4AQFhXX0t0My8qCHdrUMfRwg3B5FPFTjOwddPzvTaHu0t9H1xiDVKOSpDxKItHiqnvYyMKqZVwaC5AIJvYk_bzVt8m7Vil
|
94
94
|
Accept-Encoding:
|
95
95
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
96
96
|
Accept:
|
@@ -101,28 +101,28 @@ http_interactions:
|
|
101
101
|
message: Created
|
102
102
|
headers:
|
103
103
|
Date:
|
104
|
-
-
|
104
|
+
- Mon, 06 Apr 2015 16:24:47 GMT
|
105
105
|
Set-Cookie:
|
106
|
-
- BrowserId=
|
107
|
-
|
106
|
+
- BrowserId=otD1tXdiQQOC5iVIjmiABA;Path=/;Domain=.salesforce.com;Expires=Fri,
|
107
|
+
05-Jun-2015 16:24:47 GMT
|
108
108
|
Expires:
|
109
109
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
110
110
|
Sforce-Limit-Info:
|
111
|
-
- api-usage=
|
111
|
+
- api-usage=37/15000
|
112
112
|
Location:
|
113
|
-
- "/services/data/v26.0/sobjects/CustomObject__c/
|
113
|
+
- "/services/data/v26.0/sobjects/CustomObject__c/a001a000001LH2zAAG"
|
114
114
|
Content-Type:
|
115
115
|
- application/json;charset=UTF-8
|
116
116
|
Transfer-Encoding:
|
117
117
|
- chunked
|
118
118
|
body:
|
119
119
|
encoding: ASCII-8BIT
|
120
|
-
string: '{"id":"
|
120
|
+
string: '{"id":"a001a000001LH2zAAG","success":true,"errors":[]}'
|
121
121
|
http_version:
|
122
|
-
recorded_at:
|
122
|
+
recorded_at: Mon, 06 Apr 2015 16:24:47 GMT
|
123
123
|
- request:
|
124
124
|
method: get
|
125
|
-
uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%
|
125
|
+
uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001LH2zAAG%27
|
126
126
|
body:
|
127
127
|
encoding: US-ASCII
|
128
128
|
string: ''
|
@@ -130,7 +130,7 @@ http_interactions:
|
|
130
130
|
User-Agent:
|
131
131
|
- Faraday v0.9.1
|
132
132
|
Authorization:
|
133
|
-
- OAuth 00D1a000000H3O9!
|
133
|
+
- OAuth 00D1a000000H3O9!AQ4AQFhXX0t0My8qCHdrUMfRwg3B5FPFTjOwddPzvTaHu0t9H1xiDVKOSpDxKItHiqnvYyMKqZVwaC5AIJvYk_bzVt8m7Vil
|
134
134
|
Accept-Encoding:
|
135
135
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
136
136
|
Accept:
|
@@ -141,27 +141,27 @@ http_interactions:
|
|
141
141
|
message: OK
|
142
142
|
headers:
|
143
143
|
Date:
|
144
|
-
-
|
144
|
+
- Mon, 06 Apr 2015 16:24:48 GMT
|
145
145
|
Set-Cookie:
|
146
|
-
- BrowserId=
|
147
|
-
|
146
|
+
- BrowserId=t2HBOSIsQX6_1WJphKRM_w;Path=/;Domain=.salesforce.com;Expires=Fri,
|
147
|
+
05-Jun-2015 16:24:48 GMT
|
148
148
|
Expires:
|
149
149
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
150
150
|
Sforce-Limit-Info:
|
151
|
-
- api-usage=
|
151
|
+
- api-usage=36/15000
|
152
152
|
Content-Type:
|
153
153
|
- application/json;charset=UTF-8
|
154
154
|
Transfer-Encoding:
|
155
155
|
- chunked
|
156
156
|
body:
|
157
157
|
encoding: ASCII-8BIT
|
158
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/
|
158
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001LH2zAAG"},"Id":"a001a000001LH2zAAG","SystemModstamp":"2015-04-06T16:24:47.000+0000","Name":"Custom
|
159
159
|
object","Example_Field__c":"Some sample text"}]}'
|
160
160
|
http_version:
|
161
|
-
recorded_at:
|
161
|
+
recorded_at: Mon, 06 Apr 2015 16:24:48 GMT
|
162
162
|
- request:
|
163
163
|
method: get
|
164
|
-
uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%
|
164
|
+
uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001LH2zAAG%27
|
165
165
|
body:
|
166
166
|
encoding: US-ASCII
|
167
167
|
string: ''
|
@@ -169,7 +169,7 @@ http_interactions:
|
|
169
169
|
User-Agent:
|
170
170
|
- Faraday v0.9.1
|
171
171
|
Authorization:
|
172
|
-
- OAuth 00D1a000000H3O9!
|
172
|
+
- OAuth 00D1a000000H3O9!AQ4AQFhXX0t0My8qCHdrUMfRwg3B5FPFTjOwddPzvTaHu0t9H1xiDVKOSpDxKItHiqnvYyMKqZVwaC5AIJvYk_bzVt8m7Vil
|
173
173
|
Accept-Encoding:
|
174
174
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
175
175
|
Accept:
|
@@ -180,27 +180,27 @@ http_interactions:
|
|
180
180
|
message: OK
|
181
181
|
headers:
|
182
182
|
Date:
|
183
|
-
-
|
183
|
+
- Mon, 06 Apr 2015 16:24:50 GMT
|
184
184
|
Set-Cookie:
|
185
|
-
- BrowserId=
|
186
|
-
|
185
|
+
- BrowserId=dxqOpw4lTJqFcadlGiRfAg;Path=/;Domain=.salesforce.com;Expires=Fri,
|
186
|
+
05-Jun-2015 16:24:50 GMT
|
187
187
|
Expires:
|
188
188
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
189
189
|
Sforce-Limit-Info:
|
190
|
-
- api-usage=
|
190
|
+
- api-usage=37/15000
|
191
191
|
Content-Type:
|
192
192
|
- application/json;charset=UTF-8
|
193
193
|
Transfer-Encoding:
|
194
194
|
- chunked
|
195
195
|
body:
|
196
196
|
encoding: ASCII-8BIT
|
197
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/
|
197
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001LH2zAAG"},"Id":"a001a000001LH2zAAG","SystemModstamp":"2015-04-06T16:24:47.000+0000","Name":"Custom
|
198
198
|
object","Example_Field__c":"Some sample text"}]}'
|
199
199
|
http_version:
|
200
|
-
recorded_at:
|
200
|
+
recorded_at: Mon, 06 Apr 2015 16:24:50 GMT
|
201
201
|
- request:
|
202
202
|
method: delete
|
203
|
-
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/
|
203
|
+
uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/a001a000001LH2zAAG
|
204
204
|
body:
|
205
205
|
encoding: US-ASCII
|
206
206
|
string: ''
|
@@ -208,7 +208,7 @@ http_interactions:
|
|
208
208
|
User-Agent:
|
209
209
|
- Faraday v0.9.1
|
210
210
|
Authorization:
|
211
|
-
- OAuth 00D1a000000H3O9!
|
211
|
+
- OAuth 00D1a000000H3O9!AQ4AQFhXX0t0My8qCHdrUMfRwg3B5FPFTjOwddPzvTaHu0t9H1xiDVKOSpDxKItHiqnvYyMKqZVwaC5AIJvYk_bzVt8m7Vil
|
212
212
|
Accept-Encoding:
|
213
213
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
214
214
|
Accept:
|
@@ -219,17 +219,17 @@ http_interactions:
|
|
219
219
|
message: No Content
|
220
220
|
headers:
|
221
221
|
Date:
|
222
|
-
-
|
222
|
+
- Mon, 06 Apr 2015 16:24:51 GMT
|
223
223
|
Set-Cookie:
|
224
|
-
- BrowserId=
|
225
|
-
|
224
|
+
- BrowserId=7-j3HRvQRGyvVsvBUL7nGA;Path=/;Domain=.salesforce.com;Expires=Fri,
|
225
|
+
05-Jun-2015 16:24:51 GMT
|
226
226
|
Expires:
|
227
227
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
228
228
|
Sforce-Limit-Info:
|
229
|
-
- api-usage=
|
229
|
+
- api-usage=36/15000
|
230
230
|
body:
|
231
231
|
encoding: UTF-8
|
232
232
|
string: ''
|
233
233
|
http_version:
|
234
|
-
recorded_at:
|
234
|
+
recorded_at: Mon, 06 Apr 2015 16:24:51 GMT
|
235
235
|
recorded_with: VCR 2.9.3
|