The procedure for download of package is similar:
1- get transfer spec for download by providing the id of package
2- start transfer using transfer SDK , by giving the transfer spec
see: https://github.com/IBM/aspera-cli/blob/main/lib/aspera/cli/plugins/faspex5.rb#L383
While for package send it is:
1- create a package and get the new id
2- get transfer spec for upload by providing the id of package
3- start transfer using transfer SDK , by giving the transfer spec
see: https://github.com/IBM/aspera-cli/blob/main/lib/aspera/cli/plugins/faspex5.rb#L488
Of course, for download you will need the package identifier, which either you got by some mean, of you can discover by listing available packages:
https://github.com/IBM/aspera-cli/blob/main/lib/aspera/cli/plugins/faspex5.rb#L346
Note that a package can be a personal package or coming from shared inbox, etc...
Again, an "easy" way is to use `ascli` in debug mode (or --log-level=trtace2) and look at api calls made.
------------------------------
Laurent Martin
------------------------------
Original Message:
Sent: Mon July 29, 2024 10:22 AM
From: Kam Dudwal
Subject: HTML response instead of JSON
Hi,
Thank you this was very helpful I was able to upload packages to shared inboxes in python using the Transfer SDK. I was just wondering if the process is the same for downloading a package as it is for uploading with some changes in the transfer spec that is being sent. Are there any example of downloading a package using the transfer SDK, Node API, and/or AoC?
Thank you for your help!
------------------------------
Kam Dudwal
------------------------------
Original Message:
Sent: Thu July 18, 2024 04:12 AM
From: Laurent Martin
Subject: HTML response instead of JSON
I suggest 2 things:
1- try to use the command line ascli : https://github.com/IBM/aspera-cli , you can send a package to AoC, and activate traces: --log-level=debug, that will show API calls including payload.
2- have a look to examples here: https://github.com/laurent-martin/aspera-api-examples/blob/main/python/src/aoc.py
------------------------------
Laurent Martin