salesforce_bulk_client 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +50 -0
- data/.rspec +2 -0
- data/.rspec_status +10 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/LICENSE +21 -0
- data/README.md +91 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/fixtures/vcr_cassettes/salesforce/batch_processing.yml +1322 -0
- data/fixtures/vcr_cassettes/salesforce/delete.yml +721 -0
- data/fixtures/vcr_cassettes/salesforce/insert.yml +713 -0
- data/fixtures/vcr_cassettes/salesforce/login.yml +56 -0
- data/fixtures/vcr_cassettes/salesforce/query.yml +828 -0
- data/fixtures/vcr_cassettes/salesforce/update.yml +719 -0
- data/fixtures/vcr_cassettes/salesforce/upsert.yml +719 -0
- data/lib/salesforce_bulk_client.rb +5 -0
- data/lib/salesforce_bulk_client/client.rb +62 -0
- data/lib/salesforce_bulk_client/connection.rb +35 -0
- data/lib/salesforce_bulk_client/job.rb +129 -0
- data/lib/salesforce_bulk_client/version.rb +3 -0
- data/salesforce_bulk_client.gemspec +35 -0
- metadata +263 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c82c0bb26673c09aac04c217c5da99e6a2a20774
|
4
|
+
data.tar.gz: 95a1a7bc0c8008850336d81f520b9c6d07d15425
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e9d725e0a9e1e3b1c33512258a6ec84edb6e8ad43eac6061ac5a352918e9e71e2fa8162cfc2b9c344611db351e87b6472f7bc071aaf8a940a8e39b2f6401a056
|
7
|
+
data.tar.gz: bae047540a388b2099c03ef687bd2e0ad5415047aa1eee77ffaa328c6c10c86a126c209409aff40e9a54cdaa782ce62582624e2750bf17b1cecefc1c30e236fa
|
data/.gitignore
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
/.config
|
4
|
+
/coverage/
|
5
|
+
/InstalledFiles
|
6
|
+
/pkg/
|
7
|
+
/spec/reports/
|
8
|
+
/spec/examples.txt
|
9
|
+
/test/tmp/
|
10
|
+
/test/version_tmp/
|
11
|
+
/tmp/
|
12
|
+
|
13
|
+
# Used by dotenv library to load environment variables.
|
14
|
+
.env
|
15
|
+
|
16
|
+
## Specific to RubyMotion:
|
17
|
+
.dat*
|
18
|
+
.repl_history
|
19
|
+
build/
|
20
|
+
*.bridgesupport
|
21
|
+
build-iPhoneOS/
|
22
|
+
build-iPhoneSimulator/
|
23
|
+
|
24
|
+
## Specific to RubyMotion (use of CocoaPods):
|
25
|
+
#
|
26
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
27
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
28
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
29
|
+
#
|
30
|
+
# vendor/Pods/
|
31
|
+
|
32
|
+
## Documentation cache and generated files:
|
33
|
+
/.yardoc/
|
34
|
+
/_yardoc/
|
35
|
+
/doc/
|
36
|
+
/rdoc/
|
37
|
+
|
38
|
+
## Environment normalization:
|
39
|
+
/.bundle/
|
40
|
+
/vendor/bundle
|
41
|
+
/lib/bundler/man/
|
42
|
+
|
43
|
+
# for a library or gem, you might want to ignore these files since the code is
|
44
|
+
# intended to run in multiple environments; otherwise, check them in:
|
45
|
+
Gemfile.lock
|
46
|
+
.ruby-version
|
47
|
+
.ruby-gemset
|
48
|
+
|
49
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
50
|
+
.rvmrc
|
data/.rspec
ADDED
data/.rspec_status
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
example_id | status | run_time |
|
2
|
+
------------------------------------------ | ------ | --------------- |
|
3
|
+
./spec/salesforce_bulk_client_spec.rb[1:1] | passed | 0.00064 seconds |
|
4
|
+
./spec/salesforce_bulk_client_spec.rb[1:2] | passed | 0.03342 seconds |
|
5
|
+
./spec/salesforce_bulk_client_spec.rb[1:3] | passed | 0.19482 seconds |
|
6
|
+
./spec/salesforce_bulk_client_spec.rb[1:4] | passed | 0.17249 seconds |
|
7
|
+
./spec/salesforce_bulk_client_spec.rb[1:5] | passed | 0.19533 seconds |
|
8
|
+
./spec/salesforce_bulk_client_spec.rb[1:6] | passed | 0.2082 seconds |
|
9
|
+
./spec/salesforce_bulk_client_spec.rb[1:7] | passed | 0.35889 seconds |
|
10
|
+
./spec/salesforce_bulk_client_spec.rb[1:8] | passed | 0.20262 seconds |
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2017 Frontera Consulting, LLC
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
# SalesforceBulkClient
|
2
|
+
|
3
|
+
SalesforceBulkClient is a Ruby gem which allows for integration with the Salesforce.com Bulk API.
|
4
|
+
|
5
|
+
Although there are many other gems to choose from for this purpose, this gem offers the following features:
|
6
|
+
|
7
|
+
* JSON is used for all API requests and responses (instead of XML) in order to reduce message size.
|
8
|
+
* Splitting data into batches for inserts, updates, and deletes are handled automatically.
|
9
|
+
* Large sets of data can be processed without pre-loading multiple batches.
|
10
|
+
* Connect using the Restforce client instance.
|
11
|
+
|
12
|
+
## Installation
|
13
|
+
|
14
|
+
Add this line to Gemfile:
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
gem 'salesforce_bulk_client'
|
18
|
+
```
|
19
|
+
|
20
|
+
And then execute:
|
21
|
+
|
22
|
+
$ bundle
|
23
|
+
|
24
|
+
Or install it as follows:
|
25
|
+
|
26
|
+
$ gem install salesforce_bulk_client
|
27
|
+
|
28
|
+
## Usage
|
29
|
+
|
30
|
+
### Instantiate the Bulk API Client
|
31
|
+
|
32
|
+
Authentication is done via the Restforce gem:
|
33
|
+
|
34
|
+
```ruby
|
35
|
+
require 'salesforce_bulk_client'
|
36
|
+
restforce_client = Restforce.new(
|
37
|
+
username: ENV['SALESFORCE_USERNAME'],
|
38
|
+
password: ENV['SALESFORCE_PASSWORD'],
|
39
|
+
security_token: ENV['SALESFORCE_SECURITY_TOKEN'],
|
40
|
+
client_id: ENV['SALESFORCE_OAUTH_CONSUMER_KEY'],
|
41
|
+
client_secret: ENV['SALESFORCE_OAUTH_CONSUMER_SECRET'].to_i,
|
42
|
+
host: ENV['SALESFORCE_HOST'])
|
43
|
+
bulk_client = SalesforceBulkClient::Client.new(restforce_client)
|
44
|
+
```
|
45
|
+
|
46
|
+
### Inserting records
|
47
|
+
|
48
|
+
```ruby
|
49
|
+
records = [ { Name: 'Test Account 1' }, { Name: 'Test Account 2' } ]
|
50
|
+
result = bulk_client.insert(sobject, records)
|
51
|
+
```
|
52
|
+
|
53
|
+
### Updating records
|
54
|
+
|
55
|
+
```ruby
|
56
|
+
records = [ { Id: '00136000014tyyF', Name: 'Test Account 1' }, { Name: 'Test Account 2' } ]
|
57
|
+
result = bulk_client.upsert(sobject, records, 'Id')
|
58
|
+
```
|
59
|
+
|
60
|
+
### Updating records
|
61
|
+
|
62
|
+
```ruby
|
63
|
+
records = [ { Id: '00136000014tyyF', Name: 'Test Account 1' }, { Id: '00136000014tyyP', Name: 'Test Account 2' } ]
|
64
|
+
result = bulk_client.update(sobject, records)
|
65
|
+
```
|
66
|
+
|
67
|
+
### Deleting records
|
68
|
+
|
69
|
+
```ruby
|
70
|
+
records = [ { Id: '00136000014tyyF' }, { Id: '00136000014tyyP' } ]
|
71
|
+
result = bulk_client.delete(sobject, records)
|
72
|
+
```
|
73
|
+
|
74
|
+
### Query records
|
75
|
+
|
76
|
+
```ruby
|
77
|
+
result = bulk_client.query('Account', "select Id, Name from Account where Id = '00136000014tyyF'", true)
|
78
|
+
```
|
79
|
+
|
80
|
+
### Process batches without pre-loading
|
81
|
+
```ruby
|
82
|
+
result = bulk_client.query('Account', "select Id, Name from Account where Id = '00136000014tyyF'", false)
|
83
|
+
bulk_client.job_from_id(result.id).each_batch do |batch, batch_results|
|
84
|
+
# Add batch-level processing logic here
|
85
|
+
end
|
86
|
+
```
|
87
|
+
|
88
|
+
## Contributing
|
89
|
+
|
90
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/FronteraConsulting/salesforce_bulk_client.
|
91
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "salesforce_bulk_client"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,1322 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://login.salesforce.com/services/oauth2/token
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: grant_type=password&client_id={SALESFORCE_OAUTH_CONSUMER_KEY}&client_secret={SALESFORCE_OAUTH_CONSUMER_SECRET}&username=%7BSALESFORCE_USERNAME%7D&password=%7BSALESFORCE_PASSWORD%7D{SALESFORCE_SECURITY_TOKEN}
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.12.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, 02 May 2017 20:45:58 GMT
|
25
|
+
Strict-Transport-Security:
|
26
|
+
- max-age=31536000; includeSubDomains
|
27
|
+
X-Content-Type-Options:
|
28
|
+
- nosniff
|
29
|
+
X-Xss-Protection:
|
30
|
+
- 1; mode=block
|
31
|
+
Content-Security-Policy:
|
32
|
+
- referrer origin-when-cross-origin
|
33
|
+
- reflected-xss block;report-uri /_/ContentDomainCSPNoAuth?type=xss
|
34
|
+
Set-Cookie:
|
35
|
+
- BrowserId=mwfOIKTnSeypj9ubR5WP2g;Path=/;Domain=.salesforce.com;Expires=Sat,
|
36
|
+
01-Jul-2017 20:45:58 GMT
|
37
|
+
Expires:
|
38
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
39
|
+
Pragma:
|
40
|
+
- no-cache
|
41
|
+
Cache-Control:
|
42
|
+
- no-cache, no-store
|
43
|
+
X-Readonlymode:
|
44
|
+
- 'false'
|
45
|
+
Content-Type:
|
46
|
+
- application/json;charset=UTF-8
|
47
|
+
Vary:
|
48
|
+
- Accept-Encoding
|
49
|
+
Transfer-Encoding:
|
50
|
+
- chunked
|
51
|
+
body:
|
52
|
+
encoding: ASCII-8BIT
|
53
|
+
string: '{"access_token":"{ACCESS_TOKEN}","instance_url":"https://instance.salesforce.com","id":"{ID_URL}","token_type":"Bearer","issued_at":"1493757959416","signature":"{SIGNATURE}"}'
|
54
|
+
http_version:
|
55
|
+
recorded_at: Tue, 02 May 2017 20:45:59 GMT
|
56
|
+
- request:
|
57
|
+
method: post
|
58
|
+
uri: https://instance.salesforce.com/services/async/39.0/job
|
59
|
+
body:
|
60
|
+
encoding: UTF-8
|
61
|
+
string: '{"operation":"query","object":"Account","contentType":"JSON"}'
|
62
|
+
headers:
|
63
|
+
User-Agent:
|
64
|
+
- Faraday v0.12.1
|
65
|
+
Content-Type:
|
66
|
+
- application/json
|
67
|
+
X-Sfdc-Session:
|
68
|
+
- "{SESSION_ID}"
|
69
|
+
Authorization:
|
70
|
+
- "{AUTHORIZATION}"
|
71
|
+
Accept-Encoding:
|
72
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
73
|
+
Accept:
|
74
|
+
- "*/*"
|
75
|
+
response:
|
76
|
+
status:
|
77
|
+
code: 201
|
78
|
+
message: Created
|
79
|
+
headers:
|
80
|
+
Date:
|
81
|
+
- Tue, 02 May 2017 20:45:59 GMT
|
82
|
+
X-Content-Type-Options:
|
83
|
+
- nosniff
|
84
|
+
X-Xss-Protection:
|
85
|
+
- 1; mode=block
|
86
|
+
Content-Security-Policy:
|
87
|
+
- referrer origin-when-cross-origin
|
88
|
+
- reflected-xss block;report-uri /_/ContentDomainCSPNoAuth?type=xss
|
89
|
+
Set-Cookie:
|
90
|
+
- BrowserId=jOMJ3njfTJiq1HUX6oEEZA;Path=/;Domain=.salesforce.com;Expires=Sat,
|
91
|
+
01-Jul-2017 20:45:59 GMT
|
92
|
+
Expires:
|
93
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
94
|
+
Location:
|
95
|
+
- "/services/async/39.0/job/7503600000BfwCuAAJ"
|
96
|
+
Content-Type:
|
97
|
+
- application/json
|
98
|
+
Transfer-Encoding:
|
99
|
+
- chunked
|
100
|
+
body:
|
101
|
+
encoding: ASCII-8BIT
|
102
|
+
string: '{"apexProcessingTime":0,"apiActiveProcessingTime":0,"apiVersion":39.0,"assignmentRuleId":null,"concurrencyMode":"Parallel","contentType":"JSON","createdById":"00536000001qtbXAAQ","createdDate":"2017-05-02T20:45:59.000+0000","externalIdFieldName":null,"fastPathEnabled":false,"id":"7503600000BfwCuAAJ","numberBatchesCompleted":0,"numberBatchesFailed":0,"numberBatchesInProgress":0,"numberBatchesQueued":0,"numberBatchesTotal":0,"numberRecordsFailed":0,"numberRecordsProcessed":0,"numberRetries":0,"object":"Account","operation":"query","state":"Open","systemModstamp":"2017-05-02T20:45:59.000+0000","totalProcessingTime":0}'
|
103
|
+
http_version:
|
104
|
+
recorded_at: Tue, 02 May 2017 20:46:00 GMT
|
105
|
+
- request:
|
106
|
+
method: post
|
107
|
+
uri: https://login.salesforce.com/services/oauth2/token
|
108
|
+
body:
|
109
|
+
encoding: US-ASCII
|
110
|
+
string: grant_type=password&client_id={SALESFORCE_OAUTH_CONSUMER_KEY}&client_secret={SALESFORCE_OAUTH_CONSUMER_SECRET}&username=%7BSALESFORCE_USERNAME%7D&password=%7BSALESFORCE_PASSWORD%7D{SALESFORCE_SECURITY_TOKEN}
|
111
|
+
headers:
|
112
|
+
User-Agent:
|
113
|
+
- Faraday v0.12.1
|
114
|
+
Content-Type:
|
115
|
+
- application/x-www-form-urlencoded
|
116
|
+
Accept-Encoding:
|
117
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
118
|
+
Accept:
|
119
|
+
- "*/*"
|
120
|
+
response:
|
121
|
+
status:
|
122
|
+
code: 200
|
123
|
+
message: OK
|
124
|
+
headers:
|
125
|
+
Date:
|
126
|
+
- Tue, 02 May 2017 20:46:00 GMT
|
127
|
+
Strict-Transport-Security:
|
128
|
+
- max-age=31536000; includeSubDomains
|
129
|
+
X-Content-Type-Options:
|
130
|
+
- nosniff
|
131
|
+
X-Xss-Protection:
|
132
|
+
- 1; mode=block
|
133
|
+
Content-Security-Policy:
|
134
|
+
- referrer origin-when-cross-origin
|
135
|
+
- reflected-xss block;report-uri /_/ContentDomainCSPNoAuth?type=xss
|
136
|
+
Set-Cookie:
|
137
|
+
- BrowserId=nnGZWHmMTG6DftWlfYClYQ;Path=/;Domain=.salesforce.com;Expires=Sat,
|
138
|
+
01-Jul-2017 20:46:00 GMT
|
139
|
+
Expires:
|
140
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
141
|
+
Pragma:
|
142
|
+
- no-cache
|
143
|
+
Cache-Control:
|
144
|
+
- no-cache, no-store
|
145
|
+
X-Readonlymode:
|
146
|
+
- 'false'
|
147
|
+
Content-Type:
|
148
|
+
- application/json;charset=UTF-8
|
149
|
+
Vary:
|
150
|
+
- Accept-Encoding
|
151
|
+
Transfer-Encoding:
|
152
|
+
- chunked
|
153
|
+
body:
|
154
|
+
encoding: ASCII-8BIT
|
155
|
+
string: '{"access_token":"{ACCESS_TOKEN}","instance_url":"https://instance.salesforce.com","id":"{ID_URL}","token_type":"Bearer","issued_at":"1493757960916","signature":"{SIGNATURE}"}'
|
156
|
+
http_version:
|
157
|
+
recorded_at: Tue, 02 May 2017 20:46:00 GMT
|
158
|
+
- request:
|
159
|
+
method: post
|
160
|
+
uri: https://instance.salesforce.com/services/async/39.0/job/7503600000BfwCuAAJ/batch
|
161
|
+
body:
|
162
|
+
encoding: UTF-8
|
163
|
+
string: select Id, Name from Account where Id in ('00136000014tyLaAAI', '00136000014tyLpAAI')
|
164
|
+
headers:
|
165
|
+
User-Agent:
|
166
|
+
- Faraday v0.12.1
|
167
|
+
Content-Type:
|
168
|
+
- application/json
|
169
|
+
X-Sfdc-Session:
|
170
|
+
- "{SESSION_ID}"
|
171
|
+
Authorization:
|
172
|
+
- "{AUTHORIZATION}"
|
173
|
+
Accept-Encoding:
|
174
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
175
|
+
Accept:
|
176
|
+
- "*/*"
|
177
|
+
response:
|
178
|
+
status:
|
179
|
+
code: 201
|
180
|
+
message: Created
|
181
|
+
headers:
|
182
|
+
Date:
|
183
|
+
- Tue, 02 May 2017 20:46:01 GMT
|
184
|
+
X-Content-Type-Options:
|
185
|
+
- nosniff
|
186
|
+
X-Xss-Protection:
|
187
|
+
- 1; mode=block
|
188
|
+
Content-Security-Policy:
|
189
|
+
- referrer origin-when-cross-origin
|
190
|
+
- reflected-xss block;report-uri /_/ContentDomainCSPNoAuth?type=xss
|
191
|
+
Set-Cookie:
|
192
|
+
- BrowserId=FmZmQTWIStCBTEeTHMpheg;Path=/;Domain=.salesforce.com;Expires=Sat,
|
193
|
+
01-Jul-2017 20:46:01 GMT
|
194
|
+
Expires:
|
195
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
196
|
+
Location:
|
197
|
+
- "/services/async/39.0/job/7503600000BfwCuAAJ/batch/7513600000CF5qFAAT"
|
198
|
+
Content-Type:
|
199
|
+
- application/json
|
200
|
+
Transfer-Encoding:
|
201
|
+
- chunked
|
202
|
+
body:
|
203
|
+
encoding: ASCII-8BIT
|
204
|
+
string: '{"apexProcessingTime":0,"apiActiveProcessingTime":0,"createdDate":"2017-05-02T20:46:01.000+0000","id":"7513600000CF5qFAAT","jobId":"7503600000BfwCuAAJ","numberRecordsFailed":0,"numberRecordsProcessed":0,"state":"Queued","stateMessage":null,"systemModstamp":"2017-05-02T20:46:01.000+0000","totalProcessingTime":0}'
|
205
|
+
http_version:
|
206
|
+
recorded_at: Tue, 02 May 2017 20:46:01 GMT
|
207
|
+
- request:
|
208
|
+
method: post
|
209
|
+
uri: https://login.salesforce.com/services/oauth2/token
|
210
|
+
body:
|
211
|
+
encoding: US-ASCII
|
212
|
+
string: grant_type=password&client_id={SALESFORCE_OAUTH_CONSUMER_KEY}&client_secret={SALESFORCE_OAUTH_CONSUMER_SECRET}&username=%7BSALESFORCE_USERNAME%7D&password=%7BSALESFORCE_PASSWORD%7D{SALESFORCE_SECURITY_TOKEN}
|
213
|
+
headers:
|
214
|
+
User-Agent:
|
215
|
+
- Faraday v0.12.1
|
216
|
+
Content-Type:
|
217
|
+
- application/x-www-form-urlencoded
|
218
|
+
Accept-Encoding:
|
219
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
220
|
+
Accept:
|
221
|
+
- "*/*"
|
222
|
+
response:
|
223
|
+
status:
|
224
|
+
code: 200
|
225
|
+
message: OK
|
226
|
+
headers:
|
227
|
+
Date:
|
228
|
+
- Tue, 02 May 2017 20:46:01 GMT
|
229
|
+
Strict-Transport-Security:
|
230
|
+
- max-age=31536000; includeSubDomains
|
231
|
+
X-Content-Type-Options:
|
232
|
+
- nosniff
|
233
|
+
X-Xss-Protection:
|
234
|
+
- 1; mode=block
|
235
|
+
Content-Security-Policy:
|
236
|
+
- referrer origin-when-cross-origin
|
237
|
+
- reflected-xss block;report-uri /_/ContentDomainCSPNoAuth?type=xss
|
238
|
+
Set-Cookie:
|
239
|
+
- BrowserId=bfcb3t_VQ32YFUygI4F5RQ;Path=/;Domain=.salesforce.com;Expires=Sat,
|
240
|
+
01-Jul-2017 20:46:01 GMT
|
241
|
+
Expires:
|
242
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
243
|
+
Pragma:
|
244
|
+
- no-cache
|
245
|
+
Cache-Control:
|
246
|
+
- no-cache, no-store
|
247
|
+
X-Readonlymode:
|
248
|
+
- 'false'
|
249
|
+
Content-Type:
|
250
|
+
- application/json;charset=UTF-8
|
251
|
+
Vary:
|
252
|
+
- Accept-Encoding
|
253
|
+
Transfer-Encoding:
|
254
|
+
- chunked
|
255
|
+
body:
|
256
|
+
encoding: ASCII-8BIT
|
257
|
+
string: '{"access_token":"{ACCESS_TOKEN}","instance_url":"https://instance.salesforce.com","id":"{ID_URL}","token_type":"Bearer","issued_at":"1493757962205","signature":"{SIGNATURE}"}'
|
258
|
+
http_version:
|
259
|
+
recorded_at: Tue, 02 May 2017 20:46:02 GMT
|
260
|
+
- request:
|
261
|
+
method: post
|
262
|
+
uri: https://instance.salesforce.com/services/async/39.0/job/7503600000BfwCuAAJ
|
263
|
+
body:
|
264
|
+
encoding: UTF-8
|
265
|
+
string: '{"state":"Closed"}'
|
266
|
+
headers:
|
267
|
+
User-Agent:
|
268
|
+
- Faraday v0.12.1
|
269
|
+
Content-Type:
|
270
|
+
- application/json
|
271
|
+
X-Sfdc-Session:
|
272
|
+
- "{SESSION_ID}"
|
273
|
+
Authorization:
|
274
|
+
- "{AUTHORIZATION}"
|
275
|
+
Accept-Encoding:
|
276
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
277
|
+
Accept:
|
278
|
+
- "*/*"
|
279
|
+
response:
|
280
|
+
status:
|
281
|
+
code: 200
|
282
|
+
message: OK
|
283
|
+
headers:
|
284
|
+
Date:
|
285
|
+
- Tue, 02 May 2017 20:46:02 GMT
|
286
|
+
X-Content-Type-Options:
|
287
|
+
- nosniff
|
288
|
+
X-Xss-Protection:
|
289
|
+
- 1; mode=block
|
290
|
+
Content-Security-Policy:
|
291
|
+
- referrer origin-when-cross-origin
|
292
|
+
- reflected-xss block;report-uri /_/ContentDomainCSPNoAuth?type=xss
|
293
|
+
Set-Cookie:
|
294
|
+
- BrowserId=JLSutGkFSgufgZCCA6HYGA;Path=/;Domain=.salesforce.com;Expires=Sat,
|
295
|
+
01-Jul-2017 20:46:02 GMT
|
296
|
+
Expires:
|
297
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
298
|
+
Content-Type:
|
299
|
+
- application/json
|
300
|
+
Transfer-Encoding:
|
301
|
+
- chunked
|
302
|
+
body:
|
303
|
+
encoding: ASCII-8BIT
|
304
|
+
string: '{"apexProcessingTime":0,"apiActiveProcessingTime":0,"apiVersion":39.0,"assignmentRuleId":null,"concurrencyMode":"Parallel","contentType":"JSON","createdById":"00536000001qtbXAAQ","createdDate":"2017-05-02T20:45:59.000+0000","externalIdFieldName":null,"fastPathEnabled":false,"id":"7503600000BfwCuAAJ","numberBatchesCompleted":0,"numberBatchesFailed":0,"numberBatchesInProgress":0,"numberBatchesQueued":1,"numberBatchesTotal":1,"numberRecordsFailed":0,"numberRecordsProcessed":0,"numberRetries":0,"object":"Account","operation":"query","state":"Closed","systemModstamp":"2017-05-02T20:45:59.000+0000","totalProcessingTime":0}'
|
305
|
+
http_version:
|
306
|
+
recorded_at: Tue, 02 May 2017 20:46:03 GMT
|
307
|
+
- request:
|
308
|
+
method: post
|
309
|
+
uri: https://login.salesforce.com/services/oauth2/token
|
310
|
+
body:
|
311
|
+
encoding: US-ASCII
|
312
|
+
string: grant_type=password&client_id={SALESFORCE_OAUTH_CONSUMER_KEY}&client_secret={SALESFORCE_OAUTH_CONSUMER_SECRET}&username=%7BSALESFORCE_USERNAME%7D&password=%7BSALESFORCE_PASSWORD%7D{SALESFORCE_SECURITY_TOKEN}
|
313
|
+
headers:
|
314
|
+
User-Agent:
|
315
|
+
- Faraday v0.12.1
|
316
|
+
Content-Type:
|
317
|
+
- application/x-www-form-urlencoded
|
318
|
+
Accept-Encoding:
|
319
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
320
|
+
Accept:
|
321
|
+
- "*/*"
|
322
|
+
response:
|
323
|
+
status:
|
324
|
+
code: 200
|
325
|
+
message: OK
|
326
|
+
headers:
|
327
|
+
Date:
|
328
|
+
- Tue, 02 May 2017 20:46:03 GMT
|
329
|
+
Strict-Transport-Security:
|
330
|
+
- max-age=31536000; includeSubDomains
|
331
|
+
X-Content-Type-Options:
|
332
|
+
- nosniff
|
333
|
+
X-Xss-Protection:
|
334
|
+
- 1; mode=block
|
335
|
+
Content-Security-Policy:
|
336
|
+
- referrer origin-when-cross-origin
|
337
|
+
- reflected-xss block;report-uri /_/ContentDomainCSPNoAuth?type=xss
|
338
|
+
Set-Cookie:
|
339
|
+
- BrowserId=Qy0BUVU5Rqe7xQmKnd-I6w;Path=/;Domain=.salesforce.com;Expires=Sat,
|
340
|
+
01-Jul-2017 20:46:03 GMT
|
341
|
+
Expires:
|
342
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
343
|
+
Pragma:
|
344
|
+
- no-cache
|
345
|
+
Cache-Control:
|
346
|
+
- no-cache, no-store
|
347
|
+
X-Readonlymode:
|
348
|
+
- 'false'
|
349
|
+
Content-Type:
|
350
|
+
- application/json;charset=UTF-8
|
351
|
+
Vary:
|
352
|
+
- Accept-Encoding
|
353
|
+
Transfer-Encoding:
|
354
|
+
- chunked
|
355
|
+
body:
|
356
|
+
encoding: ASCII-8BIT
|
357
|
+
string: '{"access_token":"{ACCESS_TOKEN}","instance_url":"https://instance.salesforce.com","id":"{ID_URL}","token_type":"Bearer","issued_at":"1493757964009","signature":"{SIGNATURE}"}'
|
358
|
+
http_version:
|
359
|
+
recorded_at: Tue, 02 May 2017 20:46:03 GMT
|
360
|
+
- request:
|
361
|
+
method: get
|
362
|
+
uri: https://instance.salesforce.com/services/async/39.0/job/7503600000BfwCuAAJ
|
363
|
+
body:
|
364
|
+
encoding: US-ASCII
|
365
|
+
string: ''
|
366
|
+
headers:
|
367
|
+
User-Agent:
|
368
|
+
- Faraday v0.12.1
|
369
|
+
Content-Type:
|
370
|
+
- application/json
|
371
|
+
X-Sfdc-Session:
|
372
|
+
- "{SESSION_ID}"
|
373
|
+
Authorization:
|
374
|
+
- "{AUTHORIZATION}"
|
375
|
+
Accept-Encoding:
|
376
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
377
|
+
Accept:
|
378
|
+
- "*/*"
|
379
|
+
response:
|
380
|
+
status:
|
381
|
+
code: 200
|
382
|
+
message: OK
|
383
|
+
headers:
|
384
|
+
Date:
|
385
|
+
- Tue, 02 May 2017 20:46:04 GMT
|
386
|
+
X-Content-Type-Options:
|
387
|
+
- nosniff
|
388
|
+
X-Xss-Protection:
|
389
|
+
- 1; mode=block
|
390
|
+
Content-Security-Policy:
|
391
|
+
- referrer origin-when-cross-origin
|
392
|
+
- reflected-xss block;report-uri /_/ContentDomainCSPNoAuth?type=xss
|
393
|
+
Set-Cookie:
|
394
|
+
- BrowserId=GU2cKeNQQAipz30JEtt0rg;Path=/;Domain=.salesforce.com;Expires=Sat,
|
395
|
+
01-Jul-2017 20:46:04 GMT
|
396
|
+
Expires:
|
397
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
398
|
+
Content-Type:
|
399
|
+
- application/json
|
400
|
+
Transfer-Encoding:
|
401
|
+
- chunked
|
402
|
+
body:
|
403
|
+
encoding: ASCII-8BIT
|
404
|
+
string: '{"apexProcessingTime":0,"apiActiveProcessingTime":0,"apiVersion":39.0,"assignmentRuleId":null,"concurrencyMode":"Parallel","contentType":"JSON","createdById":"00536000001qtbXAAQ","createdDate":"2017-05-02T20:45:59.000+0000","externalIdFieldName":null,"fastPathEnabled":false,"id":"7503600000BfwCuAAJ","numberBatchesCompleted":1,"numberBatchesFailed":0,"numberBatchesInProgress":0,"numberBatchesQueued":0,"numberBatchesTotal":1,"numberRecordsFailed":0,"numberRecordsProcessed":2,"numberRetries":0,"object":"Account","operation":"query","state":"Closed","systemModstamp":"2017-05-02T20:46:02.000+0000","totalProcessingTime":0}'
|
405
|
+
http_version:
|
406
|
+
recorded_at: Tue, 02 May 2017 20:46:04 GMT
|
407
|
+
- request:
|
408
|
+
method: post
|
409
|
+
uri: https://login.salesforce.com/services/oauth2/token
|
410
|
+
body:
|
411
|
+
encoding: US-ASCII
|
412
|
+
string: grant_type=password&client_id={SALESFORCE_OAUTH_CONSUMER_KEY}&client_secret={SALESFORCE_OAUTH_CONSUMER_SECRET}&username=%7BSALESFORCE_USERNAME%7D&password=%7BSALESFORCE_PASSWORD%7D{SALESFORCE_SECURITY_TOKEN}
|
413
|
+
headers:
|
414
|
+
User-Agent:
|
415
|
+
- Faraday v0.12.1
|
416
|
+
Content-Type:
|
417
|
+
- application/x-www-form-urlencoded
|
418
|
+
Accept-Encoding:
|
419
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
420
|
+
Accept:
|
421
|
+
- "*/*"
|
422
|
+
response:
|
423
|
+
status:
|
424
|
+
code: 200
|
425
|
+
message: OK
|
426
|
+
headers:
|
427
|
+
Date:
|
428
|
+
- Tue, 02 May 2017 20:46:04 GMT
|
429
|
+
Strict-Transport-Security:
|
430
|
+
- max-age=31536000; includeSubDomains
|
431
|
+
X-Content-Type-Options:
|
432
|
+
- nosniff
|
433
|
+
X-Xss-Protection:
|
434
|
+
- 1; mode=block
|
435
|
+
Content-Security-Policy:
|
436
|
+
- referrer origin-when-cross-origin
|
437
|
+
- reflected-xss block;report-uri /_/ContentDomainCSPNoAuth?type=xss
|
438
|
+
Set-Cookie:
|
439
|
+
- BrowserId=sY79INLEQv2KUUrdzY1isQ;Path=/;Domain=.salesforce.com;Expires=Sat,
|
440
|
+
01-Jul-2017 20:46:04 GMT
|
441
|
+
Expires:
|
442
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
443
|
+
Pragma:
|
444
|
+
- no-cache
|
445
|
+
Cache-Control:
|
446
|
+
- no-cache, no-store
|
447
|
+
X-Readonlymode:
|
448
|
+
- 'false'
|
449
|
+
Content-Type:
|
450
|
+
- application/json;charset=UTF-8
|
451
|
+
Vary:
|
452
|
+
- Accept-Encoding
|
453
|
+
Transfer-Encoding:
|
454
|
+
- chunked
|
455
|
+
body:
|
456
|
+
encoding: ASCII-8BIT
|
457
|
+
string: '{"access_token":"{ACCESS_TOKEN}","instance_url":"https://instance.salesforce.com","id":"{ID_URL}","token_type":"Bearer","issued_at":"1493757965443","signature":"{SIGNATURE}"}'
|
458
|
+
http_version:
|
459
|
+
recorded_at: Tue, 02 May 2017 20:46:05 GMT
|
460
|
+
- request:
|
461
|
+
method: get
|
462
|
+
uri: https://instance.salesforce.com/services/async/39.0/job/7503600000BfwCuAAJ/batch/7513600000CF5qFAAT
|
463
|
+
body:
|
464
|
+
encoding: US-ASCII
|
465
|
+
string: ''
|
466
|
+
headers:
|
467
|
+
User-Agent:
|
468
|
+
- Faraday v0.12.1
|
469
|
+
Content-Type:
|
470
|
+
- application/json
|
471
|
+
X-Sfdc-Session:
|
472
|
+
- "{SESSION_ID}"
|
473
|
+
Authorization:
|
474
|
+
- "{AUTHORIZATION}"
|
475
|
+
Accept-Encoding:
|
476
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
477
|
+
Accept:
|
478
|
+
- "*/*"
|
479
|
+
response:
|
480
|
+
status:
|
481
|
+
code: 200
|
482
|
+
message: OK
|
483
|
+
headers:
|
484
|
+
Date:
|
485
|
+
- Tue, 02 May 2017 20:46:05 GMT
|
486
|
+
X-Content-Type-Options:
|
487
|
+
- nosniff
|
488
|
+
X-Xss-Protection:
|
489
|
+
- 1; mode=block
|
490
|
+
Content-Security-Policy:
|
491
|
+
- referrer origin-when-cross-origin
|
492
|
+
- reflected-xss block;report-uri /_/ContentDomainCSPNoAuth?type=xss
|
493
|
+
Set-Cookie:
|
494
|
+
- BrowserId=UvNmp6gcRwWA8xeS5ihI4A;Path=/;Domain=.salesforce.com;Expires=Sat,
|
495
|
+
01-Jul-2017 20:46:05 GMT
|
496
|
+
Expires:
|
497
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
498
|
+
Content-Type:
|
499
|
+
- application/json
|
500
|
+
Transfer-Encoding:
|
501
|
+
- chunked
|
502
|
+
body:
|
503
|
+
encoding: ASCII-8BIT
|
504
|
+
string: '{"apexProcessingTime":0,"apiActiveProcessingTime":0,"createdDate":"2017-05-02T20:46:01.000+0000","id":"7513600000CF5qFAAT","jobId":"7503600000BfwCuAAJ","numberRecordsFailed":0,"numberRecordsProcessed":2,"state":"Completed","stateMessage":null,"systemModstamp":"2017-05-02T20:46:03.000+0000","totalProcessingTime":0}'
|
505
|
+
http_version:
|
506
|
+
recorded_at: Tue, 02 May 2017 20:46:05 GMT
|
507
|
+
- request:
|
508
|
+
method: post
|
509
|
+
uri: https://login.salesforce.com/services/oauth2/token
|
510
|
+
body:
|
511
|
+
encoding: US-ASCII
|
512
|
+
string: grant_type=password&client_id={SALESFORCE_OAUTH_CONSUMER_KEY}&client_secret={SALESFORCE_OAUTH_CONSUMER_SECRET}&username=%7BSALESFORCE_USERNAME%7D&password=%7BSALESFORCE_PASSWORD%7D{SALESFORCE_SECURITY_TOKEN}
|
513
|
+
headers:
|
514
|
+
User-Agent:
|
515
|
+
- Faraday v0.12.1
|
516
|
+
Content-Type:
|
517
|
+
- application/x-www-form-urlencoded
|
518
|
+
Accept-Encoding:
|
519
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
520
|
+
Accept:
|
521
|
+
- "*/*"
|
522
|
+
response:
|
523
|
+
status:
|
524
|
+
code: 200
|
525
|
+
message: OK
|
526
|
+
headers:
|
527
|
+
Date:
|
528
|
+
- Tue, 02 May 2017 20:46:05 GMT
|
529
|
+
Strict-Transport-Security:
|
530
|
+
- max-age=31536000; includeSubDomains
|
531
|
+
X-Content-Type-Options:
|
532
|
+
- nosniff
|
533
|
+
X-Xss-Protection:
|
534
|
+
- 1; mode=block
|
535
|
+
Content-Security-Policy:
|
536
|
+
- referrer origin-when-cross-origin
|
537
|
+
- reflected-xss block;report-uri /_/ContentDomainCSPNoAuth?type=xss
|
538
|
+
Set-Cookie:
|
539
|
+
- BrowserId=p3BGC9otQW-gYtrNi-Tr-w;Path=/;Domain=.salesforce.com;Expires=Sat,
|
540
|
+
01-Jul-2017 20:46:05 GMT
|
541
|
+
Expires:
|
542
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
543
|
+
Pragma:
|
544
|
+
- no-cache
|
545
|
+
Cache-Control:
|
546
|
+
- no-cache, no-store
|
547
|
+
X-Readonlymode:
|
548
|
+
- 'false'
|
549
|
+
Content-Type:
|
550
|
+
- application/json;charset=UTF-8
|
551
|
+
Vary:
|
552
|
+
- Accept-Encoding
|
553
|
+
Transfer-Encoding:
|
554
|
+
- chunked
|
555
|
+
body:
|
556
|
+
encoding: ASCII-8BIT
|
557
|
+
string: '{"access_token":"{ACCESS_TOKEN}","instance_url":"https://instance.salesforce.com","id":"{ID_URL}","token_type":"Bearer","issued_at":"1493757968981","signature":"{SIGNATURE}"}'
|
558
|
+
http_version:
|
559
|
+
recorded_at: Tue, 02 May 2017 20:46:08 GMT
|
560
|
+
- request:
|
561
|
+
method: get
|
562
|
+
uri: https://instance.salesforce.com/services/async/39.0/job/7503600000BfwCuAAJ
|
563
|
+
body:
|
564
|
+
encoding: US-ASCII
|
565
|
+
string: ''
|
566
|
+
headers:
|
567
|
+
User-Agent:
|
568
|
+
- Faraday v0.12.1
|
569
|
+
Content-Type:
|
570
|
+
- application/json
|
571
|
+
X-Sfdc-Session:
|
572
|
+
- "{SESSION_ID}"
|
573
|
+
Authorization:
|
574
|
+
- "{AUTHORIZATION}"
|
575
|
+
Accept-Encoding:
|
576
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
577
|
+
Accept:
|
578
|
+
- "*/*"
|
579
|
+
response:
|
580
|
+
status:
|
581
|
+
code: 200
|
582
|
+
message: OK
|
583
|
+
headers:
|
584
|
+
Date:
|
585
|
+
- Tue, 02 May 2017 20:46:09 GMT
|
586
|
+
X-Content-Type-Options:
|
587
|
+
- nosniff
|
588
|
+
X-Xss-Protection:
|
589
|
+
- 1; mode=block
|
590
|
+
Content-Security-Policy:
|
591
|
+
- referrer origin-when-cross-origin
|
592
|
+
- reflected-xss block;report-uri /_/ContentDomainCSPNoAuth?type=xss
|
593
|
+
Set-Cookie:
|
594
|
+
- BrowserId=TkSGyN9ZR5Sq6KXC647c9A;Path=/;Domain=.salesforce.com;Expires=Sat,
|
595
|
+
01-Jul-2017 20:46:09 GMT
|
596
|
+
Expires:
|
597
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
598
|
+
Content-Type:
|
599
|
+
- application/json
|
600
|
+
Transfer-Encoding:
|
601
|
+
- chunked
|
602
|
+
body:
|
603
|
+
encoding: ASCII-8BIT
|
604
|
+
string: '{"apexProcessingTime":0,"apiActiveProcessingTime":0,"apiVersion":39.0,"assignmentRuleId":null,"concurrencyMode":"Parallel","contentType":"JSON","createdById":"00536000001qtbXAAQ","createdDate":"2017-05-02T20:45:59.000+0000","externalIdFieldName":null,"fastPathEnabled":false,"id":"7503600000BfwCuAAJ","numberBatchesCompleted":1,"numberBatchesFailed":0,"numberBatchesInProgress":0,"numberBatchesQueued":0,"numberBatchesTotal":1,"numberRecordsFailed":0,"numberRecordsProcessed":2,"numberRetries":0,"object":"Account","operation":"query","state":"Closed","systemModstamp":"2017-05-02T20:46:02.000+0000","totalProcessingTime":0}'
|
605
|
+
http_version:
|
606
|
+
recorded_at: Tue, 02 May 2017 20:46:11 GMT
|
607
|
+
- request:
|
608
|
+
method: post
|
609
|
+
uri: https://login.salesforce.com/services/oauth2/token
|
610
|
+
body:
|
611
|
+
encoding: US-ASCII
|
612
|
+
string: grant_type=password&client_id={SALESFORCE_OAUTH_CONSUMER_KEY}&client_secret={SALESFORCE_OAUTH_CONSUMER_SECRET}&username=%7BSALESFORCE_USERNAME%7D&password=%7BSALESFORCE_PASSWORD%7D{SALESFORCE_SECURITY_TOKEN}
|
613
|
+
headers:
|
614
|
+
User-Agent:
|
615
|
+
- Faraday v0.12.1
|
616
|
+
Content-Type:
|
617
|
+
- application/x-www-form-urlencoded
|
618
|
+
Accept-Encoding:
|
619
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
620
|
+
Accept:
|
621
|
+
- "*/*"
|
622
|
+
response:
|
623
|
+
status:
|
624
|
+
code: 200
|
625
|
+
message: OK
|
626
|
+
headers:
|
627
|
+
Date:
|
628
|
+
- Tue, 02 May 2017 20:46:11 GMT
|
629
|
+
Strict-Transport-Security:
|
630
|
+
- max-age=31536000; includeSubDomains
|
631
|
+
X-Content-Type-Options:
|
632
|
+
- nosniff
|
633
|
+
X-Xss-Protection:
|
634
|
+
- 1; mode=block
|
635
|
+
Content-Security-Policy:
|
636
|
+
- referrer origin-when-cross-origin
|
637
|
+
- reflected-xss block;report-uri /_/ContentDomainCSPNoAuth?type=xss
|
638
|
+
Set-Cookie:
|
639
|
+
- BrowserId=sE-JEYGnSRi7AMIa3ka99A;Path=/;Domain=.salesforce.com;Expires=Sat,
|
640
|
+
01-Jul-2017 20:46:11 GMT
|
641
|
+
Expires:
|
642
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
643
|
+
Pragma:
|
644
|
+
- no-cache
|
645
|
+
Cache-Control:
|
646
|
+
- no-cache, no-store
|
647
|
+
X-Readonlymode:
|
648
|
+
- 'false'
|
649
|
+
Content-Type:
|
650
|
+
- application/json;charset=UTF-8
|
651
|
+
Vary:
|
652
|
+
- Accept-Encoding
|
653
|
+
Transfer-Encoding:
|
654
|
+
- chunked
|
655
|
+
body:
|
656
|
+
encoding: ASCII-8BIT
|
657
|
+
string: '{"access_token":"{ACCESS_TOKEN}","instance_url":"https://instance.salesforce.com","id":"{ID_URL}","token_type":"Bearer","issued_at":"1493757971980","signature":"{SIGNATURE}"}'
|
658
|
+
http_version:
|
659
|
+
recorded_at: Tue, 02 May 2017 20:46:11 GMT
|
660
|
+
- request:
|
661
|
+
method: get
|
662
|
+
uri: https://instance.salesforce.com/services/async/39.0/job/7503600000BfwCuAAJ
|
663
|
+
body:
|
664
|
+
encoding: US-ASCII
|
665
|
+
string: ''
|
666
|
+
headers:
|
667
|
+
User-Agent:
|
668
|
+
- Faraday v0.12.1
|
669
|
+
Content-Type:
|
670
|
+
- application/json
|
671
|
+
X-Sfdc-Session:
|
672
|
+
- "{SESSION_ID}"
|
673
|
+
Authorization:
|
674
|
+
- "{AUTHORIZATION}"
|
675
|
+
Accept-Encoding:
|
676
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
677
|
+
Accept:
|
678
|
+
- "*/*"
|
679
|
+
response:
|
680
|
+
status:
|
681
|
+
code: 200
|
682
|
+
message: OK
|
683
|
+
headers:
|
684
|
+
Date:
|
685
|
+
- Tue, 02 May 2017 20:46:12 GMT
|
686
|
+
X-Content-Type-Options:
|
687
|
+
- nosniff
|
688
|
+
X-Xss-Protection:
|
689
|
+
- 1; mode=block
|
690
|
+
Content-Security-Policy:
|
691
|
+
- referrer origin-when-cross-origin
|
692
|
+
- reflected-xss block;report-uri /_/ContentDomainCSPNoAuth?type=xss
|
693
|
+
Set-Cookie:
|
694
|
+
- BrowserId=yFOhgfecT7i8dqDT0UeZsQ;Path=/;Domain=.salesforce.com;Expires=Sat,
|
695
|
+
01-Jul-2017 20:46:12 GMT
|
696
|
+
Expires:
|
697
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
698
|
+
Content-Type:
|
699
|
+
- application/json
|
700
|
+
Transfer-Encoding:
|
701
|
+
- chunked
|
702
|
+
body:
|
703
|
+
encoding: ASCII-8BIT
|
704
|
+
string: '{"apexProcessingTime":0,"apiActiveProcessingTime":0,"apiVersion":39.0,"assignmentRuleId":null,"concurrencyMode":"Parallel","contentType":"JSON","createdById":"00536000001qtbXAAQ","createdDate":"2017-05-02T20:45:59.000+0000","externalIdFieldName":null,"fastPathEnabled":false,"id":"7503600000BfwCuAAJ","numberBatchesCompleted":1,"numberBatchesFailed":0,"numberBatchesInProgress":0,"numberBatchesQueued":0,"numberBatchesTotal":1,"numberRecordsFailed":0,"numberRecordsProcessed":2,"numberRetries":0,"object":"Account","operation":"query","state":"Closed","systemModstamp":"2017-05-02T20:46:02.000+0000","totalProcessingTime":0}'
|
705
|
+
http_version:
|
706
|
+
recorded_at: Tue, 02 May 2017 20:46:12 GMT
|
707
|
+
- request:
|
708
|
+
method: post
|
709
|
+
uri: https://login.salesforce.com/services/oauth2/token
|
710
|
+
body:
|
711
|
+
encoding: US-ASCII
|
712
|
+
string: grant_type=password&client_id={SALESFORCE_OAUTH_CONSUMER_KEY}&client_secret={SALESFORCE_OAUTH_CONSUMER_SECRET}&username=%7BSALESFORCE_USERNAME%7D&password=%7BSALESFORCE_PASSWORD%7D{SALESFORCE_SECURITY_TOKEN}
|
713
|
+
headers:
|
714
|
+
User-Agent:
|
715
|
+
- Faraday v0.12.1
|
716
|
+
Content-Type:
|
717
|
+
- application/x-www-form-urlencoded
|
718
|
+
Accept-Encoding:
|
719
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
720
|
+
Accept:
|
721
|
+
- "*/*"
|
722
|
+
response:
|
723
|
+
status:
|
724
|
+
code: 200
|
725
|
+
message: OK
|
726
|
+
headers:
|
727
|
+
Date:
|
728
|
+
- Tue, 02 May 2017 20:46:12 GMT
|
729
|
+
Strict-Transport-Security:
|
730
|
+
- max-age=31536000; includeSubDomains
|
731
|
+
X-Content-Type-Options:
|
732
|
+
- nosniff
|
733
|
+
X-Xss-Protection:
|
734
|
+
- 1; mode=block
|
735
|
+
Content-Security-Policy:
|
736
|
+
- referrer origin-when-cross-origin
|
737
|
+
- reflected-xss block;report-uri /_/ContentDomainCSPNoAuth?type=xss
|
738
|
+
Set-Cookie:
|
739
|
+
- BrowserId=FQby9o7NQUC9RLmqVJxyKw;Path=/;Domain=.salesforce.com;Expires=Sat,
|
740
|
+
01-Jul-2017 20:46:12 GMT
|
741
|
+
Expires:
|
742
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
743
|
+
Pragma:
|
744
|
+
- no-cache
|
745
|
+
Cache-Control:
|
746
|
+
- no-cache, no-store
|
747
|
+
X-Readonlymode:
|
748
|
+
- 'false'
|
749
|
+
Content-Type:
|
750
|
+
- application/json;charset=UTF-8
|
751
|
+
Vary:
|
752
|
+
- Accept-Encoding
|
753
|
+
Transfer-Encoding:
|
754
|
+
- chunked
|
755
|
+
body:
|
756
|
+
encoding: ASCII-8BIT
|
757
|
+
string: '{"access_token":"{ACCESS_TOKEN}","instance_url":"https://instance.salesforce.com","id":"{ID_URL}","token_type":"Bearer","issued_at":"1493757973382","signature":"{SIGNATURE}"}'
|
758
|
+
http_version:
|
759
|
+
recorded_at: Tue, 02 May 2017 20:46:13 GMT
|
760
|
+
- request:
|
761
|
+
method: get
|
762
|
+
uri: https://instance.salesforce.com/services/async/39.0/job/7503600000BfwCuAAJ/batch
|
763
|
+
body:
|
764
|
+
encoding: US-ASCII
|
765
|
+
string: ''
|
766
|
+
headers:
|
767
|
+
User-Agent:
|
768
|
+
- Faraday v0.12.1
|
769
|
+
Content-Type:
|
770
|
+
- application/json
|
771
|
+
X-Sfdc-Session:
|
772
|
+
- "{SESSION_ID}"
|
773
|
+
Authorization:
|
774
|
+
- "{AUTHORIZATION}"
|
775
|
+
Accept-Encoding:
|
776
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
777
|
+
Accept:
|
778
|
+
- "*/*"
|
779
|
+
response:
|
780
|
+
status:
|
781
|
+
code: 200
|
782
|
+
message: OK
|
783
|
+
headers:
|
784
|
+
Date:
|
785
|
+
- Tue, 02 May 2017 20:46:13 GMT
|
786
|
+
X-Content-Type-Options:
|
787
|
+
- nosniff
|
788
|
+
X-Xss-Protection:
|
789
|
+
- 1; mode=block
|
790
|
+
Content-Security-Policy:
|
791
|
+
- referrer origin-when-cross-origin
|
792
|
+
- reflected-xss block;report-uri /_/ContentDomainCSPNoAuth?type=xss
|
793
|
+
Set-Cookie:
|
794
|
+
- BrowserId=mq8If20_SIqC8-gRsy6rgA;Path=/;Domain=.salesforce.com;Expires=Sat,
|
795
|
+
01-Jul-2017 20:46:13 GMT
|
796
|
+
Expires:
|
797
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
798
|
+
Content-Type:
|
799
|
+
- application/json
|
800
|
+
Transfer-Encoding:
|
801
|
+
- chunked
|
802
|
+
body:
|
803
|
+
encoding: ASCII-8BIT
|
804
|
+
string: '{"batchInfo":[{"apexProcessingTime":0,"apiActiveProcessingTime":0,"createdDate":"2017-05-02T20:46:01.000+0000","id":"7513600000CF5qFAAT","jobId":"7503600000BfwCuAAJ","numberRecordsFailed":0,"numberRecordsProcessed":2,"state":"Completed","stateMessage":null,"systemModstamp":"2017-05-02T20:46:03.000+0000","totalProcessingTime":0}]}'
|
805
|
+
http_version:
|
806
|
+
recorded_at: Tue, 02 May 2017 20:46:13 GMT
|
807
|
+
- request:
|
808
|
+
method: post
|
809
|
+
uri: https://login.salesforce.com/services/oauth2/token
|
810
|
+
body:
|
811
|
+
encoding: US-ASCII
|
812
|
+
string: grant_type=password&client_id={SALESFORCE_OAUTH_CONSUMER_KEY}&client_secret={SALESFORCE_OAUTH_CONSUMER_SECRET}&username=%7BSALESFORCE_USERNAME%7D&password=%7BSALESFORCE_PASSWORD%7D{SALESFORCE_SECURITY_TOKEN}
|
813
|
+
headers:
|
814
|
+
User-Agent:
|
815
|
+
- Faraday v0.12.1
|
816
|
+
Content-Type:
|
817
|
+
- application/x-www-form-urlencoded
|
818
|
+
Accept-Encoding:
|
819
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
820
|
+
Accept:
|
821
|
+
- "*/*"
|
822
|
+
response:
|
823
|
+
status:
|
824
|
+
code: 200
|
825
|
+
message: OK
|
826
|
+
headers:
|
827
|
+
Date:
|
828
|
+
- Tue, 02 May 2017 20:46:13 GMT
|
829
|
+
Strict-Transport-Security:
|
830
|
+
- max-age=31536000; includeSubDomains
|
831
|
+
X-Content-Type-Options:
|
832
|
+
- nosniff
|
833
|
+
X-Xss-Protection:
|
834
|
+
- 1; mode=block
|
835
|
+
Content-Security-Policy:
|
836
|
+
- referrer origin-when-cross-origin
|
837
|
+
- reflected-xss block;report-uri /_/ContentDomainCSPNoAuth?type=xss
|
838
|
+
Set-Cookie:
|
839
|
+
- BrowserId=kGLJtKIZSyOZpLv03VMRig;Path=/;Domain=.salesforce.com;Expires=Sat,
|
840
|
+
01-Jul-2017 20:46:13 GMT
|
841
|
+
Expires:
|
842
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
843
|
+
Pragma:
|
844
|
+
- no-cache
|
845
|
+
Cache-Control:
|
846
|
+
- no-cache, no-store
|
847
|
+
X-Readonlymode:
|
848
|
+
- 'false'
|
849
|
+
Content-Type:
|
850
|
+
- application/json;charset=UTF-8
|
851
|
+
Vary:
|
852
|
+
- Accept-Encoding
|
853
|
+
Transfer-Encoding:
|
854
|
+
- chunked
|
855
|
+
body:
|
856
|
+
encoding: ASCII-8BIT
|
857
|
+
string: '{"access_token":"{ACCESS_TOKEN}","instance_url":"https://instance.salesforce.com","id":"{ID_URL}","token_type":"Bearer","issued_at":"1493757974447","signature":"{SIGNATURE}"}'
|
858
|
+
http_version:
|
859
|
+
recorded_at: Tue, 02 May 2017 20:46:14 GMT
|
860
|
+
- request:
|
861
|
+
method: get
|
862
|
+
uri: https://instance.salesforce.com/services/async/39.0/job/7503600000BfwCuAAJ
|
863
|
+
body:
|
864
|
+
encoding: US-ASCII
|
865
|
+
string: ''
|
866
|
+
headers:
|
867
|
+
User-Agent:
|
868
|
+
- Faraday v0.12.1
|
869
|
+
Content-Type:
|
870
|
+
- application/json
|
871
|
+
X-Sfdc-Session:
|
872
|
+
- "{SESSION_ID}"
|
873
|
+
Authorization:
|
874
|
+
- "{AUTHORIZATION}"
|
875
|
+
Accept-Encoding:
|
876
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
877
|
+
Accept:
|
878
|
+
- "*/*"
|
879
|
+
response:
|
880
|
+
status:
|
881
|
+
code: 200
|
882
|
+
message: OK
|
883
|
+
headers:
|
884
|
+
Date:
|
885
|
+
- Tue, 02 May 2017 20:46:14 GMT
|
886
|
+
X-Content-Type-Options:
|
887
|
+
- nosniff
|
888
|
+
X-Xss-Protection:
|
889
|
+
- 1; mode=block
|
890
|
+
Content-Security-Policy:
|
891
|
+
- referrer origin-when-cross-origin
|
892
|
+
- reflected-xss block;report-uri /_/ContentDomainCSPNoAuth?type=xss
|
893
|
+
Set-Cookie:
|
894
|
+
- BrowserId=Tq6Bv354TJGH3lhKrfTdTg;Path=/;Domain=.salesforce.com;Expires=Sat,
|
895
|
+
01-Jul-2017 20:46:14 GMT
|
896
|
+
Expires:
|
897
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
898
|
+
Content-Type:
|
899
|
+
- application/json
|
900
|
+
Transfer-Encoding:
|
901
|
+
- chunked
|
902
|
+
body:
|
903
|
+
encoding: ASCII-8BIT
|
904
|
+
string: '{"apexProcessingTime":0,"apiActiveProcessingTime":0,"apiVersion":39.0,"assignmentRuleId":null,"concurrencyMode":"Parallel","contentType":"JSON","createdById":"00536000001qtbXAAQ","createdDate":"2017-05-02T20:45:59.000+0000","externalIdFieldName":null,"fastPathEnabled":false,"id":"7503600000BfwCuAAJ","numberBatchesCompleted":1,"numberBatchesFailed":0,"numberBatchesInProgress":0,"numberBatchesQueued":0,"numberBatchesTotal":1,"numberRecordsFailed":0,"numberRecordsProcessed":2,"numberRetries":0,"object":"Account","operation":"query","state":"Closed","systemModstamp":"2017-05-02T20:46:02.000+0000","totalProcessingTime":0}'
|
905
|
+
http_version:
|
906
|
+
recorded_at: Tue, 02 May 2017 20:46:15 GMT
|
907
|
+
- request:
|
908
|
+
method: post
|
909
|
+
uri: https://login.salesforce.com/services/oauth2/token
|
910
|
+
body:
|
911
|
+
encoding: US-ASCII
|
912
|
+
string: grant_type=password&client_id={SALESFORCE_OAUTH_CONSUMER_KEY}&client_secret={SALESFORCE_OAUTH_CONSUMER_SECRET}&username=%7BSALESFORCE_USERNAME%7D&password=%7BSALESFORCE_PASSWORD%7D{SALESFORCE_SECURITY_TOKEN}
|
913
|
+
headers:
|
914
|
+
User-Agent:
|
915
|
+
- Faraday v0.12.1
|
916
|
+
Content-Type:
|
917
|
+
- application/x-www-form-urlencoded
|
918
|
+
Accept-Encoding:
|
919
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
920
|
+
Accept:
|
921
|
+
- "*/*"
|
922
|
+
response:
|
923
|
+
status:
|
924
|
+
code: 200
|
925
|
+
message: OK
|
926
|
+
headers:
|
927
|
+
Date:
|
928
|
+
- Tue, 02 May 2017 20:46:15 GMT
|
929
|
+
Strict-Transport-Security:
|
930
|
+
- max-age=31536000; includeSubDomains
|
931
|
+
X-Content-Type-Options:
|
932
|
+
- nosniff
|
933
|
+
X-Xss-Protection:
|
934
|
+
- 1; mode=block
|
935
|
+
Content-Security-Policy:
|
936
|
+
- referrer origin-when-cross-origin
|
937
|
+
- reflected-xss block;report-uri /_/ContentDomainCSPNoAuth?type=xss
|
938
|
+
Set-Cookie:
|
939
|
+
- BrowserId=C7yveXoHSLq51XSaAEqZig;Path=/;Domain=.salesforce.com;Expires=Sat,
|
940
|
+
01-Jul-2017 20:46:15 GMT
|
941
|
+
Expires:
|
942
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
943
|
+
Pragma:
|
944
|
+
- no-cache
|
945
|
+
Cache-Control:
|
946
|
+
- no-cache, no-store
|
947
|
+
X-Readonlymode:
|
948
|
+
- 'false'
|
949
|
+
Content-Type:
|
950
|
+
- application/json;charset=UTF-8
|
951
|
+
Vary:
|
952
|
+
- Accept-Encoding
|
953
|
+
Transfer-Encoding:
|
954
|
+
- chunked
|
955
|
+
body:
|
956
|
+
encoding: ASCII-8BIT
|
957
|
+
string: '{"access_token":"{ACCESS_TOKEN}","instance_url":"https://instance.salesforce.com","id":"{ID_URL}","token_type":"Bearer","issued_at":"1493757976241","signature":"{SIGNATURE}"}'
|
958
|
+
http_version:
|
959
|
+
recorded_at: Tue, 02 May 2017 20:46:16 GMT
|
960
|
+
- request:
|
961
|
+
method: get
|
962
|
+
uri: https://instance.salesforce.com/services/async/39.0/job/7503600000BfwCuAAJ/batch/7513600000CF5qFAAT
|
963
|
+
body:
|
964
|
+
encoding: US-ASCII
|
965
|
+
string: ''
|
966
|
+
headers:
|
967
|
+
User-Agent:
|
968
|
+
- Faraday v0.12.1
|
969
|
+
Content-Type:
|
970
|
+
- application/json
|
971
|
+
X-Sfdc-Session:
|
972
|
+
- "{SESSION_ID}"
|
973
|
+
Authorization:
|
974
|
+
- "{AUTHORIZATION}"
|
975
|
+
Accept-Encoding:
|
976
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
977
|
+
Accept:
|
978
|
+
- "*/*"
|
979
|
+
response:
|
980
|
+
status:
|
981
|
+
code: 200
|
982
|
+
message: OK
|
983
|
+
headers:
|
984
|
+
Date:
|
985
|
+
- Tue, 02 May 2017 20:46:16 GMT
|
986
|
+
X-Content-Type-Options:
|
987
|
+
- nosniff
|
988
|
+
X-Xss-Protection:
|
989
|
+
- 1; mode=block
|
990
|
+
Content-Security-Policy:
|
991
|
+
- referrer origin-when-cross-origin
|
992
|
+
- reflected-xss block;report-uri /_/ContentDomainCSPNoAuth?type=xss
|
993
|
+
Set-Cookie:
|
994
|
+
- BrowserId=q0DrbbVpSya9-w5VzIx9Qg;Path=/;Domain=.salesforce.com;Expires=Sat,
|
995
|
+
01-Jul-2017 20:46:16 GMT
|
996
|
+
Expires:
|
997
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
998
|
+
Content-Type:
|
999
|
+
- application/json
|
1000
|
+
Transfer-Encoding:
|
1001
|
+
- chunked
|
1002
|
+
body:
|
1003
|
+
encoding: ASCII-8BIT
|
1004
|
+
string: '{"apexProcessingTime":0,"apiActiveProcessingTime":0,"createdDate":"2017-05-02T20:46:01.000+0000","id":"7513600000CF5qFAAT","jobId":"7503600000BfwCuAAJ","numberRecordsFailed":0,"numberRecordsProcessed":2,"state":"Completed","stateMessage":null,"systemModstamp":"2017-05-02T20:46:03.000+0000","totalProcessingTime":0}'
|
1005
|
+
http_version:
|
1006
|
+
recorded_at: Tue, 02 May 2017 20:46:16 GMT
|
1007
|
+
- request:
|
1008
|
+
method: post
|
1009
|
+
uri: https://login.salesforce.com/services/oauth2/token
|
1010
|
+
body:
|
1011
|
+
encoding: US-ASCII
|
1012
|
+
string: grant_type=password&client_id={SALESFORCE_OAUTH_CONSUMER_KEY}&client_secret={SALESFORCE_OAUTH_CONSUMER_SECRET}&username=%7BSALESFORCE_USERNAME%7D&password=%7BSALESFORCE_PASSWORD%7D{SALESFORCE_SECURITY_TOKEN}
|
1013
|
+
headers:
|
1014
|
+
User-Agent:
|
1015
|
+
- Faraday v0.12.1
|
1016
|
+
Content-Type:
|
1017
|
+
- application/x-www-form-urlencoded
|
1018
|
+
Accept-Encoding:
|
1019
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1020
|
+
Accept:
|
1021
|
+
- "*/*"
|
1022
|
+
response:
|
1023
|
+
status:
|
1024
|
+
code: 200
|
1025
|
+
message: OK
|
1026
|
+
headers:
|
1027
|
+
Date:
|
1028
|
+
- Tue, 02 May 2017 20:46:16 GMT
|
1029
|
+
Strict-Transport-Security:
|
1030
|
+
- max-age=31536000; includeSubDomains
|
1031
|
+
X-Content-Type-Options:
|
1032
|
+
- nosniff
|
1033
|
+
X-Xss-Protection:
|
1034
|
+
- 1; mode=block
|
1035
|
+
Content-Security-Policy:
|
1036
|
+
- referrer origin-when-cross-origin
|
1037
|
+
- reflected-xss block;report-uri /_/ContentDomainCSPNoAuth?type=xss
|
1038
|
+
Set-Cookie:
|
1039
|
+
- BrowserId=e5NtlsedSGmUZB-UfpcMpA;Path=/;Domain=.salesforce.com;Expires=Sat,
|
1040
|
+
01-Jul-2017 20:46:16 GMT
|
1041
|
+
Expires:
|
1042
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
1043
|
+
Pragma:
|
1044
|
+
- no-cache
|
1045
|
+
Cache-Control:
|
1046
|
+
- no-cache, no-store
|
1047
|
+
X-Readonlymode:
|
1048
|
+
- 'false'
|
1049
|
+
Content-Type:
|
1050
|
+
- application/json;charset=UTF-8
|
1051
|
+
Vary:
|
1052
|
+
- Accept-Encoding
|
1053
|
+
Transfer-Encoding:
|
1054
|
+
- chunked
|
1055
|
+
body:
|
1056
|
+
encoding: ASCII-8BIT
|
1057
|
+
string: '{"access_token":"{ACCESS_TOKEN}","instance_url":"https://instance.salesforce.com","id":"{ID_URL}","token_type":"Bearer","issued_at":"1493757977415","signature":"{SIGNATURE}"}'
|
1058
|
+
http_version:
|
1059
|
+
recorded_at: Tue, 02 May 2017 20:46:17 GMT
|
1060
|
+
- request:
|
1061
|
+
method: get
|
1062
|
+
uri: https://instance.salesforce.com/services/async/39.0/job/7503600000BfwCuAAJ
|
1063
|
+
body:
|
1064
|
+
encoding: US-ASCII
|
1065
|
+
string: ''
|
1066
|
+
headers:
|
1067
|
+
User-Agent:
|
1068
|
+
- Faraday v0.12.1
|
1069
|
+
Content-Type:
|
1070
|
+
- application/json
|
1071
|
+
X-Sfdc-Session:
|
1072
|
+
- "{SESSION_ID}"
|
1073
|
+
Authorization:
|
1074
|
+
- "{AUTHORIZATION}"
|
1075
|
+
Accept-Encoding:
|
1076
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1077
|
+
Accept:
|
1078
|
+
- "*/*"
|
1079
|
+
response:
|
1080
|
+
status:
|
1081
|
+
code: 200
|
1082
|
+
message: OK
|
1083
|
+
headers:
|
1084
|
+
Date:
|
1085
|
+
- Tue, 02 May 2017 20:46:17 GMT
|
1086
|
+
X-Content-Type-Options:
|
1087
|
+
- nosniff
|
1088
|
+
X-Xss-Protection:
|
1089
|
+
- 1; mode=block
|
1090
|
+
Content-Security-Policy:
|
1091
|
+
- referrer origin-when-cross-origin
|
1092
|
+
- reflected-xss block;report-uri /_/ContentDomainCSPNoAuth?type=xss
|
1093
|
+
Set-Cookie:
|
1094
|
+
- BrowserId=kr_TG94bT3yuWj4OKN0lcQ;Path=/;Domain=.salesforce.com;Expires=Sat,
|
1095
|
+
01-Jul-2017 20:46:17 GMT
|
1096
|
+
Expires:
|
1097
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
1098
|
+
Content-Type:
|
1099
|
+
- application/json
|
1100
|
+
Transfer-Encoding:
|
1101
|
+
- chunked
|
1102
|
+
body:
|
1103
|
+
encoding: ASCII-8BIT
|
1104
|
+
string: '{"apexProcessingTime":0,"apiActiveProcessingTime":0,"apiVersion":39.0,"assignmentRuleId":null,"concurrencyMode":"Parallel","contentType":"JSON","createdById":"00536000001qtbXAAQ","createdDate":"2017-05-02T20:45:59.000+0000","externalIdFieldName":null,"fastPathEnabled":false,"id":"7503600000BfwCuAAJ","numberBatchesCompleted":1,"numberBatchesFailed":0,"numberBatchesInProgress":0,"numberBatchesQueued":0,"numberBatchesTotal":1,"numberRecordsFailed":0,"numberRecordsProcessed":2,"numberRetries":0,"object":"Account","operation":"query","state":"Closed","systemModstamp":"2017-05-02T20:46:02.000+0000","totalProcessingTime":0}'
|
1105
|
+
http_version:
|
1106
|
+
recorded_at: Tue, 02 May 2017 20:46:18 GMT
|
1107
|
+
- request:
|
1108
|
+
method: post
|
1109
|
+
uri: https://login.salesforce.com/services/oauth2/token
|
1110
|
+
body:
|
1111
|
+
encoding: US-ASCII
|
1112
|
+
string: grant_type=password&client_id={SALESFORCE_OAUTH_CONSUMER_KEY}&client_secret={SALESFORCE_OAUTH_CONSUMER_SECRET}&username=%7BSALESFORCE_USERNAME%7D&password=%7BSALESFORCE_PASSWORD%7D{SALESFORCE_SECURITY_TOKEN}
|
1113
|
+
headers:
|
1114
|
+
User-Agent:
|
1115
|
+
- Faraday v0.12.1
|
1116
|
+
Content-Type:
|
1117
|
+
- application/x-www-form-urlencoded
|
1118
|
+
Accept-Encoding:
|
1119
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1120
|
+
Accept:
|
1121
|
+
- "*/*"
|
1122
|
+
response:
|
1123
|
+
status:
|
1124
|
+
code: 200
|
1125
|
+
message: OK
|
1126
|
+
headers:
|
1127
|
+
Date:
|
1128
|
+
- Tue, 02 May 2017 20:46:18 GMT
|
1129
|
+
Strict-Transport-Security:
|
1130
|
+
- max-age=31536000; includeSubDomains
|
1131
|
+
X-Content-Type-Options:
|
1132
|
+
- nosniff
|
1133
|
+
X-Xss-Protection:
|
1134
|
+
- 1; mode=block
|
1135
|
+
Content-Security-Policy:
|
1136
|
+
- referrer origin-when-cross-origin
|
1137
|
+
- reflected-xss block;report-uri /_/ContentDomainCSPNoAuth?type=xss
|
1138
|
+
Set-Cookie:
|
1139
|
+
- BrowserId=gsso3XR8TOavjblUNBmZhg;Path=/;Domain=.salesforce.com;Expires=Sat,
|
1140
|
+
01-Jul-2017 20:46:18 GMT
|
1141
|
+
Expires:
|
1142
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
1143
|
+
Pragma:
|
1144
|
+
- no-cache
|
1145
|
+
Cache-Control:
|
1146
|
+
- no-cache, no-store
|
1147
|
+
X-Readonlymode:
|
1148
|
+
- 'false'
|
1149
|
+
Content-Type:
|
1150
|
+
- application/json;charset=UTF-8
|
1151
|
+
Vary:
|
1152
|
+
- Accept-Encoding
|
1153
|
+
Transfer-Encoding:
|
1154
|
+
- chunked
|
1155
|
+
body:
|
1156
|
+
encoding: ASCII-8BIT
|
1157
|
+
string: '{"access_token":"{ACCESS_TOKEN}","instance_url":"https://instance.salesforce.com","id":"{ID_URL}","token_type":"Bearer","issued_at":"1493757978820","signature":"{SIGNATURE}"}'
|
1158
|
+
http_version:
|
1159
|
+
recorded_at: Tue, 02 May 2017 20:46:18 GMT
|
1160
|
+
- request:
|
1161
|
+
method: get
|
1162
|
+
uri: https://instance.salesforce.com/services/async/39.0/job/7503600000BfwCuAAJ/batch/7513600000CF5qFAAT/result
|
1163
|
+
body:
|
1164
|
+
encoding: US-ASCII
|
1165
|
+
string: ''
|
1166
|
+
headers:
|
1167
|
+
User-Agent:
|
1168
|
+
- Faraday v0.12.1
|
1169
|
+
Content-Type:
|
1170
|
+
- application/json
|
1171
|
+
X-Sfdc-Session:
|
1172
|
+
- "{SESSION_ID}"
|
1173
|
+
Authorization:
|
1174
|
+
- "{AUTHORIZATION}"
|
1175
|
+
Accept-Encoding:
|
1176
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1177
|
+
Accept:
|
1178
|
+
- "*/*"
|
1179
|
+
response:
|
1180
|
+
status:
|
1181
|
+
code: 200
|
1182
|
+
message: OK
|
1183
|
+
headers:
|
1184
|
+
Date:
|
1185
|
+
- Tue, 02 May 2017 20:46:19 GMT
|
1186
|
+
X-Content-Type-Options:
|
1187
|
+
- nosniff
|
1188
|
+
X-Xss-Protection:
|
1189
|
+
- 1; mode=block
|
1190
|
+
Content-Security-Policy:
|
1191
|
+
- referrer origin-when-cross-origin
|
1192
|
+
- reflected-xss block;report-uri /_/ContentDomainCSPNoAuth?type=xss
|
1193
|
+
Set-Cookie:
|
1194
|
+
- BrowserId=0Dh0fx6_S5CIpvVmSoAb6w;Path=/;Domain=.salesforce.com;Expires=Sat,
|
1195
|
+
01-Jul-2017 20:46:19 GMT
|
1196
|
+
Expires:
|
1197
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
1198
|
+
Content-Type:
|
1199
|
+
- application/json
|
1200
|
+
Transfer-Encoding:
|
1201
|
+
- chunked
|
1202
|
+
body:
|
1203
|
+
encoding: ASCII-8BIT
|
1204
|
+
string: '["75236000005bB4w"]'
|
1205
|
+
http_version:
|
1206
|
+
recorded_at: Tue, 02 May 2017 20:46:19 GMT
|
1207
|
+
- request:
|
1208
|
+
method: post
|
1209
|
+
uri: https://login.salesforce.com/services/oauth2/token
|
1210
|
+
body:
|
1211
|
+
encoding: US-ASCII
|
1212
|
+
string: grant_type=password&client_id={SALESFORCE_OAUTH_CONSUMER_KEY}&client_secret={SALESFORCE_OAUTH_CONSUMER_SECRET}&username=%7BSALESFORCE_USERNAME%7D&password=%7BSALESFORCE_PASSWORD%7D{SALESFORCE_SECURITY_TOKEN}
|
1213
|
+
headers:
|
1214
|
+
User-Agent:
|
1215
|
+
- Faraday v0.12.1
|
1216
|
+
Content-Type:
|
1217
|
+
- application/x-www-form-urlencoded
|
1218
|
+
Accept-Encoding:
|
1219
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1220
|
+
Accept:
|
1221
|
+
- "*/*"
|
1222
|
+
response:
|
1223
|
+
status:
|
1224
|
+
code: 200
|
1225
|
+
message: OK
|
1226
|
+
headers:
|
1227
|
+
Date:
|
1228
|
+
- Tue, 02 May 2017 20:46:19 GMT
|
1229
|
+
Strict-Transport-Security:
|
1230
|
+
- max-age=31536000; includeSubDomains
|
1231
|
+
X-Content-Type-Options:
|
1232
|
+
- nosniff
|
1233
|
+
X-Xss-Protection:
|
1234
|
+
- 1; mode=block
|
1235
|
+
Content-Security-Policy:
|
1236
|
+
- referrer origin-when-cross-origin
|
1237
|
+
- reflected-xss block;report-uri /_/ContentDomainCSPNoAuth?type=xss
|
1238
|
+
Set-Cookie:
|
1239
|
+
- BrowserId=cFtzHCBmRReJnV7svxQ-3w;Path=/;Domain=.salesforce.com;Expires=Sat,
|
1240
|
+
01-Jul-2017 20:46:19 GMT
|
1241
|
+
Expires:
|
1242
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
1243
|
+
Pragma:
|
1244
|
+
- no-cache
|
1245
|
+
Cache-Control:
|
1246
|
+
- no-cache, no-store
|
1247
|
+
X-Readonlymode:
|
1248
|
+
- 'false'
|
1249
|
+
Content-Type:
|
1250
|
+
- application/json;charset=UTF-8
|
1251
|
+
Vary:
|
1252
|
+
- Accept-Encoding
|
1253
|
+
Transfer-Encoding:
|
1254
|
+
- chunked
|
1255
|
+
body:
|
1256
|
+
encoding: ASCII-8BIT
|
1257
|
+
string: '{"access_token":"{ACCESS_TOKEN}","instance_url":"https://instance.salesforce.com","id":"{ID_URL}","token_type":"Bearer","issued_at":"1493757979877","signature":"{SIGNATURE}"}'
|
1258
|
+
http_version:
|
1259
|
+
recorded_at: Tue, 02 May 2017 20:46:19 GMT
|
1260
|
+
- request:
|
1261
|
+
method: get
|
1262
|
+
uri: https://instance.salesforce.com/services/async/39.0/job/7503600000BfwCuAAJ/batch/7513600000CF5qFAAT/result/75236000005bB4w
|
1263
|
+
body:
|
1264
|
+
encoding: US-ASCII
|
1265
|
+
string: ''
|
1266
|
+
headers:
|
1267
|
+
User-Agent:
|
1268
|
+
- Faraday v0.12.1
|
1269
|
+
Content-Type:
|
1270
|
+
- application/json
|
1271
|
+
X-Sfdc-Session:
|
1272
|
+
- "{SESSION_ID}"
|
1273
|
+
Authorization:
|
1274
|
+
- "{AUTHORIZATION}"
|
1275
|
+
Accept-Encoding:
|
1276
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1277
|
+
Accept:
|
1278
|
+
- "*/*"
|
1279
|
+
response:
|
1280
|
+
status:
|
1281
|
+
code: 200
|
1282
|
+
message: OK
|
1283
|
+
headers:
|
1284
|
+
Date:
|
1285
|
+
- Tue, 02 May 2017 20:46:20 GMT
|
1286
|
+
X-Content-Type-Options:
|
1287
|
+
- nosniff
|
1288
|
+
X-Xss-Protection:
|
1289
|
+
- 1; mode=block
|
1290
|
+
Content-Security-Policy:
|
1291
|
+
- referrer origin-when-cross-origin
|
1292
|
+
- reflected-xss block;report-uri /_/ContentDomainCSPNoAuth?type=xss
|
1293
|
+
Set-Cookie:
|
1294
|
+
- BrowserId=rwSPlBgJQmyODUxgdOtsSw;Path=/;Domain=.salesforce.com;Expires=Sat,
|
1295
|
+
01-Jul-2017 20:46:20 GMT
|
1296
|
+
Expires:
|
1297
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
1298
|
+
Content-Type:
|
1299
|
+
- application/json
|
1300
|
+
Transfer-Encoding:
|
1301
|
+
- chunked
|
1302
|
+
body:
|
1303
|
+
encoding: ASCII-8BIT
|
1304
|
+
string: |-
|
1305
|
+
[ {
|
1306
|
+
"attributes" : {
|
1307
|
+
"type" : "Account",
|
1308
|
+
"url" : "/services/data/v39.0/sobjects/Account/00136000014tyLaAAI"
|
1309
|
+
},
|
1310
|
+
"Id" : "00136000014tyLaAAI",
|
1311
|
+
"Name" : "Test Upserted Account"
|
1312
|
+
}, {
|
1313
|
+
"attributes" : {
|
1314
|
+
"type" : "Account",
|
1315
|
+
"url" : "/services/data/v39.0/sobjects/Account/00136000014tyLpAAI"
|
1316
|
+
},
|
1317
|
+
"Id" : "00136000014tyLpAAI",
|
1318
|
+
"Name" : "Test Upserted Account"
|
1319
|
+
} ]
|
1320
|
+
http_version:
|
1321
|
+
recorded_at: Tue, 02 May 2017 20:46:20 GMT
|
1322
|
+
recorded_with: VCR 3.0.3
|