Auth0\Tests\UsersTest::getApiClient PHP Method

getApiClient() protected method

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