| @@ 89-100 (lines=12) @@ | ||
| 86 | return $abContacts; |
|
| 87 | } |
|
| 88 | ||
| 89 | public function deleteAvoidanceZone($territory_id) |
|
| 90 | { |
|
| 91 | $result = Route4Me::makeRequst(array( |
|
| 92 | 'url' => Endpoint::AVOIDANCE_ZONE, |
|
| 93 | 'method' => 'DELETEARRAY', |
|
| 94 | 'query' => array( |
|
| 95 | 'territory_id' => $territory_id |
|
| 96 | ) |
|
| 97 | )); |
|
| 98 | ||
| 99 | return $result; |
|
| 100 | } |
|
| 101 | ||
| 102 | public function updateAvoidanceZone($params) |
|
| 103 | { |
|
| @@ 80-91 (lines=12) @@ | ||
| 77 | return $response; |
|
| 78 | } |
|
| 79 | ||
| 80 | public function deleteTerritory($territory_id) |
|
| 81 | { |
|
| 82 | $result = Route4Me::makeRequst(array( |
|
| 83 | 'url' => Endpoint::TERRITORY_V4, |
|
| 84 | 'method' => 'DELETEARRAY', |
|
| 85 | 'query' => array( |
|
| 86 | 'territory_id' => $territory_id |
|
| 87 | ) |
|
| 88 | )); |
|
| 89 | ||
| 90 | return $result; |
|
| 91 | } |
|
| 92 | ||
| 93 | public function updateTerritory($params) |
|
| 94 | { |
|
| @@ 139-150 (lines=12) @@ | ||
| 136 | return $response; |
|
| 137 | } |
|
| 138 | ||
| 139 | public function deleteAdressBookLocation($address_ids) |
|
| 140 | { |
|
| 141 | $result = Route4Me::makeRequst(array( |
|
| 142 | 'url' => Endpoint::ADDRESS_BOOK_V4, |
|
| 143 | 'method' => 'DELETEARRAY', |
|
| 144 | 'query' => array( |
|
| 145 | 'address_ids' => $address_ids |
|
| 146 | ) |
|
| 147 | )); |
|
| 148 | ||
| 149 | return $result; |
|
| 150 | } |
|
| 151 | ||
| 152 | public function updateAdressBookLocation($params) |
|
| 153 | { |
|