@@ -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); |
@@ -23,7 +23,7 @@ |
||
23 | 23 | assert(!is_null($randomMemberID), "There is no member of the type SUB_ACCOUNT_DRIVER in the user's account"); |
24 | 24 | |
25 | 25 | // Delete member from the user's account |
26 | -$params = Member::fromArray(array ( |
|
26 | +$params = Member::fromArray(array( |
|
27 | 27 | "member_id" => $randomMemberID |
28 | 28 | )); |
29 | 29 |
@@ -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(); |
@@ -12,25 +12,25 @@ |
||
12 | 12 | Route4Me::setApiKey('11111111111111111111111111111111'); |
13 | 13 | |
14 | 14 | $orderParameters = Order::fromArray(array( |
15 | - "address_1" => "318 S 39th St, Louisville, KY 40212, USA", |
|
16 | - "cached_lat" => 38.259326, |
|
17 | - "cached_lng" => -85.814979, |
|
18 | - "curbside_lat" => 38.259326, |
|
19 | - "curbside_lng" => -85.814979, |
|
20 | - "address_alias" => "318 S 39th St 40212", |
|
21 | - "address_city" => "Louisville", |
|
22 | - "EXT_FIELD_first_name" => "Lui", |
|
23 | - "EXT_FIELD_last_name" => "Carol", |
|
24 | - "EXT_FIELD_email" => "[email protected]", |
|
25 | - "EXT_FIELD_phone" => "897946541", |
|
26 | - "EXT_FIELD_custom_data" => array("order_type" => "scheduled order"), |
|
27 | - "day_scheduled_for_YYMMDD" => date("Y-m-d"), |
|
28 | - "local_time_window_end" => 39000, |
|
29 | - "local_time_window_end_2" => 46200, |
|
30 | - "local_time_window_start" => 37800, |
|
31 | - "local_time_window_start_2" => 45000, |
|
32 | - "local_timezone_string" => "America/New_York", |
|
33 | - "order_icon" => "emoji/emoji-bank" |
|
15 | + "address_1" => "318 S 39th St, Louisville, KY 40212, USA", |
|
16 | + "cached_lat" => 38.259326, |
|
17 | + "cached_lng" => -85.814979, |
|
18 | + "curbside_lat" => 38.259326, |
|
19 | + "curbside_lng" => -85.814979, |
|
20 | + "address_alias" => "318 S 39th St 40212", |
|
21 | + "address_city" => "Louisville", |
|
22 | + "EXT_FIELD_first_name" => "Lui", |
|
23 | + "EXT_FIELD_last_name" => "Carol", |
|
24 | + "EXT_FIELD_email" => "[email protected]", |
|
25 | + "EXT_FIELD_phone" => "897946541", |
|
26 | + "EXT_FIELD_custom_data" => array("order_type" => "scheduled order"), |
|
27 | + "day_scheduled_for_YYMMDD" => date("Y-m-d"), |
|
28 | + "local_time_window_end" => 39000, |
|
29 | + "local_time_window_end_2" => 46200, |
|
30 | + "local_time_window_start" => 37800, |
|
31 | + "local_time_window_start_2" => 45000, |
|
32 | + "local_timezone_string" => "America/New_York", |
|
33 | + "order_icon" => "emoji/emoji-bank" |
|
34 | 34 | )); |
35 | 35 | |
36 | 36 | $order = new Order(); |