GithubHelp home page GithubHelp logo

alexrintt / anonfiles.dart Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 77 KB

Unofficial Dart client for AnonFiles, LetsUpload, FileChan, etc.

Home Page: https://pub.dev/packages/anonfiles

License: MIT License

Dart 100.00%
anonfiles anonymous api chan client dart file filechan files lets library upload wrapper

anonfiles.dart's Introduction

AnonFiles for Dart

Pub Version Pub Version

This is a library for interacting with AnonFiles related APIs:

Installation

dependencies:
  anonfiles: ^<latest-version>

Import:

import 'package:anonfiles/anonfiles.dart';

Usage

The usage is pretty straightforward:

final client = AnonFiles(); // LetsUpload() and FileChan() are also available.

final AnonFileUploadResponse? response = await client.uploadFileBytes(
  byteStream: byteStream,
  filename: filename,
  length: length,
);

final String htmlDownloadUrl = response!.htmlDownloadUrl!;

final String? fileDirectDownloadUrl =
    await client.getDirectDownloadUrl(htmlDownloadUrl);

Check /example for details.

Issues and requests

Contributing

  1. First off, fork the repository.

  2. Setup dev environment:

# Clone repo.
$ git clone <your-fork-url>
$ cd anonfiles.dart

# Get deps.
$ dart pub get

# Dart code gen for data models.
$ dart run derry run gen:dart:watch
  1. Commit and push:
git add .
git commit -m "Describe changes"
git push origin main
  1. Open PR.

anonfiles.dart's People

Contributors

alexrintt avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.