OneDrive API
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
x
Create Folders
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!;
}