[PAID] GDrive: Extended version of former GDrive extension [$15 or INR 1001]

1.Introduction

Description: Extension to create/modify files (DRIVE_FILE and DRIVE_APPDATA scope) in user's drive
Latest Version: 2
Released: 2021-07-27T18:30:00Z
Last Updated: 2023-06-11T18:30:00Z
Permissions: android.permission.READ_EXTERNAL_STORAGE,android.permission.WRITE_EXTERNAL_STORAGE,android.permission.GET_ACCOUNTS,android.permission.MANAGE_ACCOUNTS

Note: You may not need to ask any of the above permission

2.Blocks

image
image
image
image
image
image
image

3.Documentation

Events

PermissionCreatedEvent invoked after creating permission and provides permission Id which can be used to update it
permissionId | text
PermissionUpdatedEvent invoked after updating permission
permissionId | text
PermissionDeletedEvent invoked after deleting permission
fileId | text
OwnershipTransferredEvent invoked after transferring ownership
ownerEmail | text
FileCreatedEvent invoked after creating empty file
fileId | text
FileMovedEvent invoked after MoveFile method and provides result
result | text
FolderCreatedEvent invoked after creating folder and returns the newly created foder's id
folderId | text
FileUpdatedEvent indicating that file has been updated and returns the file's id
fileId | text
FileUploadedEvent indicating that file has been uploaded and returns the file's id
fileId | text
FileDeletedEvent invoked after 'DeleteFile' method with result which will be either true(boolean) or the error message
result | text
FileDownloadedEvent indicating that file has been downloaded and returns the file's path
filePath | text
AuthSuccessEvent indicating that authentication was successful and returns the necessary credentials
displayName | text
email | text
photoUrl | text
AuthFailedEvent invoked when authentication fails and returns the error message
errorMessage | text
GotFilesListEvent invoked after getting files list which is a dictionary having file name as key and id as value
files | dictionary
GotErrorEvent invoked in most of cases when an error occurs and provides the error message
errorMessage | text
GotFileInfoEvent invoked after getting file's info as a dictionary
infoDictionary | dictionary

Methods

IsAuthorizedReturns whether user has signed in and granted access or not.
It must be called before using any other method except LaunchAuthFlow.
LaunchAuthFlowLaunches auth flow to get access from user
RevokeAccessRevokes access and signs out the user
SignOutSigns out the user from app
CreateEmptyFileCreates an empty file in root folder
CreatePermissionCreates permission for specific file for give user
fileId | text
permissionDictionary | dictionary
UpdatePermissionUpdates permissions of a specific user for given file
fileId | text
permissionId | text
permissionDictionary | dictionary
DeletePermissionRevokes permission provided earlier
fileId | text
permissionId | text
TransferOwnershipTransfers file's ownership to given (user) email address
fileId | text
newOwnerEmail | text
UploadFileUploads files to specified folder,if folderId is empty then uploads to root of app data folder
folderId | text
filePath | text
DownloadFileDownloads specified file to the given path
fileId | text
downloadPath | text
DeleteFileDeletes the specified file
fileId | text
MoveFileTries to move file from one folder to another folder
fileId | text
fromFolderId | text
toFolderId | text
GetFileInfoGets info of given folder/file from its id
fileId | text
CreateFolderCreates folder in parent folder (Root folder if set to empty)
parentId | text
folderName | text
ListFilesLists files present in specified folder with given filter i.e. includeFolders
folderId | text
includeFolders | boolean
UpdateFileTries to update the already existing file
fileId | text
newFilePath | text
newMetadata | dictionary

Properties

AppDataScopeGrants access to App Data Folder in drive
Property Type : read-only
Accepts : text
FileScopeGrants access to files created using this extension/app
Property Type : read-only
Accepts : text
SetScopeSets Scope to be asked to user to grant access
Property Type : write-only
Accepts : text

4. Snippets & Guides

Create Backup system like WhatsApp: Create a Secure Backup System with Drive - SunnyTheDeveloper

Change File Ownership


role: owner, organizer, fileOrganizer, writer, commenter, reader
type:

  • user
  • group
  • domain
  • anyone

In case of user/group, emailAddress key with value should be added in dictionary.

5. Purchase Extension

PayPal:

UPI:
vknow360@apl

You can learn more about functionality of extension here:

Since both extensions share same base so it is obviously safe to use both of them because Google is still watching out everything.

You can do this now.

Hope it helps! :slightly_smiling_face:

6 Likes

Is Extention asking for this permission?

No, it only adds permissions to the manifest.

@vknow360
I think the app will not be accepted by google

Why do you think so?

2 Likes

Even if that were true (which I doubt), it wouldn't have anything to do with these permissions.

2 Likes

ChangeLog Version 2

  • Some internal changes and minor bug fixes
  • Periodic libs update

Just published a guide about creating backup system with this extension.
https://sunnythedeveloper.in/create-a-secure-backup-system-with-drive/

For a survey app which is used to collect voice responses from users, can I use this to copy the voice response files from app to my google drive?

Yes, but that would be quite complicated. As first you'll have to upload file to user's drive and then share with your gmail address.

Instead, you should use this extension:

It will upload file directly to your drive.