transloadit 0.0.1-dev.1 copy "transloadit: ^0.0.1-dev.1" to clipboard
transloadit: ^0.0.1-dev.1 copied to clipboard

outdated

Flutter integration with Transloadit.

Transloadit Flutter SDK #

Flutter integration with Transloadit

WIP #

  • Create assemblies
  • Get assemblies
  • Delete assemblies
  • Replay assemblies
  • Retrieve list of assemblies
  • Retrieve month's bill
  • Create templates
  • Get templates
  • Edit templates
  • Delete templates
  • Retrieve list of assemblies
  • Run templates

Basic Examples #

Creating client #

TransloaditClient client = TransloaditClient(
        authKey: 'KEY',
        authSecret: 'SECRET');

Getting an assembly #

TransloaditResponse response = await client.getAssembly(
        assemblyID: 'ASSEMBLY_ID');
print(response.statusCode) // 200

Creating an assembly #

TransloaditAssembly assembly = client.createAssembly();
final imagePath = 'assets/cat.jpg';

assembly.addStep("import", "/http/import",
        {"url": "https://demos.transloadit.com/inputs/chameleon.jpg"});
assembly.addStep("resize", "/image/resize", {"height": 400});

TransloaditResponse response = await assembly.createAssembly();

print(response['ok']) // "ASSEMBLY_COMPLETED"

Running template with fields #

TransloaditAssembly assembly = client.runTemplate(
        templateID: 'TEMPLATE_ID', 
        params: {'fields': {'input': 'items.jpg'}});
TransloaditResponse response = await assembly.createAssembly();

print(response.data["ok"]); // "ASSEMBLY_COMPLETED"
3
likes
0
pub points
52%
popularity

Publisher

unverified uploader

Flutter integration with Transloadit.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

cross_file, crypto, flutter, flutter_dotenv, http, intl, path, tus_client

More

Packages that depend on transloadit