onedrive_api 0.1.0 copy "onedrive_api: ^0.1.0" to clipboard
onedrive_api: ^0.1.0 copied to clipboard

OneDrive API module for Flutter and Dart.

OneDrive API #

pub package

OneDrive API allows easy interaction with the files APIs of Microsoft Graph. It follows the OneDrive API module for NodeJS.

This library is exclusively for the files APIs. For other Microsoft APIs, check out microsoft_graph_api.

Note: Using this library requires an access token.

Features #

  • ✅ Create Folders
  • ❌ Create Shareable Links
  • ❌ Delete Files and Folders
  • ❌ Download Files and Folders
  • ❌ Fetch Metadata
  • ❌ List Files and Folders
  • ❌ Retrieve File Preview URLs
  • ❌ Retrieve File Thumbnails
  • ❌ Update Metadata
  • ❌ Upload Files

Usage #

Creating a Folder #

import 'package:onedrive_api/onedrive_api.dart';

void main() async {
  FolderParams folderParams = FolderParams();
  folderParams.accessToken = "ACCESS_TOKEN";
  folderParams.name = "Test Folder";

  Response response = await createFolder(folderParams);
  if (response.errorMsg != null) {
    throw Exception(response.errorMsg);
  }

  // id of created folder
  String itemId = response.itemId!;
}

3
likes
140
pub points
0%
popularity

Publisher

unverified uploader

OneDrive API module for Flutter and Dart.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

dotenv, http

More

Packages that depend on onedrive_api