|
@@ -54,19 +54,6 @@ class Client
|
|
|
return $this->request("POST", $uri, $options);
|
|
|
}
|
|
|
|
|
|
- public function postAsync(string $uri, array $options = []): ?array
|
|
|
- {
|
|
|
- $data = [];
|
|
|
- Log::debug('send to glendale engine url: ' . $uri);
|
|
|
- Log::debug('send to glendale engine input: ', $options);
|
|
|
- $response = $this->client->postAsync($uri, $options);
|
|
|
- $response->then(function (ResponseInterface $res) use (&$data) {
|
|
|
- $data = $this->parseResponse($res);
|
|
|
- });
|
|
|
-
|
|
|
- return $data;
|
|
|
- }
|
|
|
-
|
|
|
public function get(string $uri, array $params = [])
|
|
|
{
|
|
|
return $this->request("GET", $uri, [
|