diff --git a/src/ManagementApi/Client.php b/src/ManagementApi/Client.php index 3a590ac..af392a8 100644 --- a/src/ManagementApi/Client.php +++ b/src/ManagementApi/Client.php @@ -68,7 +68,12 @@ public function send($endpoint, $method = 'GET', $headers = [], $body = null) $headers['Content-Type'] = 'application/json'; } - $response = $this->client->send(new Request($method, $endpoint, $headers, $body)); + $response = $this->client->send( + new Request($method, $endpoint, $headers, $body), + [ + 'auth' => [$this->username, $this->password], + ] + ); return json_decode($response->getBody(), true); }