restforce-db 2.0.1 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -0
  3. data/lib/restforce/db/associations/base.rb +7 -7
  4. data/lib/restforce/db/associations/belongs_to.rb +6 -10
  5. data/lib/restforce/db/associations/foreign_key.rb +1 -2
  6. data/lib/restforce/db/associations/has_many.rb +2 -1
  7. data/lib/restforce/db/associations/has_one.rb +2 -1
  8. data/lib/restforce/db/cleaner.rb +25 -3
  9. data/lib/restforce/db/configuration.rb +7 -0
  10. data/lib/restforce/db/record_types/active_record.rb +5 -1
  11. data/lib/restforce/db/version.rb +1 -1
  12. data/lib/restforce/db.rb +1 -0
  13. data/test/cassettes/Restforce_DB/accessing_Salesforce/uses_the_configured_credentials.yml +1 -1
  14. data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/returns_an_associated_record_populated_with_the_Salesforce_attributes.yml +17 -17
  15. 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 +11 -11
  16. 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 +17 -17
  17. data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_the_associated_record_has_been_cached/uses_the_cached_record.yml +17 -17
  18. data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_the_association_is_non-building/proceeds_without_constructing_any_records.yml +14 -14
  19. data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/with_an_unrelated_association_mapping/proceeds_without_raising_an_error.yml +17 -17
  20. data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_lookups/returns_a_hash_of_the_associated_records_lookup_IDs.yml +11 -11
  21. 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 +119 -0
  22. 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 +6 -6
  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 +17 -17
  24. data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_synced_for_/when_no_matching_associated_record_has_been_synchronized/returns_false.yml +17 -17
  25. data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/builds_a_number_of_associated_records_from_the_data_in_Salesforce.yml +29 -29
  26. 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 +11 -11
  27. 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 +29 -29
  28. data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_the_associated_records_have_been_cached/uses_the_cached_records.yml +29 -29
  29. data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_the_association_is_non-building/proceeds_without_constructing_any_records.yml +9 -9
  30. data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_synced_for_/when_a_matching_associated_record_has_been_synchronized/returns_true.yml +29 -29
  31. data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_synced_for_/when_no_matching_associated_record_has_been_synchronized/returns_false.yml +11 -11
  32. 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 +25 -25
  33. data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/returns_an_associated_record_populated_with_the_Salesforce_attributes.yml +17 -17
  34. 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 +11 -11
  35. 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 +17 -17
  36. data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_the_associated_record_has_been_cached/uses_the_cached_record.yml +17 -17
  37. data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_the_association_is_non-building/proceeds_without_constructing_any_records.yml +14 -14
  38. data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_synced_for_/when_a_matching_associated_record_has_been_synchronized/returns_true.yml +17 -17
  39. data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_synced_for_/when_no_matching_associated_record_has_been_synchronized/returns_false.yml +17 -17
  40. 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 +30 -30
  41. 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 +33 -33
  42. 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 +6 -6
  43. 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 +238 -0
  44. data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_does_not_meet_the_mapping_conditions/{for_a_non-Passive_strategy/drops_the_synchronized_database_record.yml → drops_the_synchronized_database_record.yml} +11 -11
  45. 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 +12 -12
  46. data/test/cassettes/Restforce_DB_Collector/_run/given_a_Salesforce_record_with_an_associated_database_record/returns_the_attributes_from_both_records.yml +12 -12
  47. data/test/cassettes/Restforce_DB_Collector/_run/given_an_existing_Salesforce_record/returns_the_attributes_from_the_Salesforce_record.yml +12 -12
  48. data/test/cassettes/Restforce_DB_Collector/_run/given_an_existing_database_record/returns_the_attributes_from_the_database_record.yml +3 -3
  49. data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_Salesforce_record/for_a_Passive_strategy/does_not_create_a_database_record.yml +6 -6
  50. data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_Salesforce_record/for_an_Always_strategy/creates_a_matching_database_record.yml +10 -10
  51. data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_database_record/for_an_Always_strategy/populates_Salesforce_with_the_new_record.yml +17 -17
  52. data/test/cassettes/Restforce_DB_Instances_Salesforce/_synced_/when_a_matching_database_record_exists/returns_true.yml +9 -9
  53. data/test/cassettes/Restforce_DB_Instances_Salesforce/_synced_/when_no_matching_database_record_exists/returns_false.yml +9 -9
  54. data/test/cassettes/Restforce_DB_Instances_Salesforce/_update_/updates_the_local_record_with_the_passed_attributes.yml +14 -14
  55. data/test/cassettes/Restforce_DB_Instances_Salesforce/_update_/updates_the_record_in_Salesforce_with_the_passed_attributes.yml +17 -17
  56. data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_all/returns_a_list_of_the_existing_records_in_Salesforce.yml +9 -9
  57. data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_create_/creates_a_record_in_Salesforce_from_the_passed_database_record_s_attributes.yml +12 -12
  58. data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_create_/updates_the_database_record_with_the_Salesforce_record_s_ID.yml +12 -12
  59. data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/finds_existing_records_in_Salesforce.yml +9 -9
  60. 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 +8 -8
  61. data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/given_a_set_of_mapping_conditions/when_a_record_meets_the_conditions/finds_the_record.yml +9 -9
  62. data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/returns_nil_when_no_matching_record_exists.yml +3 -3
  63. data/test/cassettes/Restforce_DB_Strategies_Always/_build_/given_a_Salesforce_record/wants_to_build_a_new_matching_record.yml +9 -9
  64. 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 +9 -9
  65. data/test/cassettes/Restforce_DB_Strategies_Associated/_build_/given_an_inverse_mapping/with_a_synchronized_association_record/wants_to_build_a_new_record.yml +17 -17
  66. 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 +14 -14
  67. 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 +17 -17
  68. data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/updates_the_database_record.yml +14 -14
  69. data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/updates_the_salesforce_record.yml +17 -17
  70. data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_no_associated_database_record/does_nothing_for_this_specific_mapping.yml +12 -12
  71. data/test/lib/restforce/db/associations/belongs_to_test.rb +17 -0
  72. data/test/lib/restforce/db/cleaner_test.rb +20 -4
  73. data/test/support/active_record.rb +3 -0
  74. data/test/support/vcr.rb +8 -0
  75. metadata +5 -3
@@ -0,0 +1,238 @@
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
+ - Tue, 19 May 2015 23:34:06 GMT
25
+ Set-Cookie:
26
+ - BrowserId=_VzSmIBGQDSnHzsFd92wSw;Path=/;Domain=.salesforce.com;Expires=Sat,
27
+ 18-Jul-2015 23:34:06 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":"1432078446774","token_type":"Bearer","instance_url":"https://<host>","signature":"48fp5x1JIofOq/1TfWCcVBdJ9avsYcASae3gNE0nvY8=","access_token":"00D1a000000H3O9!AQ4AQIsaMmpVY0MkRAqWjHsN6PVfiwFjj_vqrELuCJU8J.FPDa6glYHoGFCZl6CQZWwdOfR89R0VSsJBD9SUvJv1jfsIJGAB"}'
41
+ http_version:
42
+ recorded_at: Tue, 19 May 2015 23:34:07 GMT
43
+ - request:
44
+ method: post
45
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c
46
+ body:
47
+ encoding: UTF-8
48
+ string: '{"Name":"Are you going to Scarborough Fair?","Example_Field__c":"Parsley,
49
+ Sage, Rosemary, and Thyme."}'
50
+ headers:
51
+ User-Agent:
52
+ - Faraday v0.9.1
53
+ Content-Type:
54
+ - application/json
55
+ Authorization:
56
+ - OAuth 00D1a000000H3O9!AQ4AQIsaMmpVY0MkRAqWjHsN6PVfiwFjj_vqrELuCJU8J.FPDa6glYHoGFCZl6CQZWwdOfR89R0VSsJBD9SUvJv1jfsIJGAB
57
+ Accept-Encoding:
58
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
59
+ Accept:
60
+ - "*/*"
61
+ response:
62
+ status:
63
+ code: 201
64
+ message: Created
65
+ headers:
66
+ Date:
67
+ - Tue, 19 May 2015 23:34:07 GMT
68
+ Set-Cookie:
69
+ - BrowserId=DkVjne2rRouMphjk0Sm1kQ;Path=/;Domain=.salesforce.com;Expires=Sat,
70
+ 18-Jul-2015 23:34:07 GMT
71
+ Expires:
72
+ - Thu, 01 Jan 1970 00:00:00 GMT
73
+ Sforce-Limit-Info:
74
+ - api-usage=17/15000
75
+ Location:
76
+ - "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001aBJtAAM"
77
+ Content-Type:
78
+ - application/json;charset=UTF-8
79
+ Transfer-Encoding:
80
+ - chunked
81
+ body:
82
+ encoding: ASCII-8BIT
83
+ string: '{"id":"a001a000001aBJtAAM","success":true,"errors":[]}'
84
+ http_version:
85
+ recorded_at: Tue, 19 May 2015 23:34:08 GMT
86
+ - request:
87
+ method: get
88
+ uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c
89
+ body:
90
+ encoding: US-ASCII
91
+ string: ''
92
+ headers:
93
+ User-Agent:
94
+ - Faraday v0.9.1
95
+ Authorization:
96
+ - OAuth 00D1a000000H3O9!AQ4AQIsaMmpVY0MkRAqWjHsN6PVfiwFjj_vqrELuCJU8J.FPDa6glYHoGFCZl6CQZWwdOfR89R0VSsJBD9SUvJv1jfsIJGAB
97
+ Accept-Encoding:
98
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
99
+ Accept:
100
+ - "*/*"
101
+ response:
102
+ status:
103
+ code: 200
104
+ message: OK
105
+ headers:
106
+ Date:
107
+ - Tue, 19 May 2015 23:34:08 GMT
108
+ Set-Cookie:
109
+ - BrowserId=mEliqh0IQs-g-XTscrAhQg;Path=/;Domain=.salesforce.com;Expires=Sat,
110
+ 18-Jul-2015 23:34:08 GMT
111
+ Expires:
112
+ - Thu, 01 Jan 1970 00:00:00 GMT
113
+ Sforce-Limit-Info:
114
+ - api-usage=17/15000
115
+ Content-Type:
116
+ - application/json;charset=UTF-8
117
+ Transfer-Encoding:
118
+ - chunked
119
+ body:
120
+ encoding: ASCII-8BIT
121
+ string: '{"totalSize":2,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001a60JAAQ"},"Id":"a001a000001a60JAAQ","SystemModstamp":"2015-05-18T22:46:05.000+0000","Name":"SAMPLE","Example_Field__c":null},{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001aBJtAAM"},"Id":"a001a000001aBJtAAM","SystemModstamp":"2015-05-19T23:34:07.000+0000","Name":"Are
122
+ you going to Scarborough Fair?","Example_Field__c":"Parsley, Sage, Rosemary,
123
+ and Thyme."}]}'
124
+ http_version:
125
+ recorded_at: Tue, 19 May 2015 23:34:09 GMT
126
+ - request:
127
+ method: get
128
+ uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Name%20!=%20%27Are%20you%20going%20to%20Scarborough%20Fair?%27
129
+ body:
130
+ encoding: US-ASCII
131
+ string: ''
132
+ headers:
133
+ User-Agent:
134
+ - Faraday v0.9.1
135
+ Authorization:
136
+ - OAuth 00D1a000000H3O9!AQ4AQIsaMmpVY0MkRAqWjHsN6PVfiwFjj_vqrELuCJU8J.FPDa6glYHoGFCZl6CQZWwdOfR89R0VSsJBD9SUvJv1jfsIJGAB
137
+ Accept-Encoding:
138
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
139
+ Accept:
140
+ - "*/*"
141
+ response:
142
+ status:
143
+ code: 200
144
+ message: OK
145
+ headers:
146
+ Date:
147
+ - Tue, 19 May 2015 23:34:09 GMT
148
+ Set-Cookie:
149
+ - BrowserId=2pGvHX3ZRECV7rJT4dC3fA;Path=/;Domain=.salesforce.com;Expires=Sat,
150
+ 18-Jul-2015 23:34:09 GMT
151
+ Expires:
152
+ - Thu, 01 Jan 1970 00:00:00 GMT
153
+ Sforce-Limit-Info:
154
+ - api-usage=17/15000
155
+ Content-Type:
156
+ - application/json;charset=UTF-8
157
+ Transfer-Encoding:
158
+ - chunked
159
+ body:
160
+ encoding: ASCII-8BIT
161
+ string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001a60JAAQ"},"Id":"a001a000001a60JAAQ","SystemModstamp":"2015-05-18T22:46:05.000+0000","Name":"SAMPLE","Example_Field__c":null}]}'
162
+ http_version:
163
+ recorded_at: Tue, 19 May 2015 23:34:10 GMT
164
+ - request:
165
+ method: get
166
+ uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Name%20=%20%27Are%20you%20going%20to%20Scarborough%20Fair?%27
167
+ body:
168
+ encoding: US-ASCII
169
+ string: ''
170
+ headers:
171
+ User-Agent:
172
+ - Faraday v0.9.1
173
+ Authorization:
174
+ - OAuth 00D1a000000H3O9!AQ4AQIsaMmpVY0MkRAqWjHsN6PVfiwFjj_vqrELuCJU8J.FPDa6glYHoGFCZl6CQZWwdOfR89R0VSsJBD9SUvJv1jfsIJGAB
175
+ Accept-Encoding:
176
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
177
+ Accept:
178
+ - "*/*"
179
+ response:
180
+ status:
181
+ code: 200
182
+ message: OK
183
+ headers:
184
+ Date:
185
+ - Tue, 19 May 2015 23:34:10 GMT
186
+ Set-Cookie:
187
+ - BrowserId=uprM5FLJQDetuw1q9hKvwg;Path=/;Domain=.salesforce.com;Expires=Sat,
188
+ 18-Jul-2015 23:34:10 GMT
189
+ Expires:
190
+ - Thu, 01 Jan 1970 00:00:00 GMT
191
+ Sforce-Limit-Info:
192
+ - api-usage=17/15000
193
+ Content-Type:
194
+ - application/json;charset=UTF-8
195
+ Transfer-Encoding:
196
+ - chunked
197
+ body:
198
+ encoding: ASCII-8BIT
199
+ string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001aBJtAAM"},"Id":"a001a000001aBJtAAM","SystemModstamp":"2015-05-19T23:34:07.000+0000","Name":"Are
200
+ you going to Scarborough Fair?","Example_Field__c":"Parsley, Sage, Rosemary,
201
+ and Thyme."}]}'
202
+ http_version:
203
+ recorded_at: Tue, 19 May 2015 23:34:10 GMT
204
+ - request:
205
+ method: delete
206
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001aBJtAAM
207
+ body:
208
+ encoding: US-ASCII
209
+ string: ''
210
+ headers:
211
+ User-Agent:
212
+ - Faraday v0.9.1
213
+ Authorization:
214
+ - OAuth 00D1a000000H3O9!AQ4AQIsaMmpVY0MkRAqWjHsN6PVfiwFjj_vqrELuCJU8J.FPDa6glYHoGFCZl6CQZWwdOfR89R0VSsJBD9SUvJv1jfsIJGAB
215
+ Accept-Encoding:
216
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
217
+ Accept:
218
+ - "*/*"
219
+ response:
220
+ status:
221
+ code: 204
222
+ message: No Content
223
+ headers:
224
+ Date:
225
+ - Tue, 19 May 2015 23:34:11 GMT
226
+ Set-Cookie:
227
+ - BrowserId=Zruo3pklQ_ub4MdPrZp_5Q;Path=/;Domain=.salesforce.com;Expires=Sat,
228
+ 18-Jul-2015 23:34:11 GMT
229
+ Expires:
230
+ - Thu, 01 Jan 1970 00:00:00 GMT
231
+ Sforce-Limit-Info:
232
+ - api-usage=17/15000
233
+ body:
234
+ encoding: UTF-8
235
+ string: ''
236
+ http_version:
237
+ recorded_at: Tue, 19 May 2015 23:34:12 GMT
238
+ recorded_with: VCR 2.9.3
@@ -38,11 +38,11 @@ http_interactions:
38
38
  body:
39
39
  encoding: ASCII-8BIT
40
40
  string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1431652890698","token_type":"Bearer","instance_url":"https://<host>","signature":"0evU70RDGPagRqFniwNzBo1tfyh5vTuYv+0/JBWjpuk=","access_token":"00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb"}'
41
- http_version:
41
+ http_version:
42
42
  recorded_at: Fri, 15 May 2015 01:21:30 GMT
43
43
  - request:
44
44
  method: post
45
- uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c
45
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c
46
46
  body:
47
47
  encoding: UTF-8
48
48
  string: '{"Name":"Are you going to Scarborough Fair?","Example_Field__c":"Parsley,
@@ -73,7 +73,7 @@ http_interactions:
73
73
  Sforce-Limit-Info:
74
74
  - api-usage=716/15000
75
75
  Location:
76
- - "/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEPAA0"
76
+ - "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoEPAA0"
77
77
  Content-Type:
78
78
  - application/json;charset=UTF-8
79
79
  Transfer-Encoding:
@@ -81,11 +81,11 @@ http_interactions:
81
81
  body:
82
82
  encoding: ASCII-8BIT
83
83
  string: '{"id":"a001a000001ZoEPAA0","success":true,"errors":[]}'
84
- http_version:
84
+ http_version:
85
85
  recorded_at: Fri, 15 May 2015 01:21:31 GMT
86
86
  - request:
87
87
  method: get
88
- uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c
88
+ uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c
89
89
  body:
90
90
  encoding: US-ASCII
91
91
  string: ''
@@ -118,14 +118,14 @@ http_interactions:
118
118
  - chunked
119
119
  body:
120
120
  encoding: ASCII-8BIT
121
- string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEPAA0"},"Id":"a001a000001ZoEPAA0","SystemModstamp":"2015-05-15T01:21:31.000+0000","Name":"Are
121
+ string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoEPAA0"},"Id":"a001a000001ZoEPAA0","SystemModstamp":"2015-05-15T01:21:31.000+0000","Name":"Are
122
122
  you going to Scarborough Fair?","Example_Field__c":"Parsley, Sage, Rosemary,
123
123
  and Thyme."}]}'
124
- http_version:
124
+ http_version:
125
125
  recorded_at: Fri, 15 May 2015 01:21:32 GMT
126
126
  - request:
127
127
  method: get
128
- uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Name%20!=%20%27Are%20you%20going%20to%20Scarborough%20Fair?%27
128
+ uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Name%20!=%20%27Are%20you%20going%20to%20Scarborough%20Fair?%27
129
129
  body:
130
130
  encoding: US-ASCII
131
131
  string: ''
@@ -159,11 +159,11 @@ http_interactions:
159
159
  body:
160
160
  encoding: ASCII-8BIT
161
161
  string: '{"totalSize":0,"done":true,"records":[]}'
162
- http_version:
162
+ http_version:
163
163
  recorded_at: Fri, 15 May 2015 01:21:33 GMT
164
164
  - request:
165
165
  method: delete
166
- uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEPAA0
166
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoEPAA0
167
167
  body:
168
168
  encoding: US-ASCII
169
169
  string: ''
@@ -193,6 +193,6 @@ http_interactions:
193
193
  body:
194
194
  encoding: UTF-8
195
195
  string: ''
196
- http_version:
196
+ http_version:
197
197
  recorded_at: Fri, 15 May 2015 01:21:34 GMT
198
198
  recorded_with: VCR 2.9.3
@@ -38,11 +38,11 @@ http_interactions:
38
38
  body:
39
39
  encoding: ASCII-8BIT
40
40
  string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1431653647956","token_type":"Bearer","instance_url":"https://<host>","signature":"0Y5hzj5yAfpvGVh+sdgK56/XvRhuAg1oyXBywP0nOwE=","access_token":"00D1a000000H3O9!AQ4AQOOuLg_qT_KH0d7e0MZl9eLqLOVkelXCvogl6uoC11zAr2MxSfN.Kp.FGeGl6RwwgcLORuGYbL2Rk2tznb5e22BOVEcb"}'
41
- http_version:
41
+ http_version:
42
42
  recorded_at: Fri, 15 May 2015 01:34:07 GMT
43
43
  - request:
44
44
  method: post
45
- uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c
45
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c
46
46
  body:
47
47
  encoding: UTF-8
48
48
  string: '{"Name":"Are you going to Scarborough Fair?","Example_Field__c":"Parsley,
@@ -73,7 +73,7 @@ http_interactions:
73
73
  Sforce-Limit-Info:
74
74
  - api-usage=806/15000
75
75
  Location:
76
- - "/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEoAAK"
76
+ - "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoEoAAK"
77
77
  Content-Type:
78
78
  - application/json;charset=UTF-8
79
79
  Transfer-Encoding:
@@ -81,11 +81,11 @@ http_interactions:
81
81
  body:
82
82
  encoding: ASCII-8BIT
83
83
  string: '{"id":"a001a000001ZoEoAAK","success":true,"errors":[]}'
84
- http_version:
84
+ http_version:
85
85
  recorded_at: Fri, 15 May 2015 01:34:08 GMT
86
86
  - request:
87
87
  method: get
88
- uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c
88
+ uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c
89
89
  body:
90
90
  encoding: US-ASCII
91
91
  string: ''
@@ -118,14 +118,14 @@ http_interactions:
118
118
  - chunked
119
119
  body:
120
120
  encoding: ASCII-8BIT
121
- string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEoAAK"},"Id":"a001a000001ZoEoAAK","SystemModstamp":"2015-05-15T01:34:08.000+0000","Name":"Are
121
+ string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoEoAAK"},"Id":"a001a000001ZoEoAAK","SystemModstamp":"2015-05-15T01:34:08.000+0000","Name":"Are
122
122
  you going to Scarborough Fair?","Example_Field__c":"Parsley, Sage, Rosemary,
123
123
  and Thyme."}]}'
124
- http_version:
124
+ http_version:
125
125
  recorded_at: Fri, 15 May 2015 01:34:10 GMT
126
126
  - request:
127
127
  method: get
128
- uri: https://<host>/services/data/v26.0/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Name%20=%20%27Are%20you%20going%20to%20Scarborough%20Fair?%27
128
+ uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Name%20=%20%27Are%20you%20going%20to%20Scarborough%20Fair?%27
129
129
  body:
130
130
  encoding: US-ASCII
131
131
  string: ''
@@ -158,14 +158,14 @@ http_interactions:
158
158
  - chunked
159
159
  body:
160
160
  encoding: ASCII-8BIT
161
- string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEoAAK"},"Id":"a001a000001ZoEoAAK","SystemModstamp":"2015-05-15T01:34:08.000+0000","Name":"Are
161
+ string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoEoAAK"},"Id":"a001a000001ZoEoAAK","SystemModstamp":"2015-05-15T01:34:08.000+0000","Name":"Are
162
162
  you going to Scarborough Fair?","Example_Field__c":"Parsley, Sage, Rosemary,
163
163
  and Thyme."}]}'
164
- http_version:
164
+ http_version:
165
165
  recorded_at: Fri, 15 May 2015 01:34:11 GMT
166
166
  - request:
167
167
  method: delete
168
- uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/a001a000001ZoEoAAK
168
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001ZoEoAAK
169
169
  body:
170
170
  encoding: US-ASCII
171
171
  string: ''
@@ -195,6 +195,6 @@ http_interactions:
195
195
  body:
196
196
  encoding: UTF-8
197
197
  string: ''
198
- http_version:
198
+ http_version:
199
199
  recorded_at: Fri, 15 May 2015 01:34:12 GMT
200
200
  recorded_with: VCR 2.9.3
@@ -38,11 +38,11 @@ http_interactions:
38
38
  body:
39
39
  encoding: ASCII-8BIT
40
40
  string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1428313624267","token_type":"Bearer","instance_url":"https://<host>","signature":"ABLounL9O5kFDJ9y/g/l4dLcm/HQOU8UIF9L3wpVmng=","access_token":"00D1a000000H3O9!AQ4AQIEcyaEa1EiezSuMSEJm73cIL8I5CDJ_vnqlgzm7mAXRhbGBSo3xF6_EdmNqSa42nDRyl2szOaP4ybHrIHxo.G4YonU_"}'
41
- http_version:
41
+ http_version:
42
42
  recorded_at: Mon, 06 Apr 2015 09:47:04 GMT
43
43
  - request:
44
44
  method: post
45
- uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c
45
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c
46
46
  body:
47
47
  encoding: UTF-8
48
48
  string: '{"Name":"Custom object","Example_Field__c":"Some sample text"}'
@@ -72,7 +72,7 @@ http_interactions:
72
72
  Sforce-Limit-Info:
73
73
  - api-usage=15/15000
74
74
  Location:
75
- - "/services/data/v26.0/sobjects/CustomObject__c/a001a000001LGf9AAG"
75
+ - "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LGf9AAG"
76
76
  Content-Type:
77
77
  - application/json;charset=UTF-8
78
78
  Transfer-Encoding:
@@ -80,11 +80,11 @@ http_interactions:
80
80
  body:
81
81
  encoding: ASCII-8BIT
82
82
  string: '{"id":"a001a000001LGf9AAG","success":true,"errors":[]}'
83
- http_version:
83
+ http_version:
84
84
  recorded_at: Mon, 06 Apr 2015 09:47:05 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%20where%20Id%20=%20%27a001a000001LGf9AAG%27
87
+ uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001LGf9AAG%27
88
88
  body:
89
89
  encoding: US-ASCII
90
90
  string: ''
@@ -117,13 +117,13 @@ http_interactions:
117
117
  - chunked
118
118
  body:
119
119
  encoding: ASCII-8BIT
120
- string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001LGf9AAG"},"Id":"a001a000001LGf9AAG","SystemModstamp":"2015-04-06T09:47:05.000+0000","Name":"Custom
120
+ string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LGf9AAG"},"Id":"a001a000001LGf9AAG","SystemModstamp":"2015-04-06T09:47:05.000+0000","Name":"Custom
121
121
  object","Example_Field__c":"Some sample text"}]}'
122
- http_version:
122
+ http_version:
123
123
  recorded_at: Mon, 06 Apr 2015 09:47:06 GMT
124
124
  - request:
125
125
  method: get
126
- 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:06Z
126
+ uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20SystemModstamp%20%3C%202015-04-06T09:47:06Z
127
127
  body:
128
128
  encoding: US-ASCII
129
129
  string: ''
@@ -156,13 +156,13 @@ http_interactions:
156
156
  - chunked
157
157
  body:
158
158
  encoding: ASCII-8BIT
159
- string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001LGf9AAG"},"Id":"a001a000001LGf9AAG","SystemModstamp":"2015-04-06T09:47:05.000+0000","Name":"Custom
159
+ string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LGf9AAG"},"Id":"a001a000001LGf9AAG","SystemModstamp":"2015-04-06T09:47:05.000+0000","Name":"Custom
160
160
  object","Example_Field__c":"Some sample text"}]}'
161
- http_version:
161
+ http_version:
162
162
  recorded_at: Mon, 06 Apr 2015 09:47:07 GMT
163
163
  - request:
164
164
  method: delete
165
- uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/a001a000001LGf9AAG
165
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LGf9AAG
166
166
  body:
167
167
  encoding: US-ASCII
168
168
  string: ''
@@ -192,6 +192,6 @@ http_interactions:
192
192
  body:
193
193
  encoding: UTF-8
194
194
  string: ''
195
- http_version:
195
+ http_version:
196
196
  recorded_at: Mon, 06 Apr 2015 09:47:09 GMT
197
197
  recorded_with: VCR 2.9.3
@@ -38,11 +38,11 @@ http_interactions:
38
38
  body:
39
39
  encoding: ASCII-8BIT
40
40
  string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1428313630193","token_type":"Bearer","instance_url":"https://<host>","signature":"ApVLPX1o4/XFwiO/5YCw9BePXEF1eqtQcn5fdHsn9cI=","access_token":"00D1a000000H3O9!AQ4AQIEcyaEa1EiezSuMSEJm73cIL8I5CDJ_vnqlgzm7mAXRhbGBSo3xF6_EdmNqSa42nDRyl2szOaP4ybHrIHxo.G4YonU_"}'
41
- http_version:
41
+ http_version:
42
42
  recorded_at: Mon, 06 Apr 2015 09:47:10 GMT
43
43
  - request:
44
44
  method: post
45
- uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c
45
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c
46
46
  body:
47
47
  encoding: UTF-8
48
48
  string: '{"Name":"Custom object","Example_Field__c":"Some sample text"}'
@@ -72,7 +72,7 @@ http_interactions:
72
72
  Sforce-Limit-Info:
73
73
  - api-usage=15/15000
74
74
  Location:
75
- - "/services/data/v26.0/sobjects/CustomObject__c/a001a000001LGfEAAW"
75
+ - "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LGfEAAW"
76
76
  Content-Type:
77
77
  - application/json;charset=UTF-8
78
78
  Transfer-Encoding:
@@ -80,11 +80,11 @@ http_interactions:
80
80
  body:
81
81
  encoding: ASCII-8BIT
82
82
  string: '{"id":"a001a000001LGfEAAW","success":true,"errors":[]}'
83
- http_version:
83
+ http_version:
84
84
  recorded_at: Mon, 06 Apr 2015 09:47:11 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%20where%20Id%20=%20%27a001a000001LGfEAAW%27
87
+ uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001LGfEAAW%27
88
88
  body:
89
89
  encoding: US-ASCII
90
90
  string: ''
@@ -117,13 +117,13 @@ http_interactions:
117
117
  - chunked
118
118
  body:
119
119
  encoding: ASCII-8BIT
120
- string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001LGfEAAW"},"Id":"a001a000001LGfEAAW","SystemModstamp":"2015-04-06T09:47:11.000+0000","Name":"Custom
120
+ string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LGfEAAW"},"Id":"a001a000001LGfEAAW","SystemModstamp":"2015-04-06T09:47:11.000+0000","Name":"Custom
121
121
  object","Example_Field__c":"Some sample text"}]}'
122
- http_version:
122
+ http_version:
123
123
  recorded_at: Mon, 06 Apr 2015 09:47:12 GMT
124
124
  - request:
125
125
  method: get
126
- 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:12Z
126
+ uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20SystemModstamp%20%3C%202015-04-06T09:47:12Z
127
127
  body:
128
128
  encoding: US-ASCII
129
129
  string: ''
@@ -156,13 +156,13 @@ http_interactions:
156
156
  - chunked
157
157
  body:
158
158
  encoding: ASCII-8BIT
159
- string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/v26.0/sobjects/CustomObject__c/a001a000001LGfEAAW"},"Id":"a001a000001LGfEAAW","SystemModstamp":"2015-04-06T09:47:11.000+0000","Name":"Custom
159
+ string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LGfEAAW"},"Id":"a001a000001LGfEAAW","SystemModstamp":"2015-04-06T09:47:11.000+0000","Name":"Custom
160
160
  object","Example_Field__c":"Some sample text"}]}'
161
- http_version:
161
+ http_version:
162
162
  recorded_at: Mon, 06 Apr 2015 09:47:13 GMT
163
163
  - request:
164
164
  method: delete
165
- uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/a001a000001LGfEAAW
165
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LGfEAAW
166
166
  body:
167
167
  encoding: US-ASCII
168
168
  string: ''
@@ -192,6 +192,6 @@ http_interactions:
192
192
  body:
193
193
  encoding: UTF-8
194
194
  string: ''
195
- http_version:
195
+ http_version:
196
196
  recorded_at: Mon, 06 Apr 2015 09:47:14 GMT
197
197
  recorded_with: VCR 2.9.3
@@ -38,11 +38,11 @@ http_interactions:
38
38
  body:
39
39
  encoding: ASCII-8BIT
40
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:
41
+ http_version:
42
42
  recorded_at: Mon, 06 Apr 2015 09:47:15 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%20where%20SystemModstamp%20%3C%202015-04-06T09:47:14Z
45
+ uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20SystemModstamp%20%3C%202015-04-06T09:47:14Z
46
46
  body:
47
47
  encoding: US-ASCII
48
48
  string: ''
@@ -76,6 +76,6 @@ http_interactions:
76
76
  body:
77
77
  encoding: ASCII-8BIT
78
78
  string: '{"totalSize":0,"done":true,"records":[]}'
79
- http_version:
79
+ http_version:
80
80
  recorded_at: Mon, 06 Apr 2015 09:47:16 GMT
81
81
  recorded_with: VCR 2.9.3
@@ -38,11 +38,11 @@ http_interactions:
38
38
  body:
39
39
  encoding: ASCII-8BIT
40
40
  string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1428526407882","token_type":"Bearer","instance_url":"https://<host>","signature":"b8JiQgpUdbWK4ZF5QL688+niNH2pYF3BCX6iynboWVI=","access_token":"00D1a000000H3O9!AQ4AQNyTp4z9oP2.J3Cn7NYTEhEEQDKps55QWmUhH0v3eAk6P1DoAUmVHKUnCITNabWF1iOMeT46TMEQTZdyM7pnT5JNIYfj"}'
41
- http_version:
41
+ http_version:
42
42
  recorded_at: Wed, 08 Apr 2015 20:53:26 GMT
43
43
  - request:
44
44
  method: post
45
- uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c
45
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c
46
46
  body:
47
47
  encoding: UTF-8
48
48
  string: '{"Name":"Custom object","Example_Field__c":"Some sample text"}'
@@ -72,7 +72,7 @@ http_interactions:
72
72
  Sforce-Limit-Info:
73
73
  - api-usage=16/15000
74
74
  Location:
75
- - "/services/data/v26.0/sobjects/CustomObject__c/a001a000001LNKUAA4"
75
+ - "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LNKUAA4"
76
76
  Content-Type:
77
77
  - application/json;charset=UTF-8
78
78
  Transfer-Encoding:
@@ -80,11 +80,11 @@ http_interactions:
80
80
  body:
81
81
  encoding: ASCII-8BIT
82
82
  string: '{"id":"a001a000001LNKUAA4","success":true,"errors":[]}'
83
- http_version:
83
+ http_version:
84
84
  recorded_at: Wed, 08 Apr 2015 20:53:27 GMT
85
85
  - request:
86
86
  method: delete
87
- uri: https://<host>/services/data/v26.0/sobjects/CustomObject__c/a001a000001LNKUAA4
87
+ uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001LNKUAA4
88
88
  body:
89
89
  encoding: US-ASCII
90
90
  string: ''
@@ -114,6 +114,6 @@ http_interactions:
114
114
  body:
115
115
  encoding: UTF-8
116
116
  string: ''
117
- http_version:
117
+ http_version:
118
118
  recorded_at: Wed, 08 Apr 2015 20:53:27 GMT
119
119
  recorded_with: VCR 2.9.3