@@ -18,14 +18,14 @@ |
||
18 | 18 | |
19 | 19 | $territoryParams['type'] = TerritoryTypes::CIRCLE; |
20 | 20 | $territoryParams['data'] = [ |
21 | - '37.569752822786455,-77.47833251953125', |
|
22 | - '5000', |
|
21 | + '37.569752822786455,-77.47833251953125', |
|
22 | + '5000', |
|
23 | 23 | ]; |
24 | 24 | |
25 | 25 | $TerritoryParameters = Territory::fromArray([ |
26 | - 'territory_name' => 'Test Territory '.strval(rand(10000, 99999)), |
|
27 | - 'territory_color' => 'ff7700', |
|
28 | - 'territory' => $territoryParams, |
|
26 | + 'territory_name' => 'Test Territory '.strval(rand(10000, 99999)), |
|
27 | + 'territory_color' => 'ff7700', |
|
28 | + 'territory' => $territoryParams, |
|
29 | 29 | ]); |
30 | 30 | |
31 | 31 | $territory = new Territory(); |
@@ -9,10 +9,10 @@ |
||
9 | 9 | Route4Me::setApiKey(Constants::API_KEY); |
10 | 10 | |
11 | 11 | $AddressBookLocationParameters = AddressBookLocation::fromArray([ |
12 | - 'first_name' => 'Test FirstName '.strval(rand(10000, 99999)), |
|
13 | - 'address_1' => 'Test Address1 '.strval(rand(10000, 99999)), |
|
14 | - 'cached_lat' => 38.024654, |
|
15 | - 'cached_lng' => -77.338814, |
|
12 | + 'first_name' => 'Test FirstName '.strval(rand(10000, 99999)), |
|
13 | + 'address_1' => 'Test Address1 '.strval(rand(10000, 99999)), |
|
14 | + 'cached_lat' => 38.024654, |
|
15 | + 'cached_lng' => -77.338814, |
|
16 | 16 | ]); |
17 | 17 | |
18 | 18 | $abContacts = new AddressBookLocation(); |
@@ -12,10 +12,10 @@ discard block |
||
12 | 12 | Route4Me::setApiKey(Constants::API_KEY); |
13 | 13 | |
14 | 14 | $AddressBookLocationParameters = AddressBookLocation::fromArray([ |
15 | - 'first_name' => 'Test FirstName '.strval(rand(10000, 99999)), |
|
16 | - 'address_1' => 'Test Address1 '.strval(rand(10000, 99999)), |
|
17 | - 'cached_lat' => 38.024654, |
|
18 | - 'cached_lng' => -77.338814, |
|
15 | + 'first_name' => 'Test FirstName '.strval(rand(10000, 99999)), |
|
16 | + 'address_1' => 'Test Address1 '.strval(rand(10000, 99999)), |
|
17 | + 'cached_lat' => 38.024654, |
|
18 | + 'cached_lng' => -77.338814, |
|
19 | 19 | ]); |
20 | 20 | |
21 | 21 | $abContacts = new AddressBookLocation(); |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | $address_id = -1; |
26 | 26 | |
27 | 27 | if (isset($createdContact['address_id'])) { |
28 | - $address_id = $createdContact['address_id']; |
|
28 | + $address_id = $createdContact['address_id']; |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | assert($address_id != -1, 'Creating of Address Book Location was failed. Try again!.. <br>'); |
@@ -28,7 +28,7 @@ |
||
28 | 28 | $address_id = $createdContact['address_id']; |
29 | 29 | } |
30 | 30 | |
31 | -assert($address_id != -1, 'Creating of Address Book Location was failed. Try again!.. <br>'); |
|
31 | +assert($address_id!=-1, 'Creating of Address Book Location was failed. Try again!.. <br>'); |
|
32 | 32 | |
33 | 33 | echo 'Address Book Location with address_id = '.strval($address_id).' was successfully added<br>'; |
34 | 34 |
@@ -12,10 +12,10 @@ discard block |
||
12 | 12 | Route4Me::setApiKey(Constants::API_KEY); |
13 | 13 | |
14 | 14 | $AddressBookLocationParameters = AddressBookLocation::fromArray([ |
15 | - 'first_name' => 'Test FirstName '.strval(rand(10000, 99999)), |
|
16 | - 'address_1' => 'Test Address1 '.strval(rand(10000, 99999)), |
|
17 | - 'cached_lat' => 38.024654, |
|
18 | - 'cached_lng' => -77.338814, |
|
15 | + 'first_name' => 'Test FirstName '.strval(rand(10000, 99999)), |
|
16 | + 'address_1' => 'Test Address1 '.strval(rand(10000, 99999)), |
|
17 | + 'cached_lat' => 38.024654, |
|
18 | + 'cached_lng' => -77.338814, |
|
19 | 19 | ]); |
20 | 20 | |
21 | 21 | $abLocation = new AddressBookLocation(); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | assert(isset($abcResult['address_id']), 'Cannot create an address book location. <br><br>'); |
28 | 28 | |
29 | 29 | if (isset($abcResult['address_id'])) { |
30 | - $address_id = $abcResult['address_id']; |
|
30 | + $address_id = $abcResult['address_id']; |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | assert($address_id != -1, 'Cannot create an address book location. <br><br>'); |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | $address_id = $abcResult['address_id']; |
31 | 31 | } |
32 | 32 | |
33 | -assert($address_id != -1, 'Cannot create an address book location. <br><br>'); |
|
33 | +assert($address_id!=-1, 'Cannot create an address book location. <br><br>'); |
|
34 | 34 | |
35 | 35 | echo 'Address Book Location with <b>address_id = '.strval($address_id).'</b> and <b>first_name = '.$abcResult['first_name'].'</b> was successfully added<br>'; |
36 | 36 | |
@@ -40,6 +40,6 @@ discard block |
||
40 | 40 | |
41 | 41 | assert(isset($abcResult['first_name']), 'Cannot update the address book location. <br><br>'); |
42 | 42 | |
43 | -assert('Test First Name Updated' == $abcResult['first_name'], 'Cannot update the address book location. <br><br>'); |
|
43 | +assert('Test First Name Updated'==$abcResult['first_name'], 'Cannot update the address book location. <br><br>'); |
|
44 | 44 | |
45 | 45 | echo 'The field <b>first_name</b> in the address book location <b>'.$address_id.'</b> was update to <b>Test First Name Updated</b> successfuly <br>'; |
@@ -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 | } |
@@ -16,9 +16,9 @@ |
||
16 | 16 | // Example refers to the process of searching for the routed locations |
17 | 17 | |
18 | 18 | $params = [ |
19 | - 'offset' => 0, |
|
20 | - 'limit' => 5, |
|
21 | - 'display' => 'routed', |
|
19 | + 'offset' => 0, |
|
20 | + 'limit' => 5, |
|
21 | + 'display' => 'routed', |
|
22 | 22 | ]; |
23 | 23 | |
24 | 24 | $abcResult = $abLocation->searchAddressBookLocations($params); |
@@ -16,10 +16,10 @@ |
||
16 | 16 | // Example refers to the process of searching for text and specifing returned fields. |
17 | 17 | |
18 | 18 | $params = [ |
19 | - 'query' => 'David', |
|
20 | - 'fields' => 'first_name,address_email', |
|
21 | - 'offset' => 0, |
|
22 | - 'limit' => 5, |
|
19 | + 'query' => 'David', |
|
20 | + 'fields' => 'first_name,address_email', |
|
21 | + 'offset' => 0, |
|
22 | + 'limit' => 5, |
|
23 | 23 | ]; |
24 | 24 | |
25 | 25 | $abcResult = $abLocation->searchAddressBookLocations($params); |
@@ -11,8 +11,8 @@ discard block |
||
11 | 11 | // Get two random locations IDs |
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(); |
@@ -36,6 +36,6 @@ discard block |
||
36 | 36 | $results = $abLocation->getValue($abcResult, 'results'); |
37 | 37 | |
38 | 38 | foreach ($results as $result) { |
39 | - Route4Me::simplePrint($result); |
|
40 | - echo '<br>'; |
|
39 | + Route4Me::simplePrint($result); |
|
40 | + echo '<br>'; |
|
41 | 41 | } |
@@ -13,10 +13,10 @@ |
||
13 | 13 | $abLocation = new AddressBookLocation(); |
14 | 14 | |
15 | 15 | $params = [ |
16 | - 'query' => 'Test', |
|
17 | - 'fields' => 'address_1,address_group,first_name,last_name', |
|
18 | - 'offset' => 0, |
|
19 | - 'limit' => 20, |
|
16 | + 'query' => 'Test', |
|
17 | + 'fields' => 'address_1,address_group,first_name,last_name', |
|
18 | + 'offset' => 0, |
|
19 | + 'limit' => 20, |
|
20 | 20 | ]; |
21 | 21 | |
22 | 22 | $abcResult = $abLocation->searchAddressBookLocations($params); |