wetransfer 0.3.0+0 copy "wetransfer: ^0.3.0+0" to clipboard
wetransfer: ^0.3.0+0 copied to clipboard

A package that allows you to easily transfer files to WeTransfer and retrieve the trnasfer link.

WeTransfer for Flutter #

A Flutter package that allows upload and dowload files to Wetransfer.

How to create a new instance #

Create a new instance with :

WeTransferClient client = await WeTransferClient.create('<api_key>');

Example #

   WeTransferClient client = await WeTransferClient.create('<api_key>');
   
   Transfer transfer = await client.createTransfer(
       myFiles, "Test transfer.");

   await client.uploadFiles(transfer).forEach((state) =>
       print('${state.file.name} : ${state.type}'));

   String url = await client.finalizeTransfer(transfer);

   client?.close();
1
likes
40
pub points
0%
popularity

Publisher

unverified uploader

A package that allows you to easily transfer files to WeTransfer and retrieve the trnasfer link.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

http, path, unique_ids, xml

More

Packages that depend on wetransfer