I am connecting to a 3rd party's API service to get a list of files attached to a given ticket. One of the calls is get_attachment.
call($client,'get_attachment',$data);
$client and $data are just info about connection and filename, etc...
the result is the actual file itself. if i print_r(call(....)), i get the file itself in my browser window. How can i present this to a user to download from my page? I would like to provide a hyper link, so the user can choose to click link and download this file.
foreach ($attachments as $id => $fileName){
echo "<a href='???'>".$fileName."</a>";
}
If i need to save the file locally that is fine, how would i go about referencing this file??
This is the only note i have for the 3rd party's api related to this call:
"This method will output file data for the specified attachment."
$url = print_r(call(....),true);and use this$urla href=