|
@@ -81,7 +81,7 @@ discard block |
|
|
block discarded – undo |
|
81
|
81
|
*/ |
|
82
|
82
|
public function getRecord($objectType, $sfId, array $fields) |
|
83
|
83
|
{ |
|
84
|
|
- $url = $this->baseUrl . "/services/data/v{$this->version}/sobjects/{$objectType}/{$sfId}?fields=".implode(',', $fields); |
|
|
84
|
+ $url = $this->baseUrl . "/services/data/v{$this->version}/sobjects/{$objectType}/{$sfId}?fields=" . implode(',', $fields); |
|
85
|
85
|
$response = $this->makeRequest('get', $url, ['headers' => ['Authorization' => $this->getAuthHeader()]]); |
|
86
|
86
|
|
|
87
|
87
|
return json_decode($response->getBody(), true); |
|
@@ -165,7 +165,7 @@ discard block |
|
|
block discarded – undo |
|
165
|
165
|
{ |
|
166
|
166
|
$url = $this->baseUrl . "/services/data/v{$this->version}/sobjects/{$object}/"; |
|
167
|
167
|
|
|
168
|
|
- $response = $this->makeRequest('post', $url, [ |
|
|
168
|
+ $response = $this->makeRequest('post', $url, [ |
|
169
|
169
|
'headers' => ['Content-Type' => 'application/json', 'Authorization' => $this->getAuthHeader()], |
|
170
|
170
|
'body' => json_encode($data) |
|
171
|
171
|
]); |
Please login to merge, or discard this patch.