public class GDocsService extends GAppsService
Modifier and Type | Field and Description |
---|---|
static BBjNumber |
ALREADY_EXISTS_ERROR |
static BBjString |
BaseURL$ |
static BBjNumber |
CREATE_ERROR |
static BBjNumber |
DOC_NOT_FOUND_ERROR |
static BBjNumber |
FEED_ERROR |
static BBjNumber |
FILE_NOT_FOUND_ERROR |
static BBjNumber |
MaxRetries |
static BBjNumber |
MEDIA_ERROR |
static BBjNumber |
UPLOAD_ERROR |
static BBjString |
UploadURL$ |
static BBjNumber |
WaitBetweenRetries |
GOAuth2!
Constructor and Description |
---|
GDocsService() |
GDocsService(BBjNumber useLocalServer) |
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$) |
GDocsResultSet |
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) |
GDocsResultSet |
getFolder(BBjString id$) |
BBjVector |
getPermissionsForFile(BBjString p_fileID$) |
Drive |
getService() |
BBjString |
getUser() |
void |
init() |
GDocsResultSet |
search(BBjString p_criteria$) |
BBjString |
translatePathToFileID(BBjString path$) |
void |
trashFile(BBjString p_resourceID$) |
void |
untrashFile(BBjString p_resourceID$) |
GDoc |
updateDocument(BBjString p_docID$,
BBjString p_title$,
BBjString p_type$,
BBjString p_parentId$,
BBjString p_description$) |
GDoc |
updateDocument(BBjString p_fileName$,
BBjString p_docID$,
BBjString p_title$,
BBjString p_type$,
BBjVector p_parents!,
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) |
doLoginDialog, getPassword, getUserToken, isAuthenticated, resetAuthentication, saveUserToken, setUserCredentials, setUserCredentials, setUserToken, setUserToken
public static BBjString BaseURL$
public static BBjString UploadURL$
public static BBjNumber FILE_NOT_FOUND_ERROR
public static BBjNumber DOC_NOT_FOUND_ERROR
public static BBjNumber UPLOAD_ERROR
public static BBjNumber CREATE_ERROR
public static BBjNumber ALREADY_EXISTS_ERROR
public static BBjNumber FEED_ERROR
public static BBjNumber MEDIA_ERROR
public static BBjNumber MaxRetries
public static BBjNumber WaitBetweenRetries
public GDocsService()
public GDocsService(BBjNumber useLocalServer)
public Drive getService()
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 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)
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.public GDoc createFolder(BBjString p_folder$)
public GDoc createFolder(BBjString p_folder$, BBjString p_parentId$)
public void init()
public BBjVector getDocList(BBjString criteria$, BBjNumber maxResults)
public GDocsResultSet getAllFolders()
public GDocsResultSet getFolder(BBjString id$)
public BBjVector getPermissionsForFile(BBjString p_fileID$)
public GDoc createFile(BBjString p_parentFolderID$, BBjString p_title$, BBjString p_mimeType$, BBjString p_description$)
public GDoc createFolder(BBjString p_title$, BBjString p_parentFolderID$, BBjString p_description$)
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 void trashFile(BBjString p_resourceID$)
public void untrashFile(BBjString p_resourceID$)
public GDocsResultSet search(BBjString p_criteria$)
public BBjString getUser()
getUser
in class GAppsService
public BBjString translatePathToFileID(BBjString path$)