Auth0\Tests\ClientsTest::getApiClient PHP Method

getApiClient() protected method

protected getApiClient ( )
    protected function getApiClient()
    {
        $env = $this->getEnv();
        $token = $this->getToken($env, ['clients' => ['actions' => ['create', 'read', 'delete', 'update']]]);
        $this->domain = $env['DOMAIN'];
        $api = new Management($token, $env['DOMAIN']);
        return $api->clients;
    }