run_small_dropbox 1.0.1 copy "run_small_dropbox: ^1.0.1" to clipboard
run_small_dropbox: ^1.0.1 copied to clipboard

Pacote simples para acesso a API do dropbox..

example/lib/example.dart

import 'dart:io';

import 'package:run_small_dropbox/run_small_dropbox.dart';

void main(List<String> args) {
  // Pegue o link temporario de um arquivo.
  getTemporaryFileLink(commonParameter('token'), bodyParameterToAcquireTheTemporaryLink('/path/file'));

  // Crie uma nova pasta em seu dropbox.
  createFolder(commonParameter('token'), bodyParameterForFolderCreation('/my-new-folder'));

  // Mova um arquivo.
  moveFile(commonParameter('token'), bodyParameterToMoveFile('from-this-path', 'to-here-path'));

  // Copie um arquivo.
  copyFile(commonParameter('token'), bodyParameterToCopyFile('from-this-path', 'to-here-path'));

  // Apageue um arquivo.
  deleteFile(commonParameter('token'), bodyParameterToDeleteFile('/path/file'));

  // Obtenha um novo token de acesso.
  refreshToken(refreshToken: Authentication.refreshToken, appKey: Authentication.appKey, secretKey: Authentication.appSecret);

  // Carregue um arquivo para o seu dropbox.
  uploadFile(UploadFiles('token', 'up-to'), File(''));
}

Map apiconsole = {
  "refresh_token": "your refresh token",
  'appKey': 'your app key',
  'appSecret': 'your secrect key',
};

class Authentication {
  static String appKey = apiconsole['appKey'];
  static String appSecret = apiconsole['appSecret'];
  static String refreshToken = apiconsole['refresh_token'];
}
10
likes
120
points
2
downloads

Publisher

unverified uploader

Weekly Downloads

Pacote simples para acesso a API do dropbox..

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

http, http_parser, path

More

Packages that depend on run_small_dropbox