| @@ 110-118 (lines=9) @@ | ||
| 107 | return $vehicles['data'][$randomIndex]['vehicle_id']; |
|
| 108 | } |
|
| 109 | ||
| 110 | public function getVehicleByID($vehicleID) |
|
| 111 | { |
|
| 112 | $response = Route4Me::makeRequst(array( |
|
| 113 | 'url' => Endpoint::VEHICLE_V4 . '/' . $vehicleID, |
|
| 114 | 'method' => 'GET' |
|
| 115 | )); |
|
| 116 | ||
| 117 | return $response; |
|
| 118 | } |
|
| 119 | ||
| 120 | public function updateVehicle($params) |
|
| 121 | { |
|
| @@ 219-228 (lines=10) @@ | ||
| 216 | return $response; |
|
| 217 | } |
|
| 218 | ||
| 219 | public static function updateOrder($body) |
|
| 220 | { |
|
| 221 | $response = Route4Me::makeRequst(array( |
|
| 222 | 'url' => Endpoint::ORDER_V4, |
|
| 223 | 'method' => 'PUT', |
|
| 224 | 'body' => (array)$body |
|
| 225 | )); |
|
| 226 | ||
| 227 | return $response; |
|
| 228 | } |
|
| 229 | ||
| 230 | public static function searchOrder($params) |
|
| 231 | { |
|