'How to download CSV File form api response. (Response I am getting URL)

In the response I am getting below data.

{
  "message": null,
  "data": {
    "fileName": "JUNE-Report",
    "uploadedBy": "Vasudha",
    "userType": "MANAGER",
    "dueDate": "2022-06-30",
    "uploadedDate": "2022-04-12T06:09:27.30413",
    "quarter": "Q2",
    "year": "2022",
    "url": "https://vlfreportdocuments.s3.amazonaws.com/JUNE-Report2022-04-12T06%3A09%3A25.797771?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20220412T060927Z&X-Amz-SignedHeaders=host&X-Amz-Expires=518399&X-Amz-Credential=AKIA4YA3RZN7I4FHHQ6R%2F20220412%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=7391170c548c4176eed83e645601e20b609d682686091f0d78dbe79bbe2a1e03",
    "jobFunction": null
  },
  "errorMessage": null
}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source