|
@@ 169-176 (lines=8) @@
|
| 166 |
|
* @return bool |
| 167 |
|
* @throws \Exception |
| 168 |
|
*/ |
| 169 |
|
public function deleteRecord($object, $id) |
| 170 |
|
{ |
| 171 |
|
$url = $this->baseUrl . '/services/data/' . self::SALESFORCE_API_VERSION . '/sobjects/' . $object . '/' . $id; |
| 172 |
|
|
| 173 |
|
$this->makeRequest('delete', $url, ['headers' => ['Authorization' => $this->getAuthHeader()]]); |
| 174 |
|
|
| 175 |
|
return true; |
| 176 |
|
} |
| 177 |
|
|
| 178 |
|
|
| 179 |
|
|
|
@@ 188-195 (lines=8) @@
|
| 185 |
|
* @return bool |
| 186 |
|
* @throws \Exception |
| 187 |
|
*/ |
| 188 |
|
public function bulkDeleteRecords(array $ids) |
| 189 |
|
{ |
| 190 |
|
$url = $this->baseUrl . '/services/data/' . self::SALESFORCE_API_VERSION . '/composite/sobjects?ids=' . \implode(',', $ids); |
| 191 |
|
|
| 192 |
|
$this->makeRequest('delete', $url, ['headers' => ['Authorization' => $this->getAuthHeader()]]); |
| 193 |
|
|
| 194 |
|
return true; |
| 195 |
|
} |
| 196 |
|
|
| 197 |
|
/** |
| 198 |
|
* Login with user and password |