@@ -17,7 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | $vehicle = new Vehicle(); |
| 19 | 19 | |
| 20 | -$vehicleParameters = Vehicle::fromArray(array ( |
|
| 20 | +$vehicleParameters = Vehicle::fromArray(array( |
|
| 21 | 21 | 'vehicle_alias' => 'Liebherr T 282B mining truck', |
| 22 | 22 | 'vehicle_vin' => '1NP5DB9X93N507873', |
| 23 | 23 | 'vehicle_license_plate' => 'LMT8765', |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | $vehicle = new Vehicle(); |
| 19 | 19 | |
| 20 | -$vehicleParameters = Vehicle::fromArray(array ( |
|
| 20 | +$vehicleParameters = Vehicle::fromArray(array( |
|
| 21 | 21 | 'vehicle_alias' => 'GMC TopKick C5500 Light', |
| 22 | 22 | 'vehicle_vin' => 'SAJXA01A06FN08012', |
| 23 | 23 | 'vehicle_license_plate' => 'CVH4561', |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | Route4Me::setApiKey('11111111111111111111111111111111'); |
| 12 | 12 | |
| 13 | 13 | // Create a custom note type |
| 14 | -$noteParameters=array( |
|
| 14 | +$noteParameters = array( |
|
| 15 | 15 | "type" => 'To Do', |
| 16 | 16 | "values" => array( |
| 17 | 17 | 'Pass a package', |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | echo "Random user ID -> $randomUserID <br><br>"; |
| 33 | 33 | |
| 34 | 34 | // Get a specified user with details |
| 35 | -$param = array ( |
|
| 35 | +$param = array( |
|
| 36 | 36 | "member_id" => $randomUserID |
| 37 | 37 | ); |
| 38 | 38 | |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | // This example is not available for demo API key |
| 14 | 14 | Route4Me::setApiKey('11111111111111111111111111111111'); |
| 15 | 15 | |
| 16 | -$params = Member::fromArray(array ( |
|
| 16 | +$params = Member::fromArray(array( |
|
| 17 | 17 | "HIDE_ROUTED_ADDRESSES" => "FALSE", |
| 18 | 18 | "member_phone" => "571-259-5939", |
| 19 | 19 | "member_zipcode" => "22102", |
@@ -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 | // Update member |
| 26 | -$params = Member::fromArray(array ( |
|
| 26 | +$params = Member::fromArray(array( |
|
| 27 | 27 | "member_id" => $randomMemberID, |
| 28 | 28 | "member_phone" => "555-777-888" |
| 29 | 29 | )); |
@@ -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 | |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | $member = new Member(); |
| 16 | 16 | |
| 17 | 17 | // Create a config key |
| 18 | -$createParams = Member::fromArray(array ( |
|
| 18 | +$createParams = Member::fromArray(array( |
|
| 19 | 19 | "config_key" => "My height", |
| 20 | 20 | "config_value" => "182" |
| 21 | 21 | )); |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | $response = $member->newMemberConfigKey($createParams); |
| 24 | 24 | |
| 25 | 25 | // Delete a config key |
| 26 | -$removeParams = Member::fromArray(array ( |
|
| 26 | +$removeParams = Member::fromArray(array( |
|
| 27 | 27 | "config_key" => "My height" |
| 28 | 28 | )); |
| 29 | 29 | |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | // Set the api key in the Route4me class |
| 13 | 13 | Route4Me::setApiKey('11111111111111111111111111111111'); |
| 14 | 14 | |
| 15 | -$params = Member::fromArray(array ( |
|
| 15 | +$params = Member::fromArray(array( |
|
| 16 | 16 | "config_key" => "destination_icon_uri", |
| 17 | 17 | "config_value" => "value" |
| 18 | 18 | )); |