google / googleapis.dart

Repository for building the googleapis packages
https://pub.dev/packages/googleapis
BSD 3-Clause "New" or "Revised" License
393 stars 119 forks source link

Anonymous client #573

Closed vaind closed 1 year ago

vaind commented 1 year ago

Is there an equivalent of python's create_anonymous_client() to connect to a storage bucket that provides public access?

vaind commented 1 year ago

Never mind, I've been able to figure this out - one just needs to create a plain unauthenticated http.Client:

    final gstorage = Storage(Client(), '');
    final bucket = gstorage.bucket('bucket-name');