Skip navigation links

Class GDocsService

Inheritance:
    • Method Detail

      • createFile

        public GDoc createFile(BBjString p_parentFolderID$, BBjString p_title$, BBjString p_mimeType$, BBjString p_description$)
      • createFolder

        public GDoc createFolder(BBjString p_folder$)
      • createFolder

        public GDoc createFolder(BBjString p_folder$, BBjString p_parentId$)
      • createFolder

        public GDoc createFolder(BBjString p_title$, BBjString p_parentFolderID$, BBjString p_description$)
      • getAllFolders

        public Set getAllFolders()
      • getDocList

        public BBjVector getDocList(BBjString criteria$, BBjNumber maxResults)

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

      • getDocument

        public GDoc getDocument(BBjString p_resourceID$)
      • getDocument

        public GDoc getDocument(BBjString p_title$, BBjString p_mimeType$, BBjString p_folder$, BBjNumber p_createIfNeeded)
      • getDocument

        public GDoc getDocument(BBjString p_title$, BBjString p_type$, BBjString p_mimeType$, BBjString p_folder$, BBjNumber p_createIfNeeded)
      • getFolder

        public Set getFolder(BBjString id$)
      • getPermissionsForFile

        public BBjVector getPermissionsForFile(BBjString p_fileID$)
      • 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()
      • search

        public Set search(BBjString p_criteria$)
      • translatePathToFileID

        public BBjString translatePathToFileID(BBjString path$)
      • trashFile

        public void trashFile(BBjString p_resourceID$)
      • untrashFile

        public void untrashFile(BBjString p_resourceID$)
      • updateDocument

        public GDoc updateDocument(BBjString p_fileName$, BBjString p_docID$, BBjString p_title$, BBjString p_type$, BBjVector p_parents!, BBjString p_description$)
      • updateDocument

        public GDoc updateDocument(BBjString p_docID$, BBjString p_title$, BBjString p_type$, BBjString p_parentId$, BBjString p_description$)
      • uploadDocument

        public GDoc uploadDocument(BBjString p_fileName$, BBjString p_title$, BBjString p_type$, BBjString p_parentID$, BBjNumber p_convert)
      • 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.