gofilesdk 0.0.1 copy "gofilesdk: ^0.0.1" to clipboard
gofilesdk: ^0.0.1 copied to clipboard

Unofficial GoFile SDK for Dart and Flutter

example/gofilesdk_example.dart

import 'dart:io';

import 'package:gofilesdk/gofilesdk.dart';

void main() async {
  final sdk = GofileSDK();

  // you can simply call the function like this
  var listServer = await sdk.getListServer();
  print('Server available: $listServer');

  // upload file
  final file = File('foo.txt');

  var upload = await sdk.uploadFile(
    file: file,
    server: 'store3',
    fileName: 'foo.txt',
  );

  print('Upload result: $upload');
}
0
likes
140
points
14
downloads

Publisher

unverified uploader

Weekly Downloads

Unofficial GoFile SDK for Dart and Flutter

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

http

More

Packages that depend on gofilesdk