add delete
Showing
2 changed files
with
11 additions
and
2 deletions
| ... | @@ -688,4 +688,15 @@ abstract class ImmoScoutAPI extends GuzzleClient | ... | @@ -688,4 +688,15 @@ abstract class ImmoScoutAPI extends GuzzleClient |
| 688 | 688 | ||
| 689 | return $arr['common.realtorContactDetailsList']['realtorContactDetails']; | 689 | return $arr['common.realtorContactDetailsList']['realtorContactDetails']; |
| 690 | } | 690 | } |
| 691 | |||
| 692 | /** | ||
| 693 | * Get an array of all contacts that can be specified for a real estate. | ||
| 694 | * @param string $reId realestate id used by is24 * | ||
| 695 | */ | ||
| 696 | public function delete($reId) | ||
| 697 | { | ||
| 698 | $res = $this->callMethod('realestate/'.$reId, 'DELETE'); | ||
| 699 | |||
| 700 | return $this->checkForResponseDeleted($res); | ||
| 701 | } | ||
| 691 | } | 702 | } | ... | ... |
| ... | @@ -4,8 +4,6 @@ namespace fehrlich\ImmoScoutAPI\exceptions; | ... | @@ -4,8 +4,6 @@ namespace fehrlich\ImmoScoutAPI\exceptions; |
| 4 | 4 | ||
| 5 | use Exception; | 5 | use Exception; |
| 6 | 6 | ||
| 7 | use Exception; | ||
| 8 | |||
| 9 | class InvalidTokenException extends Exception | 7 | class InvalidTokenException extends Exception |
| 10 | { | 8 | { |
| 11 | } | 9 | } | ... | ... |
-
Please register or sign in to post a comment