We're updating the issue view to help you get more done. 

Use single endpoint for all downloads

Description

Currently, there is a lot of specific code for getting the URL and md3 for file downloads depending on the type of file. We should move to a single function call,

1 2 3 4 5 6 7 def getFileURLandMetadata(filehandle, objectType, objectId): #This function can make calls to: syn.restPOST('/fileHandle/batch', ...: body=json.dumps({'requestedFiles':[{'fileHandleId':'8543154', 'associateObjectId': 'syn5969252', 'associateObjectType':'FileEntity'}], ...: 'includeFileHandles':True, 'includePreSignedURLs': True}), ...: endpoint=syn.fileHandleEndpoint)

Environment

None

Status

Assignee

Larsson Omberg

Reporter

Larsson Omberg

Labels

None

Validator

Kimyen Truong

Release Version History

None

Fix versions

Priority

Major