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

Use single endpoint for all downloads

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 8 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)

Status

Assignee

Larsson Omberg

Reporter

Larsson Omberg

Validator

Kimyen Truong

Fix versions

Priority

Major