Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lamnhan066/google_drive_helper
https://github.com/lamnhan066/google_drive_helper
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/lamnhan066/google_drive_helper
- Owner: lamnhan066
- License: mit
- Created: 2022-10-18T16:09:44.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-24T17:32:07.000Z (9 months ago)
- Last Synced: 2024-02-24T18:32:32.015Z (9 months ago)
- Language: Dart
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Google Drive Helper
Make it easier for you to use google drive on all platforms.
## Usage
**Create an instance:**
``` dart
final googleDriveHelper = GoogleDriveHelper(
// Get this value from [google_sign_in_helper] plugin or using [AuthClient] from [google_sign_in] plugin
client: googleSignInHelper.client,
spaces: 'appDataFolder',
);
```**All methods:**
``` dart
googleDriveHelper.fileList();
googleDriveHelper.update(
fileId: ,
content: ,
);
googleDriveHelper.updateAsBytes(
fileId: ,
bytes: >,
);
googleDriveHelper.upload(
content: ,
);
googleDriveHelper.uploadAsBytes(
bytes: >,
);
googleDriveHelper.createFolder();
googleDriveHelper.delete();
googleDriveHelper.download();
googleDriveHelper.downloadAsBytes();
```