Finish the download from api function.
Revert "Finish the download from api function."

This reverts commit ccceb02713a1ef86501611edc71c7231eb6e85dc.
Finish the basic download from api function.