@@ -16,14 +16,14 @@ |
||
| 16 | 16 | |
| 17 | 17 | $territoryParams['type'] = TerritoryTypes::RECT; |
| 18 | 18 | $territoryParams['data'] = [ |
| 19 | - '43.51668853502909,-109.3798828125', |
|
| 20 | - '46.98025235521883,-101.865234375', |
|
| 19 | + '43.51668853502909,-109.3798828125', |
|
| 20 | + '46.98025235521883,-101.865234375', |
|
| 21 | 21 | ]; |
| 22 | 22 | |
| 23 | 23 | $TerritoryParameters = Territory::fromArray([ |
| 24 | - 'territory_name' => 'Test Rectangular Territory '.strval(rand(10000, 99999)), |
|
| 25 | - 'territory_color' => 'ff7700', |
|
| 26 | - 'territory' => $territoryParams, |
|
| 24 | + 'territory_name' => 'Test Rectangular Territory '.strval(rand(10000, 99999)), |
|
| 25 | + 'territory_color' => 'ff7700', |
|
| 26 | + 'territory' => $territoryParams, |
|
| 27 | 27 | ]); |
| 28 | 28 | |
| 29 | 29 | $territory = new Territory(); |
@@ -11,8 +11,8 @@ discard block |
||
| 11 | 11 | // Example refers to getting the address book locations |
| 12 | 12 | |
| 13 | 13 | $AddressBookLocationParameters = [ |
| 14 | - 'limit' => 30, |
|
| 15 | - 'offset' => 0, |
|
| 14 | + 'limit' => 30, |
|
| 15 | + 'offset' => 0, |
|
| 16 | 16 | ]; |
| 17 | 17 | |
| 18 | 18 | $abContacts = new AddressBookLocation(); |
@@ -22,6 +22,6 @@ discard block |
||
| 22 | 22 | $results = $abContacts->getValue($abcResults, 'results'); |
| 23 | 23 | |
| 24 | 24 | foreach ($results as $result) { |
| 25 | - Route4Me::simplePrint($result); |
|
| 26 | - echo '<br>'; |
|
| 25 | + Route4Me::simplePrint($result); |
|
| 26 | + echo '<br>'; |
|
| 27 | 27 | } |
@@ -14,15 +14,15 @@ |
||
| 14 | 14 | |
| 15 | 15 | // Create a config key |
| 16 | 16 | $createParams = Member::fromArray([ |
| 17 | - 'config_key' => 'My height', |
|
| 18 | - 'config_value' => '182', |
|
| 17 | + 'config_key' => 'My height', |
|
| 18 | + 'config_value' => '182', |
|
| 19 | 19 | ]); |
| 20 | 20 | |
| 21 | 21 | $response = $member->newMemberConfigKey($createParams); |
| 22 | 22 | |
| 23 | 23 | // Delete a config key |
| 24 | 24 | $removeParams = Member::fromArray([ |
| 25 | - 'config_key' => 'My height', |
|
| 25 | + 'config_key' => 'My height', |
|
| 26 | 26 | ]); |
| 27 | 27 | |
| 28 | 28 | $response = $member->removeMemberConfigKey($removeParams); |
@@ -32,8 +32,8 @@ |
||
| 32 | 32 | |
| 33 | 33 | // Update existing configuration key data |
| 34 | 34 | $params = Member::fromArray([ |
| 35 | - 'config_key' => $randomKey, |
|
| 36 | - 'config_value' => $randomValue.' Updated', |
|
| 35 | + 'config_key' => $randomKey, |
|
| 36 | + 'config_value' => $randomValue.' Updated', |
|
| 37 | 37 | ]); |
| 38 | 38 | |
| 39 | 39 | $response = $member->updateMemberConfigKey($params); |
@@ -30,15 +30,15 @@ |
||
| 30 | 30 | echo "randomKey -> $randomKey <br><br>"; |
| 31 | 31 | |
| 32 | 32 | $params = Member::fromArray([ |
| 33 | - 'config_key' => $randomKey, |
|
| 33 | + 'config_key' => $randomKey, |
|
| 34 | 34 | ]); |
| 35 | 35 | |
| 36 | 36 | $response = $member->getMemberConfigData($params); |
| 37 | 37 | |
| 38 | 38 | foreach ($response as $key => $value) { |
| 39 | - if (is_array($value)) { |
|
| 40 | - Route4Me::simplePrint($value); |
|
| 41 | - } else { |
|
| 42 | - echo "$key => $value <br>"; |
|
| 43 | - } |
|
| 39 | + if (is_array($value)) { |
|
| 40 | + Route4Me::simplePrint($value); |
|
| 41 | + } else { |
|
| 42 | + echo "$key => $value <br>"; |
|
| 43 | + } |
|
| 44 | 44 | } |
@@ -11,14 +11,14 @@ |
||
| 11 | 11 | Route4Me::setApiKey(Constants::API_KEY); |
| 12 | 12 | |
| 13 | 13 | $params = [ |
| 14 | - Member::fromArray([ |
|
| 15 | - 'config_key' => 'hide_sharing_in_route_parameters_dialog', |
|
| 16 | - 'config_value' => 'false', |
|
| 17 | - ]), |
|
| 18 | - Member::fromArray([ |
|
| 19 | - 'config_key' => 'disable_telematics_popup_overlay', |
|
| 20 | - 'config_value' => 'false', |
|
| 21 | - ]) |
|
| 14 | + Member::fromArray([ |
|
| 15 | + 'config_key' => 'hide_sharing_in_route_parameters_dialog', |
|
| 16 | + 'config_value' => 'false', |
|
| 17 | + ]), |
|
| 18 | + Member::fromArray([ |
|
| 19 | + 'config_key' => 'disable_telematics_popup_overlay', |
|
| 20 | + 'config_value' => 'false', |
|
| 21 | + ]) |
|
| 22 | 22 | ]; |
| 23 | 23 | |
| 24 | 24 | $member = new Member(); |
@@ -17,13 +17,13 @@ |
||
| 17 | 17 | $response = $member->getMemberConfigData($params); |
| 18 | 18 | |
| 19 | 19 | foreach ($response as $key => $value) { |
| 20 | - if (is_array($value)) { |
|
| 21 | - foreach ($value as $v1) { |
|
| 22 | - Route4Me::simplePrint($v1); |
|
| 23 | - echo '<br>'; |
|
| 24 | - } |
|
| 25 | - } else { |
|
| 26 | - echo "$key => $value <br>"; |
|
| 27 | - } |
|
| 28 | - echo '<br>'; |
|
| 20 | + if (is_array($value)) { |
|
| 21 | + foreach ($value as $v1) { |
|
| 22 | + Route4Me::simplePrint($v1); |
|
| 23 | + echo '<br>'; |
|
| 24 | + } |
|
| 25 | + } else { |
|
| 26 | + echo "$key => $value <br>"; |
|
| 27 | + } |
|
| 28 | + echo '<br>'; |
|
| 29 | 29 | } |
@@ -11,8 +11,8 @@ |
||
| 11 | 11 | Route4Me::setApiKey(Constants::API_KEY); |
| 12 | 12 | |
| 13 | 13 | $params = Member::fromArray([ |
| 14 | - 'config_key' => 'destination_icon_uri', |
|
| 15 | - 'config_value' => 'value', |
|
| 14 | + 'config_key' => 'destination_icon_uri', |
|
| 15 | + 'config_value' => 'value', |
|
| 16 | 16 | ]); |
| 17 | 17 | |
| 18 | 18 | $member = new Member(); |
@@ -16,19 +16,19 @@ |
||
| 16 | 16 | |
| 17 | 17 | // Iterate through all the existing activity types |
| 18 | 18 | foreach ($activityTypes->getConstants() as $prop => $value) { |
| 19 | - $activityParameters = ActivityParameters::fromArray([ |
|
| 20 | - 'activity_type' => $value, |
|
| 21 | - 'limit' => 2, |
|
| 22 | - 'offset' => 0, |
|
| 23 | - ]); |
|
| 19 | + $activityParameters = ActivityParameters::fromArray([ |
|
| 20 | + 'activity_type' => $value, |
|
| 21 | + 'limit' => 2, |
|
| 22 | + 'offset' => 0, |
|
| 23 | + ]); |
|
| 24 | 24 | |
| 25 | - $activities = new ActivityParameters(); |
|
| 26 | - $results = $activities->searchActivities($activityParameters); |
|
| 25 | + $activities = new ActivityParameters(); |
|
| 26 | + $results = $activities->searchActivities($activityParameters); |
|
| 27 | 27 | |
| 28 | - foreach ($results as $key => $activity) { |
|
| 29 | - Route4Me::simplePrint($activity); |
|
| 30 | - echo '<br>'; |
|
| 31 | - } |
|
| 28 | + foreach ($results as $key => $activity) { |
|
| 29 | + Route4Me::simplePrint($activity); |
|
| 30 | + echo '<br>'; |
|
| 31 | + } |
|
| 32 | 32 | |
| 33 | - echo '------------------- <br><br>'; |
|
| 33 | + echo '------------------- <br><br>'; |
|
| 34 | 34 | } |