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

Unofficial GoFile SDK for Dart and Flutter

Gofile SDK #

Unofficial Gofile SDK for Dart and Flutter.

Features #

all features from Gofile API

Getting started #

didn't need any configuration, just install the package and use it.

Usage #

you can use this package by creating a GofilSDK class.

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');

  // for more information, you can see the example folder
}

Additional information #

all information about the Gofile API can be found here

0
likes
140
points
17
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