All URIs are relative to /activiti-app/api
Method | HTTP request | Description |
---|---|---|
confirmAuthorisation | GET /enterprise/integration/google-drive/confirm-auth-request | Drive Authorization |
getFiles | GET /enterprise/integration/google-drive/files | List files and folders |
confirmAuthorisation()
Drive Authorization
Returns Drive OAuth HTML Page
import IntegrationdriveApi from 'src/api/activiti-rest-api/docs/IntegrationDriveApi';
import {AlfrescoApi} from '@alfresco/js-api';
this.alfrescoApi = new AlfrescoApi();
this.alfrescoApi.setConfig({
hostEcm: 'http://127.0.0.1:8080'
});
let integrationdriveApi = new IntegrationdriveApi(this.alfrescoApi);
integrationdriveApi.confirmAuthorisation().then(() => {
console.log('API called successfully.');
}, function (error) {
console.error(error);
});
This endpoint does not need any parameter.
null (empty response body)
ResultListDataRepresentationGoogleDriveContent getFiles(opts)
List files and folders
import IntegrationdriveApi from 'src/api/activiti-rest-api/docs/IntegrationDriveApi';
import {AlfrescoApi} from '@alfresco/js-api';
this.alfrescoApi = new AlfrescoApi();
this.alfrescoApi.setConfig({
hostEcm: 'http://127.0.0.1:8080'
});
let integrationdriveApi = new IntegrationdriveApi(this.alfrescoApi);
let opts = {
'filter': filter_example // | filter
'parent': parent_example // | parent
'currentFolderOnly': true // | currentFolderOnly
};
integrationdriveApi.getFiles(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, function (error) {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
filter | string | filter | [optional] |
parent | string | parent | [optional] |
currentFolderOnly | boolean | currentFolderOnly | [optional] |