Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Latest commit

 

History

History
91 lines (62 loc) · 2.33 KB

IntegrationDriveApi.md

File metadata and controls

91 lines (62 loc) · 2.33 KB

IntegrationdriveApi

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

confirmAuthorisation()

Drive Authorization

Returns Drive OAuth HTML Page

Example

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);
});

Parameters

This endpoint does not need any parameter.

Return type

null (empty response body)

getFiles

ResultListDataRepresentationGoogleDriveContent getFiles(opts)

List files and folders

Example

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);
});

Parameters

Name Type Description Notes
filter string filter [optional]
parent string parent [optional]
currentFolderOnly boolean currentFolderOnly [optional]

Return type

ResultListDataRepresentationGoogleDriveContent