@@ -13,8 +13,8 @@ |
||
13 | 13 | Route4Me::setApiKey('11111111111111111111111111111111'); |
14 | 14 | |
15 | 15 | $params = Member::fromArray(array ( |
16 | - "config_key" => "destination_icon_uri", |
|
17 | - "config_value" => "value" |
|
16 | + "config_key" => "destination_icon_uri", |
|
17 | + "config_value" => "value" |
|
18 | 18 | )); |
19 | 19 | |
20 | 20 | $member = new Member(); |
@@ -19,13 +19,13 @@ |
||
19 | 19 | $response = $member->getMemberConfigData($params); |
20 | 20 | |
21 | 21 | foreach ($response as $key => $value) { |
22 | - if (is_array($value)) { |
|
23 | - foreach ($value as $v1) { |
|
24 | - Route4Me::simplePrint($v1); |
|
25 | - echo "<br>"; |
|
26 | - } |
|
27 | - } else { |
|
28 | - echo "$key => $value <br>"; |
|
29 | - } |
|
30 | - echo "<br>"; |
|
22 | + if (is_array($value)) { |
|
23 | + foreach ($value as $v1) { |
|
24 | + Route4Me::simplePrint($v1); |
|
25 | + echo "<br>"; |
|
26 | + } |
|
27 | + } else { |
|
28 | + echo "$key => $value <br>"; |
|
29 | + } |
|
30 | + echo "<br>"; |
|
31 | 31 | } |
@@ -34,8 +34,8 @@ |
||
34 | 34 | |
35 | 35 | // Update existing configuration key data |
36 | 36 | $params = Member::fromArray(array ( |
37 | - "config_key" => $randomKey, |
|
38 | - "config_value" => $randomValue." Updated" |
|
37 | + "config_key" => $randomKey, |
|
38 | + "config_value" => $randomValue." Updated" |
|
39 | 39 | )); |
40 | 40 | |
41 | 41 | $response = $member->updateMemberConfigKey($params); |
@@ -32,15 +32,15 @@ |
||
32 | 32 | echo "randomKey -> $randomKey <br><br>"; |
33 | 33 | |
34 | 34 | $params = Member::fromArray(array ( |
35 | - "config_key" => $randomKey |
|
35 | + "config_key" => $randomKey |
|
36 | 36 | )); |
37 | 37 | |
38 | 38 | $response = $member->getMemberConfigData($params); |
39 | 39 | |
40 | 40 | foreach ($response as $key => $value) { |
41 | - if (is_array($value)) { |
|
42 | - Route4Me::simplePrint($value); |
|
43 | - } else { |
|
44 | - echo "$key => $value <br>"; |
|
45 | - } |
|
41 | + if (is_array($value)) { |
|
42 | + Route4Me::simplePrint($value); |
|
43 | + } else { |
|
44 | + echo "$key => $value <br>"; |
|
45 | + } |
|
46 | 46 | } |
@@ -13,8 +13,8 @@ |
||
13 | 13 | |
14 | 14 | // Get reandom address book location |
15 | 15 | $AdressBookLocationParameters = array( |
16 | - "limit" => 30, |
|
17 | - "offset" => 0 |
|
16 | + "limit" => 30, |
|
17 | + "offset" => 0 |
|
18 | 18 | ); |
19 | 19 | |
20 | 20 | $randomLocation = $abLocation->getRandomAddressBookLocation($AdressBookLocationParameters); |
@@ -14,10 +14,10 @@ discard block |
||
14 | 14 | Route4Me::setApiKey('11111111111111111111111111111111'); |
15 | 15 | |
16 | 16 | $AdressBookLocationParameters = AddressBookLocation::fromArray(array( |
17 | - "first_name" => "Test FirstName ".strval(rand(10000, 99999)), |
|
18 | - "address_1" => "Test Address1 ".strval(rand(10000, 99999)), |
|
19 | - "cached_lat" => 38.024654, |
|
20 | - "cached_lng" => -77.338814 |
|
17 | + "first_name" => "Test FirstName ".strval(rand(10000, 99999)), |
|
18 | + "address_1" => "Test Address1 ".strval(rand(10000, 99999)), |
|
19 | + "cached_lat" => 38.024654, |
|
20 | + "cached_lng" => -77.338814 |
|
21 | 21 | )); |
22 | 22 | |
23 | 23 | $abContacts = new AddressBookLocation(); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | $address_id = -1; |
28 | 28 | |
29 | 29 | if (isset($createdContact['address_id'])) { |
30 | - $address_id = $createdContact["address_id"]; |
|
30 | + $address_id = $createdContact["address_id"]; |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | assert($address_id!=-1, "Creating of Address Book Location was failed. Try again!.. <br>"); |
@@ -18,14 +18,14 @@ |
||
18 | 18 | |
19 | 19 | $territoryParams['type'] = TerritoryTypes::CIRCLE; |
20 | 20 | $territoryParams['data'] = array( |
21 | - "37.569752822786455,-77.47833251953125", |
|
22 | - "5000" |
|
21 | + "37.569752822786455,-77.47833251953125", |
|
22 | + "5000" |
|
23 | 23 | ); |
24 | 24 | |
25 | 25 | $TerritoryParameters = Territory::fromArray(array( |
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(); |
@@ -16,14 +16,14 @@ |
||
16 | 16 | |
17 | 17 | $territoryParams['type'] = TerritoryTypes::RECT; |
18 | 18 | $territoryParams['data'] = array( |
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(array( |
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(); |
@@ -18,14 +18,14 @@ discard block |
||
18 | 18 | |
19 | 19 | $territoryParams['type'] = TerritoryTypes::CIRCLE; |
20 | 20 | $territoryParams['data'] = array( |
21 | - "37.569752822786455,-77.47833251953125", |
|
22 | - "5000" |
|
21 | + "37.569752822786455,-77.47833251953125", |
|
22 | + "5000" |
|
23 | 23 | ); |
24 | 24 | |
25 | 25 | $TerritoryParameters = Territory::fromArray(array( |
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 | $result = (array)$territory->addTerritory($TerritoryParameters); |
@@ -38,18 +38,18 @@ discard block |
||
38 | 38 | |
39 | 39 | // Update territory |
40 | 40 | $territoryParameters = array ( |
41 | - "type" => TerritoryTypes::RECT, |
|
42 | - "data" => array( |
|
43 | - "29.6600127358956,-95.6593322753906", |
|
44 | - "29.8966150753098,-95.3146362304688" |
|
45 | - ) |
|
41 | + "type" => TerritoryTypes::RECT, |
|
42 | + "data" => array( |
|
43 | + "29.6600127358956,-95.6593322753906", |
|
44 | + "29.8966150753098,-95.3146362304688" |
|
45 | + ) |
|
46 | 46 | ); |
47 | 47 | |
48 | 48 | $TerritoryParameters = Territory::fromArray(array( |
49 | - "territory_id" => $territory_id, |
|
50 | - "territory_name" => "Test Territory Updated as rectangle", |
|
51 | - "territory_color" => "ff5500", |
|
52 | - "territory" => $territoryParameters |
|
49 | + "territory_id" => $territory_id, |
|
50 | + "territory_name" => "Test Territory Updated as rectangle", |
|
51 | + "territory_color" => "ff5500", |
|
52 | + "territory" => $territoryParameters |
|
53 | 53 | )); |
54 | 54 | |
55 | 55 | $result1 = $territory->updateTerritory($TerritoryParameters); |