Пример #1
0
<?php

require_once __DIR__ . "/requester.php";
$Request = new \StringyRequest();
$r = $Request->request('Cli.Utils.ping', ["an answer"]);
print_r($r);
Пример #2
0
<?php

require_once __DIR__ . "/requester.php";
$Request = new \StringyRequest();
print_r($Request->request("Users.Login.login", ["*****@*****.**", "badpassword"]));
Пример #3
0
<?php

require_once __DIR__ . "/requester.php";
$Request = new \StringyRequest();
print_r($Request->request("Users.Registration.register", [['name' => 'robert blackwell', 'email' => "*****@*****.**", 'password' => "password"]]));
Пример #4
0
<?php

require_once __DIR__ . "/requester.php";
$Request = new \StringyRequest();
$r = $Request->request('Cli.Utils.ping', []);
if ($r['status'] == '200') {
    print_r($r['result']);
} else {
    print_r($r);
}
Пример #5
0
<?php

require_once __DIR__ . "/requester.php";
$Request = new \StringyRequest();
print_r($Request->request("Test.Tests.triggerError", []));
Пример #6
0
<?php

require_once __DIR__ . "/requester.php";
$Request = new \StringyRequest();
$r = $Request->request('Test.Tests.throwException', []);
print_r($r);
Пример #7
0
<?php

require_once __DIR__ . "/requester.php";
$Request = new \StringyRequest();
// $r = $Request->request("Users.Auth.login", ["*****@*****.**","password"]);
// print_r($r);
//
// $userToken = $r['result']['result']['pubToken'];
// $session_id = $r['result']['result']['sessionId'];
// $teamToken = $r['result']['result']['activeTeamPubToken'];
// print "session id $session_id  \n";
//	$r = $Request->request('Users.Data.read', [$session_id]);
//	$r = $Request->request('Web.Payload.getBasicData',["sessionid"]);
$r = $Request->request('Web.Payload.getAll', ["session_id"]);
print_r($r['result']);
Пример #8
0
<?php

require_once __DIR__ . "/requester.php";
$Request = new \StringyRequest();
// $r = $Request->request(
// 		"Users.Auth.login",
// 		[
// 			"*****@*****.**",
// 			"password"
// 		]
// 	);
// 	print_r($r);
//
// 	$userToken = $r['result']['result']['pubToken'];
// 	$session_id = $r['result']['result']['sessionId'];
// 	$teamToken = $r['result']['result']['activeTeamPubToken'];
// 	print "session id $session_id  \n";
//	$r = $Request->request('Users.Data.read', [$session_id]);
$r = $Request->request('Users.Data.read', ["an answer"]);
print_r($r);