@@ -13,16 +13,16 @@ |
||
13 | 13 | Route4Me::setApiKey('11111111111111111111111111111111'); |
14 | 14 | |
15 | 15 | $registrParameters=Member::fromArray(array( |
16 | - 'strEmail' => '[email protected]', |
|
17 | - 'strPassword_1' => 'ooo111111', |
|
18 | - 'strPassword_2' => 'ooo111111', |
|
19 | - 'strFirstName' => 'Driver', |
|
20 | - 'strLastName' => 'Driverson', |
|
21 | - 'format' => 'json', |
|
22 | - 'strIndustry' => 'Gifting', |
|
23 | - 'chkTerms' => 1, |
|
24 | - 'device_type' => 'web', |
|
25 | - 'plan' => 'free' |
|
16 | + 'strEmail' => '[email protected]', |
|
17 | + 'strPassword_1' => 'ooo111111', |
|
18 | + 'strPassword_2' => 'ooo111111', |
|
19 | + 'strFirstName' => 'Driver', |
|
20 | + 'strLastName' => 'Driverson', |
|
21 | + 'format' => 'json', |
|
22 | + 'strIndustry' => 'Gifting', |
|
23 | + 'chkTerms' => 1, |
|
24 | + 'device_type' => 'web', |
|
25 | + 'plan' => 'free' |
|
26 | 26 | )); |
27 | 27 | |
28 | 28 | $member = new Member(); |
@@ -18,9 +18,9 @@ discard block |
||
18 | 18 | $member = new Member(); |
19 | 19 | // Authenticate a user and get session guid |
20 | 20 | $recordParameters=Member::fromArray(array( |
21 | - 'strEmail' => '[email protected]', |
|
22 | - 'strPassword' => '!dinoZAVARI123!', |
|
23 | - 'format' => 'json', |
|
21 | + 'strEmail' => '[email protected]', |
|
22 | + 'strPassword' => '!dinoZAVARI123!', |
|
23 | + 'format' => 'json', |
|
24 | 24 | )); |
25 | 25 | |
26 | 26 | $response = $member->memberAuthentication($recordParameters); |
@@ -36,9 +36,9 @@ discard block |
||
36 | 36 | |
37 | 37 | // Validate the session |
38 | 38 | $params = Member::fromArray(array( |
39 | - 'session_guid' => $sessionGuid, |
|
40 | - 'member_id' => $memberID, |
|
41 | - 'format' => 'json', |
|
39 | + 'session_guid' => $sessionGuid, |
|
40 | + 'member_id' => $memberID, |
|
41 | + 'format' => 'json', |
|
42 | 42 | )); |
43 | 43 | |
44 | 44 | $response = $member->validateSession($params); |
@@ -16,15 +16,15 @@ |
||
16 | 16 | |
17 | 17 | // Create a config key |
18 | 18 | $createParams = Member::fromArray(array ( |
19 | - "config_key"=> "My height", |
|
20 | - "config_value"=> "182" |
|
19 | + "config_key"=> "My height", |
|
20 | + "config_value"=> "182" |
|
21 | 21 | )); |
22 | 22 | |
23 | 23 | $response = $member->newMemberConfigKey($createParams); |
24 | 24 | |
25 | 25 | // Delete a config key |
26 | 26 | $removeParams = Member::fromArray(array ( |
27 | - "config_key"=> "My height" |
|
27 | + "config_key"=> "My height" |
|
28 | 28 | )); |
29 | 29 | |
30 | 30 | $response = $member->removeMemberConfigKey($removeParams); |
@@ -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(); |
@@ -21,12 +21,12 @@ |
||
21 | 21 | |
22 | 22 | foreach ($response as $key => $value) |
23 | 23 | { |
24 | - if (is_array($value)) |
|
25 | - { |
|
26 | - Route4Me::simplePrint($value); |
|
27 | - } |
|
28 | - else |
|
29 | - { |
|
30 | - echo "$key => $value <br>"; |
|
31 | - } |
|
24 | + if (is_array($value)) |
|
25 | + { |
|
26 | + Route4Me::simplePrint($value); |
|
27 | + } |
|
28 | + else |
|
29 | + { |
|
30 | + echo "$key => $value <br>"; |
|
31 | + } |
|
32 | 32 | } |
@@ -35,8 +35,8 @@ |
||
35 | 35 | |
36 | 36 | // Update existing configuration key data |
37 | 37 | $params = Member::fromArray(array ( |
38 | - "config_key"=> $randomKey, |
|
39 | - "config_value"=> $randomValue . " Updated" |
|
38 | + "config_key"=> $randomKey, |
|
39 | + "config_value"=> $randomValue . " Updated" |
|
40 | 40 | )); |
41 | 41 | |
42 | 42 | $response = $member->updateMemberConfigKey($params); |
@@ -33,19 +33,19 @@ |
||
33 | 33 | echo "randomKey -> $randomKey <br><br>"; |
34 | 34 | |
35 | 35 | $params = Member::fromArray(array ( |
36 | - "config_key"=> $randomKey |
|
36 | + "config_key"=> $randomKey |
|
37 | 37 | )); |
38 | 38 | |
39 | 39 | $response = $member->getMemberConfigData($params); |
40 | 40 | |
41 | 41 | foreach ($response as $key => $value) |
42 | 42 | { |
43 | - if (is_array($value)) |
|
44 | - { |
|
45 | - Route4Me::simplePrint($value); |
|
46 | - } |
|
47 | - else |
|
48 | - { |
|
49 | - echo "$key => $value <br>"; |
|
50 | - } |
|
43 | + if (is_array($value)) |
|
44 | + { |
|
45 | + Route4Me::simplePrint($value); |
|
46 | + } |
|
47 | + else |
|
48 | + { |
|
49 | + echo "$key => $value <br>"; |
|
50 | + } |
|
51 | 51 | } |
@@ -13,10 +13,10 @@ discard block |
||
13 | 13 | Route4Me::setApiKey('11111111111111111111111111111111'); |
14 | 14 | |
15 | 15 | $AdressBookLocationParameters = AddressBookLocation::fromArray(array( |
16 | - "first_name" => "Test FirstName ".strval(rand(10000,99999)), |
|
17 | - "address_1" => "Test Address1 ".strval(rand(10000,99999)), |
|
18 | - "cached_lat" => 38.024654, |
|
19 | - "cached_lng" => -77.338814 |
|
16 | + "first_name" => "Test FirstName ".strval(rand(10000,99999)), |
|
17 | + "address_1" => "Test Address1 ".strval(rand(10000,99999)), |
|
18 | + "cached_lat" => 38.024654, |
|
19 | + "cached_lng" => -77.338814 |
|
20 | 20 | )); |
21 | 21 | |
22 | 22 | $abLocation = new AddressBookLocation(); |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | assert(isset($abcResult['address_id']), "Cannot create an address book location. <br><br>"); |
29 | 29 | |
30 | 30 | if (isset($abcResult["address_id"])) { |
31 | - $address_id = $abcResult["address_id"]; |
|
31 | + $address_id = $abcResult["address_id"]; |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | assert($address_id != -1, "Cannot create an address book location. <br><br>"); |
@@ -13,8 +13,8 @@ discard block |
||
13 | 13 | // Example refers to getting the address book locations |
14 | 14 | |
15 | 15 | $AdressBookLocationParameters = array( |
16 | - "limit" => 30, |
|
17 | - "offset" => 0 |
|
16 | + "limit" => 30, |
|
17 | + "offset" => 0 |
|
18 | 18 | ); |
19 | 19 | |
20 | 20 | $abContacts = new AddressBookLocation(); |
@@ -25,5 +25,5 @@ discard block |
||
25 | 25 | |
26 | 26 | foreach ($results as $result) { |
27 | 27 | Route4Me::simplePrint($result); |
28 | - echo "<br>"; |
|
28 | + echo "<br>"; |
|
29 | 29 | } |