googleapis 0.53.0 copy "googleapis: ^0.53.0" to clipboard
googleapis: ^0.53.0 copied to clipboard

outdated

Auto-generated client libraries for accessing Google APIs described through the API discovery service.

example/main.dart

import 'package:googleapis/storage/v1.dart';
import 'package:googleapis_auth/auth_io.dart';

final _credentials = new ServiceAccountCredentials.fromJson(r'''
{
  "private_key_id": ...,
  "private_key": ...,
  "client_email": ...,
  "client_id": ...,
  "type": "service_account"
}
''');

const _SCOPES = const [StorageApi.DevstorageReadOnlyScope];

void main() {
  clientViaServiceAccount(_credentials, _SCOPES).then((http_client) {
    var storage = new StorageApi(http_client);
    storage.buckets.list('dart-on-cloud').then((buckets) {
      print("Received ${buckets.items.length} bucket names:");
      for (var file in buckets.items) {
        print(file.name);
      }
    });
  });
}
938
likes
0
pub points
99%
popularity

Publisher

verified publishergoogle.dev

Auto-generated client libraries for accessing Google APIs described through the API discovery service.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

_discoveryapis_commons, http

More

Packages that depend on googleapis