-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.php
More file actions
27 lines (20 loc) · 686 Bytes
/
Copy pathindex.php
File metadata and controls
27 lines (20 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
require('../credentials.php');
require('../../vendor/autoload.php');
use Mukhin\AjaxSystemsApi\AjaxSystemsApiClient;
use Mukhin\AjaxSystemsApi\Exception\Exception;
$ajaxSystemsClient = new AjaxSystemsApiClient();
try {
$ajaxSystemsClient->login(AJAX_SYSTEMS_LOGIN, AJAX_SYSTEMS_PASSWORD);
$ajaxSystemsClient->getCsaConnection();
$userData = $ajaxSystemsClient->getRawUserData();
echo sprintf(
"User %s have next settings:\n E-mail: %s\n Mobile: %s\n Locale: %s\n",
$userData['userName'],
$userData['userMail'],
$userData['userMobile'],
$userData['locale']
);
} catch (Exception $e) {
echo $e->getMessage();
}