restforce-db 2.2.2 → 2.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/restforce/db/associator.rb +1 -1
- data/lib/restforce/db/initializer.rb +2 -2
- data/lib/restforce/db/instances/active_record.rb +18 -8
- data/lib/restforce/db/instances/salesforce.rb +9 -0
- data/lib/restforce/db/synchronization_error.rb +40 -0
- data/lib/restforce/db/synchronizer.rb +15 -9
- data/lib/restforce/db/version.rb +1 -1
- data/lib/restforce/db.rb +9 -0
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/returns_an_associated_record_populated_with_the_Salesforce_attributes.yml +55 -55
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_no_salesforce_record_is_found_for_the_association/proceeds_without_constructing_any_records.yml +40 -40
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_the_associated_record_has_already_been_persisted/assigns_the_existing_record.yml +59 -59
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_the_associated_record_has_been_cached/uses_the_cached_record.yml +59 -59
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_the_association_is_non-building/proceeds_without_constructing_any_records.yml +50 -50
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/with_an_unrelated_association_mapping/proceeds_without_raising_an_error.yml +59 -59
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_lookups/returns_a_hash_of_the_associated_records_lookup_IDs.yml +41 -41
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_lookups/when_there_is_currently_no_associated_record/and_the_underlying_association_is_one-to-many/still_returns_a_nil_lookup_value_in_the_hash.yml +20 -20
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_lookups/when_there_is_currently_no_associated_record/returns_a_nil_lookup_value_in_the_hash.yml +23 -23
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_synced_for_/when_a_matching_associated_record_has_been_synchronized/returns_true.yml +58 -58
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_synced_for_/when_no_matching_associated_record_has_been_synchronized/returns_false.yml +58 -58
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/builds_a_number_of_associated_records_from_the_data_in_Salesforce.yml +98 -98
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_no_salesforce_record_is_found_for_the_association/proceeds_without_constructing_any_records.yml +40 -40
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_the_associated_records_have_alrady_been_persisted/constructs_the_association_from_the_existing_records.yml +98 -98
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_the_associated_records_have_been_cached/uses_the_cached_records.yml +98 -98
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_the_association_is_non-building/proceeds_without_constructing_any_records.yml +32 -32
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_synced_for_/when_a_matching_associated_record_has_been_synchronized/returns_true.yml +98 -98
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_synced_for_/when_no_matching_associated_record_has_been_synchronized/returns_false.yml +40 -40
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/and_a_nested_association_on_the_associated_mapping/recursively_builds_all_associations.yml +86 -86
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/returns_an_associated_record_populated_with_the_Salesforce_attributes.yml +59 -59
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_no_salesforce_record_is_found_for_the_association/proceeds_without_constructing_any_records.yml +40 -40
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_the_associated_record_has_already_been_persisted/assigns_the_existing_record.yml +59 -59
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_the_associated_record_has_been_cached/uses_the_cached_record.yml +59 -59
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_the_association_is_non-building/proceeds_without_constructing_any_records.yml +50 -50
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_synced_for_/when_a_matching_associated_record_has_been_synchronized/returns_true.yml +59 -59
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_synced_for_/when_no_matching_associated_record_has_been_synchronized/returns_false.yml +59 -59
- data/test/cassettes/Restforce_DB_Associator/_run/given_a_BelongsTo_association/given_another_record_for_association/when_the_Salesforce_association_is_out_of_date/updates_the_association_ID_in_Salesforce.yml +103 -103
- data/test/cassettes/Restforce_DB_Associator/_run/given_a_BelongsTo_association/given_another_record_for_association/when_the_database_association_is_out_of_date/updates_the_associated_record_in_the_database.yml +112 -112
- data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_mapping_has_no_conditions/does_not_drop_the_synchronized_database_record.yml +23 -23
- data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_does_not_meet_the_mapping_conditions/but_meets_conditions_for_a_parallel_mapping/does_not_drop_the_synchronized_database_record.yml +43 -45
- data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_does_not_meet_the_mapping_conditions/drops_the_synchronized_database_record.yml +41 -41
- data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_has_been_deleted_in_Salesforce/drops_the_synchronized_database_record.yml +20 -20
- data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_meets_the_mapping_conditions/does_not_drop_the_synchronized_database_record.yml +41 -41
- data/test/cassettes/Restforce_DB_Collector/_run/given_a_Salesforce_record_with_an_associated_database_record/returns_the_attributes_from_both_records.yml +41 -41
- data/test/cassettes/Restforce_DB_Collector/_run/given_an_existing_Salesforce_record/returns_the_attributes_from_the_Salesforce_record.yml +41 -41
- data/test/cassettes/Restforce_DB_Collector/_run/given_an_existing_database_record/returns_the_attributes_from_the_database_record.yml +15 -15
- data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_Salesforce_record/for_a_Passive_strategy/does_not_create_a_database_record.yml +23 -23
- data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_Salesforce_record/for_an_Always_strategy/creates_a_matching_database_record.yml +32 -33
- data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_database_record/for_an_Always_strategy/populates_Salesforce_with_the_new_record.yml +59 -59
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_synced_/when_a_matching_database_record_exists/returns_true.yml +32 -32
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_synced_/when_no_matching_database_record_exists/returns_false.yml +32 -32
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_update_/updates_the_local_record_with_the_passed_attributes.yml +49 -49
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_update_/updates_the_record_in_Salesforce_with_the_passed_attributes.yml +58 -58
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_updated_internally_/when_another_user_made_the_last_change/returns_false.yml +119 -0
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_updated_internally_/when_our_client_made_the_last_change/returns_true.yml +158 -0
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_all/returns_a_list_of_the_existing_records_in_Salesforce.yml +32 -32
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_create_/creates_a_record_in_Salesforce_from_the_passed_database_record_s_attributes.yml +41 -41
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_create_/updates_the_database_record_with_the_Salesforce_record_s_ID.yml +41 -41
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/finds_existing_records_in_Salesforce.yml +32 -32
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/given_a_set_of_mapping_conditions/when_a_record_does_not_meet_the_conditions/does_not_find_the_record.yml +31 -31
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/given_a_set_of_mapping_conditions/when_a_record_meets_the_conditions/finds_the_record.yml +32 -32
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/returns_nil_when_no_matching_record_exists.yml +14 -14
- data/test/cassettes/Restforce_DB_Strategies_Always/_build_/given_a_Salesforce_record/wants_to_build_a_new_matching_record.yml +32 -32
- data/test/cassettes/Restforce_DB_Strategies_Always/_build_/given_a_Salesforce_record/with_a_corresponding_database_record/does_not_want_to_build_a_new_record.yml +32 -32
- data/test/cassettes/Restforce_DB_Strategies_Associated/_build_/given_an_inverse_mapping/with_a_synchronized_association_record/wants_to_build_a_new_record.yml +59 -59
- data/test/cassettes/Restforce_DB_Strategies_Associated/_build_/given_an_inverse_mapping/with_an_existing_database_record/does_not_want_to_build_a_new_record.yml +50 -50
- data/test/cassettes/Restforce_DB_Strategies_Associated/_build_/given_an_inverse_mapping/with_no_synchronized_association_record/does_not_want_to_build_a_new_record.yml +59 -59
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/updates_the_database_record.yml +125 -49
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/updates_the_salesforce_record.yml +58 -58
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/when_the_change_timestamp_is_stale/does_not_update_the_database_record.yml +125 -36
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/when_the_change_timestamp_is_stale/does_not_update_the_salesforce_record.yml +44 -44
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/when_the_changes_are_current/updates_the_database_record.yml +323 -0
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/when_the_changes_are_current/updates_the_salesforce_record.yml +286 -0
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_no_associated_database_record/does_nothing_for_this_specific_mapping.yml +41 -41
- data/test/lib/restforce/db/instances/active_record_test.rb +44 -0
- data/test/lib/restforce/db/instances/salesforce_test.rb +20 -0
- data/test/lib/restforce/db/synchronizer_test.rb +25 -13
- metadata +7 -2
@@ -21,10 +21,10 @@ http_interactions:
|
|
21
21
|
message: OK
|
22
22
|
headers:
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Mon, 08 Jun 2015 22:12:17 GMT
|
25
25
|
Set-Cookie:
|
26
|
-
- BrowserId=
|
27
|
-
|
26
|
+
- BrowserId=mfWZFYFLRKes6F-kTAqq7w;Path=/;Domain=.salesforce.com;Expires=Fri,
|
27
|
+
07-Aug-2015 22:12:17 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":"
|
41
|
-
http_version:
|
42
|
-
recorded_at:
|
40
|
+
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1433801537311","token_type":"Bearer","instance_url":"https://<host>","signature":"y2V0cSdABtDKVkRvwsl4IPDEYiVsf+9Ak3Z9mWLlyh4=","access_token":"00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz"}'
|
41
|
+
http_version:
|
42
|
+
recorded_at: Mon, 08 Jun 2015 22:12:18 GMT
|
43
43
|
- request:
|
44
44
|
method: post
|
45
45
|
uri: https://<host>/services/data/<api_version>/sobjects/Contact
|
@@ -52,7 +52,7 @@ http_interactions:
|
|
52
52
|
Content-Type:
|
53
53
|
- application/json
|
54
54
|
Authorization:
|
55
|
-
- OAuth 00D1a000000H3O9!
|
55
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
56
56
|
Accept-Encoding:
|
57
57
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
58
58
|
Accept:
|
@@ -63,38 +63,38 @@ http_interactions:
|
|
63
63
|
message: Created
|
64
64
|
headers:
|
65
65
|
Date:
|
66
|
-
-
|
66
|
+
- Mon, 08 Jun 2015 22:12:17 GMT
|
67
67
|
Set-Cookie:
|
68
|
-
- BrowserId=
|
69
|
-
|
68
|
+
- BrowserId=hf3mgU77RryeHNZ0Kqe45w;Path=/;Domain=.salesforce.com;Expires=Fri,
|
69
|
+
07-Aug-2015 22:12:17 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=6/15000
|
74
74
|
Location:
|
75
|
-
- "/services/data/<api_version>/sobjects/Contact/
|
75
|
+
- "/services/data/<api_version>/sobjects/Contact/0031a000004cfMPAAY"
|
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":"
|
83
|
-
http_version:
|
84
|
-
recorded_at:
|
82
|
+
string: '{"id":"0031a000004cfMPAAY","success":true,"errors":[]}'
|
83
|
+
http_version:
|
84
|
+
recorded_at: Mon, 08 Jun 2015 22:12:19 GMT
|
85
85
|
- request:
|
86
86
|
method: post
|
87
87
|
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c
|
88
88
|
body:
|
89
89
|
encoding: UTF-8
|
90
|
-
string: '{"Friend__c":"
|
90
|
+
string: '{"Friend__c":"0031a000004cfMPAAY"}'
|
91
91
|
headers:
|
92
92
|
User-Agent:
|
93
93
|
- Faraday v0.9.1
|
94
94
|
Content-Type:
|
95
95
|
- application/json
|
96
96
|
Authorization:
|
97
|
-
- OAuth 00D1a000000H3O9!
|
97
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
98
98
|
Accept-Encoding:
|
99
99
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
100
100
|
Accept:
|
@@ -105,28 +105,28 @@ http_interactions:
|
|
105
105
|
message: Created
|
106
106
|
headers:
|
107
107
|
Date:
|
108
|
-
-
|
108
|
+
- Mon, 08 Jun 2015 22:12:17 GMT
|
109
109
|
Set-Cookie:
|
110
|
-
- BrowserId=
|
111
|
-
|
110
|
+
- BrowserId=oabAihgVQxa_DsB1lacHuw;Path=/;Domain=.salesforce.com;Expires=Fri,
|
111
|
+
07-Aug-2015 22:12:17 GMT
|
112
112
|
Expires:
|
113
113
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
114
114
|
Sforce-Limit-Info:
|
115
|
-
- api-usage=
|
115
|
+
- api-usage=6/15000
|
116
116
|
Location:
|
117
|
-
- "/services/data/<api_version>/sobjects/CustomObject__c/
|
117
|
+
- "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF4MAAU"
|
118
118
|
Content-Type:
|
119
119
|
- application/json;charset=UTF-8
|
120
120
|
Transfer-Encoding:
|
121
121
|
- chunked
|
122
122
|
body:
|
123
123
|
encoding: ASCII-8BIT
|
124
|
-
string: '{"id":"
|
125
|
-
http_version:
|
126
|
-
recorded_at:
|
124
|
+
string: '{"id":"a001a000001cF4MAAU","success":true,"errors":[]}'
|
125
|
+
http_version:
|
126
|
+
recorded_at: Mon, 08 Jun 2015 22:12:19 GMT
|
127
127
|
- request:
|
128
128
|
method: get
|
129
|
-
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Email%20from%20Contact%20where%20Id%20=%20%
|
129
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20LastModifiedById,%20Email%20from%20Contact%20where%20Id%20=%20%270031a000004cfMPAAY%27
|
130
130
|
body:
|
131
131
|
encoding: US-ASCII
|
132
132
|
string: ''
|
@@ -134,7 +134,7 @@ http_interactions:
|
|
134
134
|
User-Agent:
|
135
135
|
- Faraday v0.9.1
|
136
136
|
Authorization:
|
137
|
-
- OAuth 00D1a000000H3O9!
|
137
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
138
138
|
Accept-Encoding:
|
139
139
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
140
140
|
Accept:
|
@@ -145,26 +145,26 @@ http_interactions:
|
|
145
145
|
message: OK
|
146
146
|
headers:
|
147
147
|
Date:
|
148
|
-
-
|
148
|
+
- Mon, 08 Jun 2015 22:12:17 GMT
|
149
149
|
Set-Cookie:
|
150
|
-
- BrowserId=
|
151
|
-
|
150
|
+
- BrowserId=R-CF7LBuSZWk-e2lqicynQ;Path=/;Domain=.salesforce.com;Expires=Fri,
|
151
|
+
07-Aug-2015 22:12:17 GMT
|
152
152
|
Expires:
|
153
153
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
154
154
|
Sforce-Limit-Info:
|
155
|
-
- api-usage=
|
155
|
+
- api-usage=7/15000
|
156
156
|
Content-Type:
|
157
157
|
- application/json;charset=UTF-8
|
158
158
|
Transfer-Encoding:
|
159
159
|
- chunked
|
160
160
|
body:
|
161
161
|
encoding: ASCII-8BIT
|
162
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/<api_version>/sobjects/Contact/
|
163
|
-
http_version:
|
164
|
-
recorded_at:
|
162
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/<api_version>/sobjects/Contact/0031a000004cfMPAAY"},"Id":"0031a000004cfMPAAY","SystemModstamp":"2015-06-08T22:12:17.000+0000","LastModifiedById":"0051a000000UGT8AAO","Email":"somebody@example.com"}]}'
|
163
|
+
http_version:
|
164
|
+
recorded_at: Mon, 08 Jun 2015 22:12:19 GMT
|
165
165
|
- request:
|
166
166
|
method: delete
|
167
|
-
uri: https://<host>/services/data/<api_version>/sobjects/Contact/
|
167
|
+
uri: https://<host>/services/data/<api_version>/sobjects/Contact/0031a000004cfMPAAY
|
168
168
|
body:
|
169
169
|
encoding: US-ASCII
|
170
170
|
string: ''
|
@@ -172,7 +172,7 @@ http_interactions:
|
|
172
172
|
User-Agent:
|
173
173
|
- Faraday v0.9.1
|
174
174
|
Authorization:
|
175
|
-
- OAuth 00D1a000000H3O9!
|
175
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
176
176
|
Accept-Encoding:
|
177
177
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
178
178
|
Accept:
|
@@ -183,22 +183,22 @@ http_interactions:
|
|
183
183
|
message: No Content
|
184
184
|
headers:
|
185
185
|
Date:
|
186
|
-
-
|
186
|
+
- Mon, 08 Jun 2015 22:12:18 GMT
|
187
187
|
Set-Cookie:
|
188
|
-
- BrowserId=
|
189
|
-
|
188
|
+
- BrowserId=Szics5M5RwKPI86zVq1jMA;Path=/;Domain=.salesforce.com;Expires=Fri,
|
189
|
+
07-Aug-2015 22:12:18 GMT
|
190
190
|
Expires:
|
191
191
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
192
192
|
Sforce-Limit-Info:
|
193
|
-
- api-usage=
|
193
|
+
- api-usage=6/15000
|
194
194
|
body:
|
195
195
|
encoding: UTF-8
|
196
196
|
string: ''
|
197
|
-
http_version:
|
198
|
-
recorded_at:
|
197
|
+
http_version:
|
198
|
+
recorded_at: Mon, 08 Jun 2015 22:12:19 GMT
|
199
199
|
- request:
|
200
200
|
method: delete
|
201
|
-
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/
|
201
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF4MAAU
|
202
202
|
body:
|
203
203
|
encoding: US-ASCII
|
204
204
|
string: ''
|
@@ -206,7 +206,7 @@ http_interactions:
|
|
206
206
|
User-Agent:
|
207
207
|
- Faraday v0.9.1
|
208
208
|
Authorization:
|
209
|
-
- OAuth 00D1a000000H3O9!
|
209
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
210
210
|
Accept-Encoding:
|
211
211
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
212
212
|
Accept:
|
@@ -217,17 +217,17 @@ http_interactions:
|
|
217
217
|
message: No Content
|
218
218
|
headers:
|
219
219
|
Date:
|
220
|
-
-
|
220
|
+
- Mon, 08 Jun 2015 22:12:18 GMT
|
221
221
|
Set-Cookie:
|
222
|
-
- BrowserId
|
223
|
-
|
222
|
+
- BrowserId=W_8hKeKXT1KDW2z6JSJ1iQ;Path=/;Domain=.salesforce.com;Expires=Fri,
|
223
|
+
07-Aug-2015 22:12:18 GMT
|
224
224
|
Expires:
|
225
225
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
226
226
|
Sforce-Limit-Info:
|
227
|
-
- api-usage=
|
227
|
+
- api-usage=8/15000
|
228
228
|
body:
|
229
229
|
encoding: UTF-8
|
230
230
|
string: ''
|
231
|
-
http_version:
|
232
|
-
recorded_at:
|
231
|
+
http_version:
|
232
|
+
recorded_at: Mon, 08 Jun 2015 22:12:20 GMT
|
233
233
|
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, 08 Jun 2015 22:12:30 GMT
|
25
25
|
Set-Cookie:
|
26
|
-
- BrowserId=
|
27
|
-
|
26
|
+
- BrowserId=zHBKawrUQCO-J1NpwDB4Fw;Path=/;Domain=.salesforce.com;Expires=Fri,
|
27
|
+
07-Aug-2015 22:12:30 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":"
|
41
|
-
http_version:
|
42
|
-
recorded_at:
|
40
|
+
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1433801550816","token_type":"Bearer","instance_url":"https://<host>","signature":"4q2jUl84gNBbC1ilLV8aRYXAOiRfh6xHAXnhtzwO+kc=","access_token":"00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz"}'
|
41
|
+
http_version:
|
42
|
+
recorded_at: Mon, 08 Jun 2015 22:12:32 GMT
|
43
43
|
- request:
|
44
44
|
method: post
|
45
45
|
uri: https://<host>/services/data/<api_version>/sobjects/Contact
|
@@ -52,7 +52,7 @@ http_interactions:
|
|
52
52
|
Content-Type:
|
53
53
|
- application/json
|
54
54
|
Authorization:
|
55
|
-
- OAuth 00D1a000000H3O9!
|
55
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
56
56
|
Accept-Encoding:
|
57
57
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
58
58
|
Accept:
|
@@ -63,38 +63,38 @@ http_interactions:
|
|
63
63
|
message: Created
|
64
64
|
headers:
|
65
65
|
Date:
|
66
|
-
-
|
66
|
+
- Mon, 08 Jun 2015 22:12:30 GMT
|
67
67
|
Set-Cookie:
|
68
|
-
- BrowserId=
|
69
|
-
|
68
|
+
- BrowserId=QxoHhU4ARoav3a-LayDCTQ;Path=/;Domain=.salesforce.com;Expires=Fri,
|
69
|
+
07-Aug-2015 22:12:30 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=13/15000
|
74
74
|
Location:
|
75
|
-
- "/services/data/<api_version>/sobjects/Contact/
|
75
|
+
- "/services/data/<api_version>/sobjects/Contact/0031a000004cfMjAAI"
|
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":"
|
83
|
-
http_version:
|
84
|
-
recorded_at:
|
82
|
+
string: '{"id":"0031a000004cfMjAAI","success":true,"errors":[]}'
|
83
|
+
http_version:
|
84
|
+
recorded_at: Mon, 08 Jun 2015 22:12:32 GMT
|
85
85
|
- request:
|
86
86
|
method: post
|
87
87
|
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c
|
88
88
|
body:
|
89
89
|
encoding: UTF-8
|
90
|
-
string: '{"Friend__c":"
|
90
|
+
string: '{"Friend__c":"0031a000004cfMjAAI"}'
|
91
91
|
headers:
|
92
92
|
User-Agent:
|
93
93
|
- Faraday v0.9.1
|
94
94
|
Content-Type:
|
95
95
|
- application/json
|
96
96
|
Authorization:
|
97
|
-
- OAuth 00D1a000000H3O9!
|
97
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
98
98
|
Accept-Encoding:
|
99
99
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
100
100
|
Accept:
|
@@ -105,28 +105,28 @@ http_interactions:
|
|
105
105
|
message: Created
|
106
106
|
headers:
|
107
107
|
Date:
|
108
|
-
-
|
108
|
+
- Mon, 08 Jun 2015 22:12:31 GMT
|
109
109
|
Set-Cookie:
|
110
|
-
- BrowserId=
|
111
|
-
|
110
|
+
- BrowserId=QFUtSuGFQI6ZkNW7Ne60ZQ;Path=/;Domain=.salesforce.com;Expires=Fri,
|
111
|
+
07-Aug-2015 22:12:31 GMT
|
112
112
|
Expires:
|
113
113
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
114
114
|
Sforce-Limit-Info:
|
115
|
-
- api-usage=
|
115
|
+
- api-usage=9/15000
|
116
116
|
Location:
|
117
|
-
- "/services/data/<api_version>/sobjects/CustomObject__c/
|
117
|
+
- "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF55AAE"
|
118
118
|
Content-Type:
|
119
119
|
- application/json;charset=UTF-8
|
120
120
|
Transfer-Encoding:
|
121
121
|
- chunked
|
122
122
|
body:
|
123
123
|
encoding: ASCII-8BIT
|
124
|
-
string: '{"id":"
|
125
|
-
http_version:
|
126
|
-
recorded_at:
|
124
|
+
string: '{"id":"a001a000001cF55AAE","success":true,"errors":[]}'
|
125
|
+
http_version:
|
126
|
+
recorded_at: Mon, 08 Jun 2015 22:12:32 GMT
|
127
127
|
- request:
|
128
128
|
method: get
|
129
|
-
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Email%20from%20Contact%20where%20Id%20=%20%
|
129
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20LastModifiedById,%20Email%20from%20Contact%20where%20Id%20=%20%270031a000004cfMjAAI%27
|
130
130
|
body:
|
131
131
|
encoding: US-ASCII
|
132
132
|
string: ''
|
@@ -134,7 +134,7 @@ http_interactions:
|
|
134
134
|
User-Agent:
|
135
135
|
- Faraday v0.9.1
|
136
136
|
Authorization:
|
137
|
-
- OAuth 00D1a000000H3O9!
|
137
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
138
138
|
Accept-Encoding:
|
139
139
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
140
140
|
Accept:
|
@@ -145,26 +145,26 @@ http_interactions:
|
|
145
145
|
message: OK
|
146
146
|
headers:
|
147
147
|
Date:
|
148
|
-
-
|
148
|
+
- Mon, 08 Jun 2015 22:12:31 GMT
|
149
149
|
Set-Cookie:
|
150
|
-
- BrowserId=
|
151
|
-
|
150
|
+
- BrowserId=FAFJr02oR4G8XgA5uUB0xQ;Path=/;Domain=.salesforce.com;Expires=Fri,
|
151
|
+
07-Aug-2015 22:12:31 GMT
|
152
152
|
Expires:
|
153
153
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
154
154
|
Sforce-Limit-Info:
|
155
|
-
- api-usage=
|
155
|
+
- api-usage=10/15000
|
156
156
|
Content-Type:
|
157
157
|
- application/json;charset=UTF-8
|
158
158
|
Transfer-Encoding:
|
159
159
|
- chunked
|
160
160
|
body:
|
161
161
|
encoding: ASCII-8BIT
|
162
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/<api_version>/sobjects/Contact/
|
163
|
-
http_version:
|
164
|
-
recorded_at:
|
162
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/<api_version>/sobjects/Contact/0031a000004cfMjAAI"},"Id":"0031a000004cfMjAAI","SystemModstamp":"2015-06-08T22:12:31.000+0000","LastModifiedById":"0051a000000UGT8AAO","Email":"somebody@example.com"}]}'
|
163
|
+
http_version:
|
164
|
+
recorded_at: Mon, 08 Jun 2015 22:12:32 GMT
|
165
165
|
- request:
|
166
166
|
method: get
|
167
|
-
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c%20where%20Friend__c%20=%20%
|
167
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20LastModifiedById,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c%20where%20Friend__c%20=%20%270031a000004cfMjAAI%27
|
168
168
|
body:
|
169
169
|
encoding: US-ASCII
|
170
170
|
string: ''
|
@@ -172,7 +172,7 @@ http_interactions:
|
|
172
172
|
User-Agent:
|
173
173
|
- Faraday v0.9.1
|
174
174
|
Authorization:
|
175
|
-
- OAuth 00D1a000000H3O9!
|
175
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
176
176
|
Accept-Encoding:
|
177
177
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
178
178
|
Accept:
|
@@ -183,26 +183,26 @@ http_interactions:
|
|
183
183
|
message: OK
|
184
184
|
headers:
|
185
185
|
Date:
|
186
|
-
-
|
186
|
+
- Mon, 08 Jun 2015 22:12:31 GMT
|
187
187
|
Set-Cookie:
|
188
|
-
- BrowserId=
|
189
|
-
|
188
|
+
- BrowserId=2Ix0noQAQGy0xLYEuzNVIQ;Path=/;Domain=.salesforce.com;Expires=Fri,
|
189
|
+
07-Aug-2015 22:12:31 GMT
|
190
190
|
Expires:
|
191
191
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
192
192
|
Sforce-Limit-Info:
|
193
|
-
- api-usage=
|
193
|
+
- api-usage=9/15000
|
194
194
|
Content-Type:
|
195
195
|
- application/json;charset=UTF-8
|
196
196
|
Transfer-Encoding:
|
197
197
|
- chunked
|
198
198
|
body:
|
199
199
|
encoding: ASCII-8BIT
|
200
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/
|
201
|
-
http_version:
|
202
|
-
recorded_at:
|
200
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF55AAE"},"Id":"a001a000001cF55AAE","SystemModstamp":"2015-06-08T22:12:31.000+0000","LastModifiedById":"0051a000000UGT8AAO","Name":"a001a000001cF55","Example_Field__c":null,"Friend__c":"0031a000004cfMjAAI"}]}'
|
201
|
+
http_version:
|
202
|
+
recorded_at: Mon, 08 Jun 2015 22:12:33 GMT
|
203
203
|
- request:
|
204
204
|
method: delete
|
205
|
-
uri: https://<host>/services/data/<api_version>/sobjects/Contact/
|
205
|
+
uri: https://<host>/services/data/<api_version>/sobjects/Contact/0031a000004cfMjAAI
|
206
206
|
body:
|
207
207
|
encoding: US-ASCII
|
208
208
|
string: ''
|
@@ -210,7 +210,7 @@ http_interactions:
|
|
210
210
|
User-Agent:
|
211
211
|
- Faraday v0.9.1
|
212
212
|
Authorization:
|
213
|
-
- OAuth 00D1a000000H3O9!
|
213
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
214
214
|
Accept-Encoding:
|
215
215
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
216
216
|
Accept:
|
@@ -221,22 +221,22 @@ http_interactions:
|
|
221
221
|
message: No Content
|
222
222
|
headers:
|
223
223
|
Date:
|
224
|
-
-
|
224
|
+
- Mon, 08 Jun 2015 22:12:31 GMT
|
225
225
|
Set-Cookie:
|
226
|
-
- BrowserId=
|
227
|
-
|
226
|
+
- BrowserId=bDbpkxxzTPSbwjsRYfLhug;Path=/;Domain=.salesforce.com;Expires=Fri,
|
227
|
+
07-Aug-2015 22:12:31 GMT
|
228
228
|
Expires:
|
229
229
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
230
230
|
Sforce-Limit-Info:
|
231
|
-
- api-usage=
|
231
|
+
- api-usage=9/15000
|
232
232
|
body:
|
233
233
|
encoding: UTF-8
|
234
234
|
string: ''
|
235
|
-
http_version:
|
236
|
-
recorded_at:
|
235
|
+
http_version:
|
236
|
+
recorded_at: Mon, 08 Jun 2015 22:12:33 GMT
|
237
237
|
- request:
|
238
238
|
method: delete
|
239
|
-
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/
|
239
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF55AAE
|
240
240
|
body:
|
241
241
|
encoding: US-ASCII
|
242
242
|
string: ''
|
@@ -244,7 +244,7 @@ http_interactions:
|
|
244
244
|
User-Agent:
|
245
245
|
- Faraday v0.9.1
|
246
246
|
Authorization:
|
247
|
-
- OAuth 00D1a000000H3O9!
|
247
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
248
248
|
Accept-Encoding:
|
249
249
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
250
250
|
Accept:
|
@@ -255,17 +255,17 @@ http_interactions:
|
|
255
255
|
message: No Content
|
256
256
|
headers:
|
257
257
|
Date:
|
258
|
-
-
|
258
|
+
- Mon, 08 Jun 2015 22:12:32 GMT
|
259
259
|
Set-Cookie:
|
260
|
-
- BrowserId=
|
261
|
-
|
260
|
+
- BrowserId=KxBVqIbYQ2SC3LMP_NCt0w;Path=/;Domain=.salesforce.com;Expires=Fri,
|
261
|
+
07-Aug-2015 22:12:32 GMT
|
262
262
|
Expires:
|
263
263
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
264
264
|
Sforce-Limit-Info:
|
265
|
-
- api-usage=
|
265
|
+
- api-usage=10/15000
|
266
266
|
body:
|
267
267
|
encoding: UTF-8
|
268
268
|
string: ''
|
269
|
-
http_version:
|
270
|
-
recorded_at:
|
269
|
+
http_version:
|
270
|
+
recorded_at: Mon, 08 Jun 2015 22:12:33 GMT
|
271
271
|
recorded_with: VCR 2.9.3
|