diff --git a/src/TogglApi.php b/src/TogglApi.php index 6188ec8..7db5481 100644 --- a/src/TogglApi.php +++ b/src/TogglApi.php @@ -52,9 +52,9 @@ public function resetApiToken() /** * @see TogglTrackWorkspaceApi::createClient() */ - public function createClient($workspaceId, $clientName) + public function createClient($workspaceId, $client) { - return $this->workspace($workspaceId)->createClient(['name' => $clientName]); + return $this->workspace($workspaceId)->createClient($client); } /**