Hey guys, please help, can't get attachment (VOIP call recording)
I am getting details about the attachment
Please help me how, do I actually get the file contents?
Thanks
PHP Code:
$callRecordingDetails = $this->espoAPIService->getCallDetails($call->id);
public function getCallDetails($id, $useCache=false){
return $this->apiRequest(Client::METHOD_GET, 'Call/' . $id, null, $useCache);
}
$audioFileContents = $this->espoAPIService->getAttachmentContent($callRecordingDetails->voipRecordingFileId);
public function getAttachmentContent($id){
return $this->apiRequest(Client::METHOD_GET, 'Attachment/file/' . $id);
}
// returns null, when I am doing (Attachment without /file):
public function getAttachmentContent($id){
return $this->apiRequest(Client::METHOD_GET, 'Attachment/' . $id);
}
Please help me how, do I actually get the file contents?
Thanks
Comment