dospace 0.9.3 copy "dospace: ^0.9.3" to clipboard
dospace: ^0.9.3 copied to clipboard

outdated

Client library to interact with the DigitalOcean Spaces API. Same API as Amazon AWS S3.

DOSpace #

Client library to interact with the DigitalOcean Spaces API.

Usage #

A simple usage example:

import 'dart:async';
import 'package:dospace/dospace.dart' as dospace;

main() async {
  dospace.Spaces spaces = new dospace.Spaces(
    region: "nyc3",
    accessKey: "7Q7GAFJ4IXHQVLBRXSRX",
    secretKey: "2JLXa9RqPwpavBkC7dt1MHWUDfd6onaXTXTfSYc5eQ0",
  );
  for (String name in await spaces.listAllBuckets()) {
    print('bucket: ${name}');
    dospace.Bucket bucket = spaces.bucket(name);
    await for (dospace.BucketContent content in bucket.listContents(maxKeys: 3)) {
       print('key: ${content.key}');
    }
  }
  print('done');
}

References #

21
likes
0
pub points
81%
popularity

Publisher

verified publisherpolyverse.dev

Client library to interact with the DigitalOcean Spaces API. Same API as Amazon AWS S3.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

crypto, http_client, meta, xml

More

Packages that depend on dospace