getFileDownloadLink method
Implementation
@override
Future<Map> getFileDownloadLink(String token, List<String> fileIds) async {
final String baseUrl = await getBaseUrl;
var url = Uri.parse("$baseUrl/api/v1/files/download_links");
var bodyData = {"file_ids": fileIds};
var jsonBody = jsonEncode(bodyData);
var response = await http.post(
url,
headers: {
"Authorization": "Bearer $token",
"Content-Type": "application/json"
},
body: jsonBody,
);
var data = jsonDecode(response.body);
return data;
}