@@ -18,37 +18,37 @@ |
||
18 | 18 | Route4Me::setApiKey(Constants::API_KEY); |
19 | 19 | |
20 | 20 | try { |
21 | - // get OWNER_MEMBER_ID |
|
22 | - $owner_member_id = null; |
|
23 | - $member = new Member(); |
|
24 | - $res_members = $member->getUsers(); |
|
25 | - |
|
26 | - if (is_array($res_members) && isset($res_members['results'])) { |
|
27 | - foreach ($res_members['results'] as $key => $value) { |
|
28 | - if ($value['OWNER_MEMBER_ID'] == 0) { |
|
29 | - $owner_member_id = $value['member_id']; |
|
30 | - break; |
|
31 | - } |
|
32 | - } |
|
33 | - } |
|
34 | - |
|
35 | - if (!$owner_member_id) { |
|
36 | - throw new Exception("Cannot find OWNER_MEMBER_ID."); |
|
37 | - } |
|
38 | - |
|
39 | - // new sub-user |
|
40 | - $params = [ |
|
41 | - 'new_password' => '12345#Tusha', |
|
42 | - 'member_first_name' => 'Tusha I', |
|
43 | - 'member_last_name' => 'Pupkindzes', |
|
44 | - 'member_email' => '[email protected]', |
|
45 | - 'member_type' => 'SUB_ACCOUNT_DRIVER', |
|
46 | - 'OWNER_MEMBER_ID' => $owner_member_id |
|
47 | - ]; |
|
48 | - |
|
49 | - $tm = new TeamManagement(); |
|
50 | - $res = $tm->create($params); |
|
51 | - print_r($res); |
|
21 | + // get OWNER_MEMBER_ID |
|
22 | + $owner_member_id = null; |
|
23 | + $member = new Member(); |
|
24 | + $res_members = $member->getUsers(); |
|
25 | + |
|
26 | + if (is_array($res_members) && isset($res_members['results'])) { |
|
27 | + foreach ($res_members['results'] as $key => $value) { |
|
28 | + if ($value['OWNER_MEMBER_ID'] == 0) { |
|
29 | + $owner_member_id = $value['member_id']; |
|
30 | + break; |
|
31 | + } |
|
32 | + } |
|
33 | + } |
|
34 | + |
|
35 | + if (!$owner_member_id) { |
|
36 | + throw new Exception("Cannot find OWNER_MEMBER_ID."); |
|
37 | + } |
|
38 | + |
|
39 | + // new sub-user |
|
40 | + $params = [ |
|
41 | + 'new_password' => '12345#Tusha', |
|
42 | + 'member_first_name' => 'Tusha I', |
|
43 | + 'member_last_name' => 'Pupkindzes', |
|
44 | + 'member_email' => '[email protected]', |
|
45 | + 'member_type' => 'SUB_ACCOUNT_DRIVER', |
|
46 | + 'OWNER_MEMBER_ID' => $owner_member_id |
|
47 | + ]; |
|
48 | + |
|
49 | + $tm = new TeamManagement(); |
|
50 | + $res = $tm->create($params); |
|
51 | + print_r($res); |
|
52 | 52 | } catch (Exception | ApiError $e) { |
53 | - echo $e->getMessage() . PHP_EOL; |
|
53 | + echo $e->getMessage() . PHP_EOL; |
|
54 | 54 | } |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | |
26 | 26 | if (is_array($res_members) && isset($res_members['results'])) { |
27 | 27 | foreach ($res_members['results'] as $key => $value) { |
28 | - if ($value['OWNER_MEMBER_ID'] == 0) { |
|
28 | + if ($value['OWNER_MEMBER_ID']==0) { |
|
29 | 29 | $owner_member_id = $value['member_id']; |
30 | 30 | break; |
31 | 31 | } |
@@ -50,5 +50,5 @@ discard block |
||
50 | 50 | $res = $tm->create($params); |
51 | 51 | print_r($res); |
52 | 52 | } catch (Exception | ApiError $e) { |
53 | - echo $e->getMessage() . PHP_EOL; |
|
53 | + echo $e->getMessage().PHP_EOL; |
|
54 | 54 | } |
@@ -18,9 +18,9 @@ |
||
18 | 18 | $userId = 2565363; |
19 | 19 | |
20 | 20 | try { |
21 | - $tm = new TeamManagement(); |
|
22 | - $res = $tm->getUser($userId); |
|
23 | - print_r($res); |
|
21 | + $tm = new TeamManagement(); |
|
22 | + $res = $tm->getUser($userId); |
|
23 | + print_r($res); |
|
24 | 24 | } catch (ApiError $e) { |
25 | - echo 'Cannot get user with ID: ' . $userId . PHP_EOL; |
|
25 | + echo 'Cannot get user with ID: ' . $userId . PHP_EOL; |
|
26 | 26 | } |
@@ -22,5 +22,5 @@ |
||
22 | 22 | $res = $tm->getUser($userId); |
23 | 23 | print_r($res); |
24 | 24 | } catch (ApiError $e) { |
25 | - echo 'Cannot get user with ID: ' . $userId . PHP_EOL; |
|
25 | + echo 'Cannot get user with ID: '.$userId.PHP_EOL; |
|
26 | 26 | } |
@@ -16,9 +16,9 @@ |
||
16 | 16 | Route4Me::setApiKey(Constants::API_KEY); |
17 | 17 | |
18 | 18 | try { |
19 | - $tm = new TeamManagement(); |
|
20 | - $res = $tm->getUsers(); |
|
21 | - print_r($res); |
|
19 | + $tm = new TeamManagement(); |
|
20 | + $res = $tm->getUsers(); |
|
21 | + print_r($res); |
|
22 | 22 | } catch (ApiError $e) { |
23 | - echo $e->getMessage() . PHP_EOL; |
|
23 | + echo $e->getMessage() . PHP_EOL; |
|
24 | 24 | } |
@@ -20,5 +20,5 @@ |
||
20 | 20 | $res = $tm->getUsers(); |
21 | 21 | print_r($res); |
22 | 22 | } catch (ApiError $e) { |
23 | - echo $e->getMessage() . PHP_EOL; |
|
23 | + echo $e->getMessage().PHP_EOL; |
|
24 | 24 | } |
@@ -18,14 +18,14 @@ |
||
18 | 18 | |
19 | 19 | $userId = 2565363; |
20 | 20 | $params = [ |
21 | - 'HIDE_ROUTED_ADDRESSES' => true, |
|
22 | - 'member_type' => 'SUB_ACCOUNT_DISPATCHER' |
|
21 | + 'HIDE_ROUTED_ADDRESSES' => true, |
|
22 | + 'member_type' => 'SUB_ACCOUNT_DISPATCHER' |
|
23 | 23 | ]; |
24 | 24 | |
25 | 25 | try { |
26 | - $tm = new TeamManagement(); |
|
27 | - $res = $tm->update($userId, $params); |
|
28 | - print_r($res); |
|
26 | + $tm = new TeamManagement(); |
|
27 | + $res = $tm->update($userId, $params); |
|
28 | + print_r($res); |
|
29 | 29 | } catch (ApiError $e) { |
30 | - echo $e->getMessage() . PHP_EOL; |
|
30 | + echo $e->getMessage() . PHP_EOL; |
|
31 | 31 | } |
@@ -27,5 +27,5 @@ |
||
27 | 27 | $res = $tm->update($userId, $params); |
28 | 28 | print_r($res); |
29 | 29 | } catch (ApiError $e) { |
30 | - echo $e->getMessage() . PHP_EOL; |
|
30 | + echo $e->getMessage().PHP_EOL; |
|
31 | 31 | } |
@@ -19,51 +19,51 @@ |
||
19 | 19 | Route4Me::setApiKey(Constants::API_KEY); |
20 | 20 | |
21 | 21 | try { |
22 | - // get OWNER_MEMBER_ID |
|
23 | - $owner_member_id = null; |
|
24 | - $member = new Member(); |
|
25 | - $res_members = $member->getUsers(); |
|
22 | + // get OWNER_MEMBER_ID |
|
23 | + $owner_member_id = null; |
|
24 | + $member = new Member(); |
|
25 | + $res_members = $member->getUsers(); |
|
26 | 26 | |
27 | - if (is_array($res_members) && isset($res_members['results'])) { |
|
28 | - foreach ($res_members['results'] as $key => $value) { |
|
29 | - if ($value['OWNER_MEMBER_ID'] == 0) { |
|
30 | - $owner_member_id = $value['member_id']; |
|
31 | - break; |
|
32 | - } |
|
33 | - } |
|
34 | - } |
|
27 | + if (is_array($res_members) && isset($res_members['results'])) { |
|
28 | + foreach ($res_members['results'] as $key => $value) { |
|
29 | + if ($value['OWNER_MEMBER_ID'] == 0) { |
|
30 | + $owner_member_id = $value['member_id']; |
|
31 | + break; |
|
32 | + } |
|
33 | + } |
|
34 | + } |
|
35 | 35 | |
36 | - if (!$owner_member_id) { |
|
37 | - throw new Exception("Cannot find OWNER_MEMBER_ID."); |
|
38 | - } |
|
36 | + if (!$owner_member_id) { |
|
37 | + throw new Exception("Cannot find OWNER_MEMBER_ID."); |
|
38 | + } |
|
39 | 39 | |
40 | - // insert new sub-users |
|
41 | - $params = [ |
|
42 | - [ |
|
43 | - 'new_password' => '12345&Qwerty', |
|
44 | - 'member_first_name' => 'Tusha I', |
|
45 | - 'member_last_name' => 'Pupkindzes', |
|
46 | - 'member_email' => '[email protected]', |
|
47 | - 'member_type' => 'SUB_ACCOUNT_DRIVER', |
|
48 | - 'OWNER_MEMBER_ID' => $owner_member_id |
|
49 | - ], [ |
|
50 | - 'new_password' => '12345&Qwerty', |
|
51 | - 'member_first_name' => 'Tusha II', |
|
52 | - 'member_last_name' => 'Pupkindzes', |
|
53 | - 'member_email' => '[email protected]', |
|
54 | - 'member_type' => 'SUB_ACCOUNT_DRIVER', |
|
55 | - 'OWNER_MEMBER_ID' => $owner_member_id |
|
56 | - ] |
|
57 | - ]; |
|
40 | + // insert new sub-users |
|
41 | + $params = [ |
|
42 | + [ |
|
43 | + 'new_password' => '12345&Qwerty', |
|
44 | + 'member_first_name' => 'Tusha I', |
|
45 | + 'member_last_name' => 'Pupkindzes', |
|
46 | + 'member_email' => '[email protected]', |
|
47 | + 'member_type' => 'SUB_ACCOUNT_DRIVER', |
|
48 | + 'OWNER_MEMBER_ID' => $owner_member_id |
|
49 | + ], [ |
|
50 | + 'new_password' => '12345&Qwerty', |
|
51 | + 'member_first_name' => 'Tusha II', |
|
52 | + 'member_last_name' => 'Pupkindzes', |
|
53 | + 'member_email' => '[email protected]', |
|
54 | + 'member_type' => 'SUB_ACCOUNT_DRIVER', |
|
55 | + 'OWNER_MEMBER_ID' => $owner_member_id |
|
56 | + ] |
|
57 | + ]; |
|
58 | 58 | |
59 | - $options = [ |
|
60 | - 'conflicts' => 'overwrite' |
|
61 | - ]; |
|
59 | + $options = [ |
|
60 | + 'conflicts' => 'overwrite' |
|
61 | + ]; |
|
62 | 62 | |
63 | - $tm = new TeamManagement(); |
|
64 | - $res = $tm->bulkInsert($params, $options); |
|
65 | - //print_r($res); |
|
66 | - echo "Insert two sub-users." . PHP_EOL; |
|
63 | + $tm = new TeamManagement(); |
|
64 | + $res = $tm->bulkInsert($params, $options); |
|
65 | + //print_r($res); |
|
66 | + echo "Insert two sub-users." . PHP_EOL; |
|
67 | 67 | } catch (Exception | ApiError $e) { |
68 | - echo $e->getMessage() . PHP_EOL; |
|
68 | + echo $e->getMessage() . PHP_EOL; |
|
69 | 69 | } |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | |
27 | 27 | if (is_array($res_members) && isset($res_members['results'])) { |
28 | 28 | foreach ($res_members['results'] as $key => $value) { |
29 | - if ($value['OWNER_MEMBER_ID'] == 0) { |
|
29 | + if ($value['OWNER_MEMBER_ID']==0) { |
|
30 | 30 | $owner_member_id = $value['member_id']; |
31 | 31 | break; |
32 | 32 | } |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | $tm = new TeamManagement(); |
64 | 64 | $res = $tm->bulkInsert($params, $options); |
65 | 65 | //print_r($res); |
66 | - echo "Insert two sub-users." . PHP_EOL; |
|
66 | + echo "Insert two sub-users.".PHP_EOL; |
|
67 | 67 | } catch (Exception | ApiError $e) { |
68 | - echo $e->getMessage() . PHP_EOL; |
|
68 | + echo $e->getMessage().PHP_EOL; |
|
69 | 69 | } |
@@ -18,9 +18,9 @@ |
||
18 | 18 | $userId = 2567512; |
19 | 19 | |
20 | 20 | try { |
21 | - $tm = new TeamManagement(); |
|
22 | - $res = $tm->delete($userId); |
|
23 | - print_r($res); |
|
21 | + $tm = new TeamManagement(); |
|
22 | + $res = $tm->delete($userId); |
|
23 | + print_r($res); |
|
24 | 24 | } catch (ApiError $e) { |
25 | - echo 'Cannot delete user with ID: ' . $userId . PHP_EOL; |
|
25 | + echo 'Cannot delete user with ID: ' . $userId . PHP_EOL; |
|
26 | 26 | } |
@@ -22,5 +22,5 @@ |
||
22 | 22 | $res = $tm->delete($userId); |
23 | 23 | print_r($res); |
24 | 24 | } catch (ApiError $e) { |
25 | - echo 'Cannot delete user with ID: ' . $userId . PHP_EOL; |
|
25 | + echo 'Cannot delete user with ID: '.$userId.PHP_EOL; |
|
26 | 26 | } |
@@ -17,31 +17,31 @@ |
||
17 | 17 | Route4Me::setApiKey(Constants::API_KEY); |
18 | 18 | |
19 | 19 | try { |
20 | - $ab = new AddressBook(); |
|
21 | - |
|
22 | - ///////////////////////////////////////////// |
|
23 | - // update adresses in circle aria |
|
24 | - $filter = [ |
|
25 | - 'query' => "Tusha", |
|
26 | - 'bounding_box' => null, |
|
27 | - 'selected_areas' => [[ |
|
28 | - 'type' => 'circle', |
|
29 | - 'value' => [ |
|
30 | - 'center' => [ |
|
31 | - 'lat' => 38.024654, |
|
32 | - 'lng' => 77.338814 |
|
33 | - ], |
|
34 | - 'distance' => 10000 |
|
35 | - ] |
|
36 | - ]] |
|
37 | - ]; |
|
38 | - |
|
39 | - $params = [ |
|
40 | - 'last_name' => 'Grigoriani VII' |
|
41 | - ]; |
|
42 | - $res = $ab->updateAddressesByAreas($filter, $params); |
|
43 | - print_r($res); |
|
20 | + $ab = new AddressBook(); |
|
21 | + |
|
22 | + ///////////////////////////////////////////// |
|
23 | + // update adresses in circle aria |
|
24 | + $filter = [ |
|
25 | + 'query' => "Tusha", |
|
26 | + 'bounding_box' => null, |
|
27 | + 'selected_areas' => [[ |
|
28 | + 'type' => 'circle', |
|
29 | + 'value' => [ |
|
30 | + 'center' => [ |
|
31 | + 'lat' => 38.024654, |
|
32 | + 'lng' => 77.338814 |
|
33 | + ], |
|
34 | + 'distance' => 10000 |
|
35 | + ] |
|
36 | + ]] |
|
37 | + ]; |
|
38 | + |
|
39 | + $params = [ |
|
40 | + 'last_name' => 'Grigoriani VII' |
|
41 | + ]; |
|
42 | + $res = $ab->updateAddressesByAreas($filter, $params); |
|
43 | + print_r($res); |
|
44 | 44 | } catch (ApiError $e) { |
45 | - echo $e->getCode() . PHP_EOL; |
|
46 | - echo $e->getMessage() . PHP_EOL; |
|
45 | + echo $e->getCode() . PHP_EOL; |
|
46 | + echo $e->getMessage() . PHP_EOL; |
|
47 | 47 | } |
@@ -42,6 +42,6 @@ |
||
42 | 42 | $res = $ab->updateAddressesByAreas($filter, $params); |
43 | 43 | print_r($res); |
44 | 44 | } catch (ApiError $e) { |
45 | - echo $e->getCode() . PHP_EOL; |
|
46 | - echo $e->getMessage() . PHP_EOL; |
|
45 | + echo $e->getCode().PHP_EOL; |
|
46 | + echo $e->getMessage().PHP_EOL; |
|
47 | 47 | } |
@@ -18,39 +18,39 @@ |
||
18 | 18 | Route4Me::setApiKey(Constants::API_KEY); |
19 | 19 | |
20 | 20 | try { |
21 | - $ab = new AddressBook(); |
|
22 | - |
|
23 | - ///////////////////////////////////////////// |
|
24 | - // add 2 adresses from array |
|
25 | - $arr = [[ |
|
26 | - 'address_1' => '17205 RICHMOND TNPK, MILFORD, VA, 22514', |
|
27 | - 'cached_lat' => 38.024654, |
|
28 | - 'cached_lng' => 77.338814, |
|
29 | - 'address_stop_type' => 'DELIVERY', |
|
30 | - 'address_city' => 'Tbilisi Vah', |
|
31 | - 'first_name' => 'Tusha', |
|
32 | - 'last_name' => 'Grigoriani I' |
|
33 | - ], [ |
|
34 | - 'address_1' => '17205 RICHMOND TNPK, MILFORD, VA, 22514', |
|
35 | - 'cached_lat' => 38.024654, |
|
36 | - 'cached_lng' => 77.338814, |
|
37 | - 'address_stop_type' => 'DELIVERY', |
|
38 | - 'address_city' => 'Tbilisi Vah', |
|
39 | - 'first_name' => 'Tusha', |
|
40 | - 'last_name' => 'Grigoriani II' |
|
41 | - ]]; |
|
42 | - $res = $ab->addMultipleAddresses($arr); |
|
43 | - print_r($res); |
|
44 | - |
|
45 | - ///////////////////////////////////////////// |
|
46 | - // add 2 adresses from Address |
|
47 | - $arr = [ |
|
48 | - new Address('17205 Tbilisi Vah, GEORGIAN, GE, 22514', 38.024654, 77.338814, 'DELIVERY'), |
|
49 | - new Address('17206 Tbilisi Vah, GEORGIAN, GE, 22515', 38.024654, 77.338814, 'VISIT') |
|
50 | - ]; |
|
51 | - $res = $ab->addMultipleAddresses($arr); |
|
52 | - print_r($res); |
|
21 | + $ab = new AddressBook(); |
|
22 | + |
|
23 | + ///////////////////////////////////////////// |
|
24 | + // add 2 adresses from array |
|
25 | + $arr = [[ |
|
26 | + 'address_1' => '17205 RICHMOND TNPK, MILFORD, VA, 22514', |
|
27 | + 'cached_lat' => 38.024654, |
|
28 | + 'cached_lng' => 77.338814, |
|
29 | + 'address_stop_type' => 'DELIVERY', |
|
30 | + 'address_city' => 'Tbilisi Vah', |
|
31 | + 'first_name' => 'Tusha', |
|
32 | + 'last_name' => 'Grigoriani I' |
|
33 | + ], [ |
|
34 | + 'address_1' => '17205 RICHMOND TNPK, MILFORD, VA, 22514', |
|
35 | + 'cached_lat' => 38.024654, |
|
36 | + 'cached_lng' => 77.338814, |
|
37 | + 'address_stop_type' => 'DELIVERY', |
|
38 | + 'address_city' => 'Tbilisi Vah', |
|
39 | + 'first_name' => 'Tusha', |
|
40 | + 'last_name' => 'Grigoriani II' |
|
41 | + ]]; |
|
42 | + $res = $ab->addMultipleAddresses($arr); |
|
43 | + print_r($res); |
|
44 | + |
|
45 | + ///////////////////////////////////////////// |
|
46 | + // add 2 adresses from Address |
|
47 | + $arr = [ |
|
48 | + new Address('17205 Tbilisi Vah, GEORGIAN, GE, 22514', 38.024654, 77.338814, 'DELIVERY'), |
|
49 | + new Address('17206 Tbilisi Vah, GEORGIAN, GE, 22515', 38.024654, 77.338814, 'VISIT') |
|
50 | + ]; |
|
51 | + $res = $ab->addMultipleAddresses($arr); |
|
52 | + print_r($res); |
|
53 | 53 | } catch (ApiError $e) { |
54 | - echo $e->getCode() . PHP_EOL; |
|
55 | - echo $e->getMessage() . PHP_EOL; |
|
54 | + echo $e->getCode() . PHP_EOL; |
|
55 | + echo $e->getMessage() . PHP_EOL; |
|
56 | 56 | } |
@@ -51,6 +51,6 @@ |
||
51 | 51 | $res = $ab->addMultipleAddresses($arr); |
52 | 52 | print_r($res); |
53 | 53 | } catch (ApiError $e) { |
54 | - echo $e->getCode() . PHP_EOL; |
|
55 | - echo $e->getMessage() . PHP_EOL; |
|
54 | + echo $e->getCode().PHP_EOL; |
|
55 | + echo $e->getMessage().PHP_EOL; |
|
56 | 56 | } |
@@ -17,39 +17,39 @@ |
||
17 | 17 | Route4Me::setApiKey(Constants::API_KEY); |
18 | 18 | |
19 | 19 | try { |
20 | - $ab = new AddressBook(); |
|
21 | - |
|
22 | - ///////////////////////////////////////////// |
|
23 | - // get the first 5 addresses |
|
24 | - $options = [ |
|
25 | - 'limit' => 5, |
|
26 | - 'offset' => 0 |
|
27 | - ]; |
|
28 | - $res = $ab->getAddressesByBodyPayload($options); |
|
29 | - print_r($res); |
|
30 | - |
|
31 | - ///////////////////////////////////////////// |
|
32 | - // get the first 5 addresses in the selected area from the server |
|
33 | - $options = [ |
|
34 | - 'filter' => [ |
|
35 | - 'query' => 'Tusha', |
|
36 | - 'selected_areas' => [[ |
|
37 | - 'type' => 'circle', |
|
38 | - 'value' => [ |
|
39 | - 'center' => [ |
|
40 | - 'lat' => 38.024654, |
|
41 | - 'lng' => 77.338814 |
|
42 | - ], |
|
43 | - 'distance' => 10000 |
|
44 | - ] |
|
45 | - ]] |
|
46 | - ], |
|
47 | - 'limit' => 5, |
|
48 | - 'offset' => 0 |
|
49 | - ]; |
|
50 | - $res = $ab->getAddressesByBodyPayload($options); |
|
51 | - print_r($res); |
|
20 | + $ab = new AddressBook(); |
|
21 | + |
|
22 | + ///////////////////////////////////////////// |
|
23 | + // get the first 5 addresses |
|
24 | + $options = [ |
|
25 | + 'limit' => 5, |
|
26 | + 'offset' => 0 |
|
27 | + ]; |
|
28 | + $res = $ab->getAddressesByBodyPayload($options); |
|
29 | + print_r($res); |
|
30 | + |
|
31 | + ///////////////////////////////////////////// |
|
32 | + // get the first 5 addresses in the selected area from the server |
|
33 | + $options = [ |
|
34 | + 'filter' => [ |
|
35 | + 'query' => 'Tusha', |
|
36 | + 'selected_areas' => [[ |
|
37 | + 'type' => 'circle', |
|
38 | + 'value' => [ |
|
39 | + 'center' => [ |
|
40 | + 'lat' => 38.024654, |
|
41 | + 'lng' => 77.338814 |
|
42 | + ], |
|
43 | + 'distance' => 10000 |
|
44 | + ] |
|
45 | + ]] |
|
46 | + ], |
|
47 | + 'limit' => 5, |
|
48 | + 'offset' => 0 |
|
49 | + ]; |
|
50 | + $res = $ab->getAddressesByBodyPayload($options); |
|
51 | + print_r($res); |
|
52 | 52 | } catch (ApiError $e) { |
53 | - echo $e->getCode() . PHP_EOL; |
|
54 | - echo $e->getMessage() . PHP_EOL; |
|
53 | + echo $e->getCode() . PHP_EOL; |
|
54 | + echo $e->getMessage() . PHP_EOL; |
|
55 | 55 | } |
@@ -50,6 +50,6 @@ |
||
50 | 50 | $res = $ab->getAddressesByBodyPayload($options); |
51 | 51 | print_r($res); |
52 | 52 | } catch (ApiError $e) { |
53 | - echo $e->getCode() . PHP_EOL; |
|
54 | - echo $e->getMessage() . PHP_EOL; |
|
53 | + echo $e->getCode().PHP_EOL; |
|
54 | + echo $e->getMessage().PHP_EOL; |
|
55 | 55 | } |