onedrive_api 0.1.0 onedrive_api: ^0.1.0 copied to clipboard
OneDrive API module for Flutter and Dart.
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!;
}