19 function __construct(API
$api, string $call) {
24 function __invoke(array $args) {
25 if ($this->api
->exists($this->call
."_url", $url)) {
26 $url = new Url(uri_template($url, (array) current($args)));
27 $promise = $this->api
->withUrl($url)->get(...$args);
29 $promise = $this->api
->{$this->call
}->get(...$args);