@@ -15,14 +15,14 @@ |
||
| 15 | 15 | $vehicle = new Vehicle(); |
| 16 | 16 | |
| 17 | 17 | $vehicleParameters = array( |
| 18 | - "with_pagination" => true, |
|
| 19 | - "page" => 2, |
|
| 20 | - "perPage" => 10 |
|
| 21 | - ); |
|
| 18 | + "with_pagination" => true, |
|
| 19 | + "page" => 2, |
|
| 20 | + "perPage" => 10 |
|
| 21 | + ); |
|
| 22 | 22 | |
| 23 | 23 | $response = $vehicle->getVehicles($vehicleParameters); |
| 24 | 24 | |
| 25 | 25 | foreach ($response['data'] as $key => $vehicle) { |
| 26 | - Route4Me::simplePrint($vehicle); |
|
| 27 | - echo "<br>"; |
|
| 26 | + Route4Me::simplePrint($vehicle); |
|
| 27 | + echo "<br>"; |
|
| 28 | 28 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | // Delete member from the user's account |
| 26 | 26 | $params = Member::fromArray(array ( |
| 27 | - "member_id" => $randomMemberID |
|
| 27 | + "member_id" => $randomMemberID |
|
| 28 | 28 | )); |
| 29 | 29 | |
| 30 | 30 | $response = $member->deleteMember($params); |
@@ -17,9 +17,9 @@ |
||
| 17 | 17 | // Example refers to the process of searching for the routed locations |
| 18 | 18 | |
| 19 | 19 | $params = array( |
| 20 | - 'offset' => 0, |
|
| 21 | - 'limit' => 5, |
|
| 22 | - 'display' => 'routed' |
|
| 20 | + 'offset' => 0, |
|
| 21 | + 'limit' => 5, |
|
| 22 | + 'display' => 'routed' |
|
| 23 | 23 | ); |
| 24 | 24 | |
| 25 | 25 | $abcResult = $ablocation->searchAddressBookLocations($params); |
@@ -14,10 +14,10 @@ |
||
| 14 | 14 | $ablocation = new AddressBookLocation(); |
| 15 | 15 | |
| 16 | 16 | $params = array( |
| 17 | - "query" => "David", |
|
| 18 | - "fields" => "first_name,last_name,address_email, address_alias, address_1", |
|
| 19 | - "offset" => 0, |
|
| 20 | - "limit" => 20, |
|
| 17 | + "query" => "David", |
|
| 18 | + "fields" => "first_name,last_name,address_email, address_alias, address_1", |
|
| 19 | + "offset" => 0, |
|
| 20 | + "limit" => 20, |
|
| 21 | 21 | ); |
| 22 | 22 | |
| 23 | 23 | $abcResult = $ablocation->searchAddressBookLocations($params); |
@@ -27,13 +27,13 @@ |
||
| 27 | 27 | |
| 28 | 28 | // Add a file note |
| 29 | 29 | $noteParameters = array( |
| 30 | - "strFilename" => "notes.csv", |
|
| 31 | - "route_id" => $route_id, |
|
| 32 | - "address_id" => $route_destination_id, |
|
| 33 | - "dev_lat" => 33.132675170898, |
|
| 34 | - "dev_lng" => -83.244743347168, |
|
| 35 | - "device_type" => "web", |
|
| 36 | - "strUpdateType" => "ANY_FILE" |
|
| 30 | + "strFilename" => "notes.csv", |
|
| 31 | + "route_id" => $route_id, |
|
| 32 | + "address_id" => $route_destination_id, |
|
| 33 | + "dev_lat" => 33.132675170898, |
|
| 34 | + "dev_lng" => -83.244743347168, |
|
| 35 | + "device_type" => "web", |
|
| 36 | + "strUpdateType" => "ANY_FILE" |
|
| 37 | 37 | ); |
| 38 | 38 | |
| 39 | 39 | $address = new Address(); |
@@ -13,8 +13,8 @@ discard block |
||
| 13 | 13 | Route4Me::setApiKey('11111111111111111111111111111111'); |
| 14 | 14 | |
| 15 | 15 | $gcParameters = (array)Geocoding::fromArray(array( |
| 16 | - "offset" => 0, |
|
| 17 | - "limit" => 5 |
|
| 16 | + "offset" => 0, |
|
| 17 | + "limit" => 5 |
|
| 18 | 18 | )); |
| 19 | 19 | |
| 20 | 20 | $geocoding = new Geocoding(); |
@@ -22,6 +22,6 @@ discard block |
||
| 22 | 22 | $response = $geocoding->getStreetData($gcParameters); |
| 23 | 23 | |
| 24 | 24 | foreach ($response as $gcode) { |
| 25 | - Route4Me::simplePrint($gcode); |
|
| 26 | - echo "<br>"; |
|
| 25 | + Route4Me::simplePrint($gcode); |
|
| 26 | + echo "<br>"; |
|
| 27 | 27 | } |
@@ -16,13 +16,13 @@ |
||
| 16 | 16 | $order = new Order(); |
| 17 | 17 | |
| 18 | 18 | $orderParameters = Order::fromArray(array( |
| 19 | - "offset" => 0, |
|
| 20 | - 'limit' => 5, |
|
| 19 | + "offset" => 0, |
|
| 20 | + 'limit' => 5, |
|
| 21 | 21 | )); |
| 22 | 22 | |
| 23 | 23 | $response = $order->getOrders($orderParameters); |
| 24 | 24 | |
| 25 | 25 | foreach ($response['results'] as $key => $order) { |
| 26 | - Route4Me::simplePrint($order); |
|
| 27 | - echo "<br>"; |
|
| 26 | + Route4Me::simplePrint($order); |
|
| 27 | + echo "<br>"; |
|
| 28 | 28 | } |
@@ -14,9 +14,9 @@ discard block |
||
| 14 | 14 | Route4Me::setApiKey('11111111111111111111111111111111'); |
| 15 | 15 | |
| 16 | 16 | $orderParameters = Order::fromArray(array( |
| 17 | - "fields" => "order_id,member_id", |
|
| 18 | - "offset" => 0, |
|
| 19 | - "limit" => 5 |
|
| 17 | + "fields" => "order_id,member_id", |
|
| 18 | + "offset" => 0, |
|
| 19 | + "limit" => 5 |
|
| 20 | 20 | )); |
| 21 | 21 | |
| 22 | 22 | $order = new Order(); |
@@ -24,5 +24,5 @@ discard block |
||
| 24 | 24 | $response = $order->getOrder($orderParameters); |
| 25 | 25 | |
| 26 | 26 | foreach ($response as $key => $order) { |
| 27 | - Route4Me::simplePrint($order); |
|
| 27 | + Route4Me::simplePrint($order); |
|
| 28 | 28 | } |
@@ -30,9 +30,9 @@ |
||
| 30 | 30 | $body = json_decode($jfile); |
| 31 | 31 | |
| 32 | 32 | $orderParameters = Order::fromArray(array( |
| 33 | - "route_id" => $routeID, |
|
| 34 | - "redirect" => 0, |
|
| 35 | - "addresses" => $body->addresses |
|
| 33 | + "route_id" => $routeID, |
|
| 34 | + "redirect" => 0, |
|
| 35 | + "addresses" => $body->addresses |
|
| 36 | 36 | )); |
| 37 | 37 | |
| 38 | 38 | $order = new Order(); |