| @@ 136-148 (lines=13) @@ | ||
| 133 | return $response; |
|
| 134 | } |
|
| 135 | ||
| 136 | public function createVehicle($params) |
|
| 137 | { |
|
| 138 | $allBodyFields = Route4Me::getObjectProperties(new Vehicle(), array('vehicle_id')); |
|
| 139 | ||
| 140 | $response = Route4Me::makeRequst(array( |
|
| 141 | 'url' => Endpoint::VEHICLE_V4, |
|
| 142 | 'method' => 'POST', |
|
| 143 | 'body' => Route4Me::generateRequestParameters($allBodyFields, $params), |
|
| 144 | 'HTTPHEADER' => 'Content-Type: application/json' |
|
| 145 | )); |
|
| 146 | ||
| 147 | return $response; |
|
| 148 | } |
|
| 149 | ||
| 150 | public function removeVehicle($params) |
|
| 151 | { |
|
| @@ 126-137 (lines=12) @@ | ||
| 123 | /** |
|
| 124 | * @param AddressBookLocation $params |
|
| 125 | */ |
|
| 126 | public static function addAdressBookLocation($params) |
|
| 127 | { |
|
| 128 | $allBodyFields = Route4Me::getObjectProperties(new AddressBookLocation(), array('address_id', 'in_route_count')); |
|
| 129 | ||
| 130 | $response = Route4Me::makeRequst(array( |
|
| 131 | 'url' => Endpoint::ADDRESS_BOOK_V4, |
|
| 132 | 'method' => 'POST', |
|
| 133 | 'body' => Route4Me::generateRequestParameters($allBodyFields, $params) |
|
| 134 | )); |
|
| 135 | ||
| 136 | return $response; |
|
| 137 | } |
|
| 138 | ||
| 139 | public function deleteAdressBookLocation($address_ids) |
|
| 140 | { |
|