forked from xivapi/lodestone-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli_async
More file actions
34 lines (21 loc) · 644 Bytes
/
Copy pathcli_async
File metadata and controls
34 lines (21 loc) · 644 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
28
29
30
31
32
33
#!/usr/bin/env php
<?php
/**
*
* CLI tool to quickly test/debug specific API methods.
*
*/
// composer auto loader
use Lodestone\Http\AsyncHandler;
require __DIR__ . '/vendor/autoload.php';
$api = new \Lodestone\Api();
$start = microtime(true);
// use async mode
$api->config()->useAsync();
$api->requestId('profile')->character()->get(730968);
$api->requestId('classjobs')->character()->classjobs(730968);
$api->requestId('minions')->character()->minions(730968);
$api->requestId('mounts')->character()->mounts(730968);
$api->requestId('items')->database()->search();
$responses = $api->http()->settle();
print_r($responses);