Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'lib/WS.php';
- $_ws = new WS();
- $_ws->username = 'USERNAME';
- $_ws->password = 'PASSWORD';
- //get token
- $data = [
- 'act' => 'GetToken',
- 'username' => $_ws->username,
- 'password' => $_ws->password
- ];
- $_result = $_ws->execute($data, 'xml');
- $_test = simplexml_load_string($_result);
- $_token = (string)$_test->data->token;
- //get PT
- $_pt = [
- 'act' => 'GetProfilPT',
- 'token' => $_token,
- 'filter' => '',
- 'order' => '',
- 'limit' => '',
- 'offset' => ''
- ];
- $_result_pt = $_ws->execute($_pt, 'xml');
- $_test_pt = simplexml_load_string($_result_pt);
- echo "<pre>";
- print_r($_test_pt);
- echo "</pre>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement