mfilippov / vimeo-dot-net

A .NET wrapper for Vimeo API v3.0
MIT License
98 stars 88 forks source link

Verify if the client has scopes #195

Open nesanmano opened 1 year ago

nesanmano commented 1 year ago

I am looking for a way to verify if a client a has a scope.


            if (_client.Scope == null) return false;
            if (scopes == null || scopes.Length == 0) return true;

            return scopes.Select(scope =>
                scope.ToString().ToLower()).All(s => _client.Scope.Contains(s));

The problem is I can't find a property called scope within the client.