public class GDocsService extends GAppsService
Modifier and Type | Field and Description |
---|---|
static BBjNumber | ALREADY_EXISTS_ERROR=307 |
static BBjString | BaseURL$ |
static BBjNumber | CREATE_ERROR=306 |
static BBjNumber | DOC_NOT_FOUND_ERROR=304 |
static BBjNumber | FEED_ERROR=308 |
static BBjNumber | FILE_NOT_FOUND_ERROR=303 |
static BBjNumber | MaxRetries=12 |
static BBjNumber | MEDIA_ERROR=309 |
static BBjNumber | UPLOAD_ERROR=305 |
static BBjString | UploadURL$="https://www.googleapis.com/upload/drive/v2/files" |
static BBjNumber | WaitBetweenRetries=10 |
GOAuth2!
Constructor and Description |
---|
GDocsService() |
Modifier and Type | Method and Description |
---|---|
GDoc | createFile(BBjString p_parentFolderID$, BBjString p_title$, BBjString p_mimeType$, BBjString p_description$) |
GDoc | createFolder(BBjString p_folder$) |
GDoc | createFolder(BBjString p_folder$, BBjString p_parentId$) |
GDoc | createFolder(BBjString p_title$, BBjString p_parentFolderID$, BBjString p_description$) |
Set | getAllFolders() |
BBjVector | getDocList(BBjString criteria$, BBjNumber maxResults) https://developers.google.com/drive/web/search-parameters |
GDoc | getDocument(BBjString p_resourceID$) |
GDoc | getDocument(BBjString p_title$, BBjString p_mimeType$, BBjString p_folder$, BBjNumber p_createIfNeeded) |
GDoc | getDocument(BBjString p_title$, BBjString p_type$, BBjString p_mimeType$, BBjString p_folder$, BBjNumber p_createIfNeeded) |
Set | getFolder(BBjString id$) |
BBjVector | getPermissionsForFile(BBjString p_fileID$) |
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) |
BBjString | getUser() |
void | init() |
Set | search(BBjString p_criteria$) |
BBjString | translatePathToFileID(BBjString path$) |
void | trashFile(BBjString p_resourceID$) |
void | untrashFile(BBjString p_resourceID$) |
GDoc | updateDocument(BBjString p_fileName$, BBjString p_docID$, BBjString p_title$, BBjString p_type$, BBjVector p_parents!, BBjString p_description$) |
GDoc | updateDocument(BBjString p_docID$, BBjString p_title$, BBjString p_type$, BBjString p_parentId$, BBjString p_description$) |
GDoc | uploadDocument(BBjString p_fileName$, BBjString p_title$, BBjString p_type$, BBjString p_parentID$, BBjNumber p_convert) |
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.) |
doLoginDialog, getPassword, getUser, getUserToken, isAuthenticated, resetAuthentication, saveUserToken, setUserCredentials, setUserCredentials, setUserToken, setUserToken
public static BBjNumber ALREADY_EXISTS_ERROR=307
public static BBjString BaseURL$
public static BBjNumber CREATE_ERROR=306
public static BBjNumber DOC_NOT_FOUND_ERROR=304
public static BBjNumber FEED_ERROR=308
public static BBjNumber FILE_NOT_FOUND_ERROR=303
public static BBjNumber MaxRetries=12
public static BBjNumber MEDIA_ERROR=309
public static BBjNumber UPLOAD_ERROR=305
public static BBjString UploadURL$="https://www.googleapis.com/upload/drive/v2/files"
public static BBjNumber WaitBetweenRetries=10
public GDoc createFile(BBjString p_parentFolderID$, BBjString p_title$, BBjString p_mimeType$, BBjString p_description$)
public GDoc createFolder(BBjString p_folder$)
public GDoc createFolder(BBjString p_folder$, BBjString p_parentId$)
public GDoc createFolder(BBjString p_title$, BBjString p_parentFolderID$, BBjString p_description$)
public Set getAllFolders()
public BBjVector getDocList(BBjString criteria$, BBjNumber maxResults)
https://developers.google.com/drive/web/search-parameters
public GDoc getDocument(BBjString p_resourceID$)
public GDoc getDocument(BBjString p_title$, BBjString p_mimeType$, BBjString p_folder$, BBjNumber p_createIfNeeded)
public GDoc getDocument(BBjString p_title$, BBjString p_type$, BBjString p_mimeType$, BBjString p_folder$, BBjNumber p_createIfNeeded)
public Set getFolder(BBjString id$)
public BBjVector getPermissionsForFile(BBjString p_fileID$)
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)
public BBjString getUser()
public void init()
public Set search(BBjString p_criteria$)
public BBjString translatePathToFileID(BBjString path$)
public void trashFile(BBjString p_resourceID$)
public void untrashFile(BBjString p_resourceID$)
public GDoc updateDocument(BBjString p_fileName$, BBjString p_docID$, BBjString p_title$, BBjString p_type$, BBjVector p_parents!, BBjString p_description$)
public GDoc updateDocument(BBjString p_docID$, BBjString p_title$, BBjString p_type$, BBjString p_parentId$, BBjString p_description$)
public GDoc uploadDocument(BBjString p_fileName$, BBjString p_title$, BBjString p_type$, BBjString p_parentID$, BBjNumber p_convert)
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.)
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.