Adding Box API folder:get functionality (#1512)

This commit is contained in:
Mike Quinlan
2021-03-08 10:01:39 -07:00
committed by GitHub
parent 63323178f1
commit 5a214fb4aa
2 changed files with 31 additions and 0 deletions

View File

@@ -310,6 +310,12 @@ export class Box implements INodeType {
responseData = { success: true };
returnData.push(responseData as IDataObject);
}
// https://developer.box.com/reference/get-folders-id/
if (operation === 'get') {
const folderId = this.getNodeParameter('folderId', i) as string;
responseData = await boxApiRequest.call(this, 'GET', `/folders/${folderId}`, qs);
returnData.push(responseData as IDataObject);
}
// https://developer.box.com/reference/get-search/
if (operation === 'search') {
const query = this.getNodeParameter('query', i) as string;