Skip navigation links

Class GDocsService

Inheritance:
    • Method Detail

      • getAllFolders

        public Set getAllFolders()
      • getDocList

        public BBjVector getDocList(BBjString criteria$, BBjNumber maxResults)

        https://developers.google.com/drive/web/search-parameters

      • getService

        public com.google.api.services.drive.Drive getService()

        @description: Changed with transition to Google Drive. Used to return DocsService and now returns Drive (a service object)

      • init

        public void init()
      • trashFile

        public void trashFile(BBjString p_resourceID$)
      • untrashFile

        public void untrashFile(BBjString p_resourceID$)
      • uploadDocument

        public GDoc uploadDocument(BBjString p_fileName$, BBjString p_title$, BBjString p_type$, BBjString p_parentId$, BBjNumber p_convert, BBjNumber p_overwriteIfExists)

        @description: Creates a new file on Drive with the contents of a file on the local drive. This will create a new file in Google Drive even if a file with the exact same name and contents already exists in Google Drive. (Titles are not unique.)

        Parameters:
        p_filename$: The path to the file on the local disk to be uploaded.
        p_title$: The name of the Google Drive file that will show when listed.
        p_type$: The mimeType of the file.
        p_parentId$: The Google Drive ID of the parent folder.
        p_convert: (Boolean) Whether to convert the file to its equivalent Google type. (Exxample: Excel Spreadsheet to Google Spreadsheet)
        p_overwriteIfExists: Included for legacy reasons and has no effect. Any file you upload will be regarded as a new file. Even if this is the 100th copy of the same file on your local drive.